proxy

package
v0.0.0-...-0fffe9f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2026 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterDetails

type ClusterDetails struct {
	Plan util.ClusterPlan `json:"plan"`
}

type Proxy

type Proxy struct {
	// contains filtered or unexported fields
}

Proxy records an elasticsearch request and its response.

func Instance

func Instance() *Proxy

Instance returns the singleton instance of Logs plugin. Note: Only this function must be used (both within and outside the package) to obtain the instance Logs in order to avoid stateless instances of the plugin.

func (*Proxy) AlternateRoutes

func (p *Proxy) AlternateRoutes() []plugins.Route

Expose plugin specific routes

func (*Proxy) ESMiddleware

func (p *Proxy) ESMiddleware() []middleware.Middleware

ESMiddleware is a default empty middleware function

func (*Proxy) InitFunc

func (p *Proxy) InitFunc() error

InitFunc is a part of Plugin interface that gets executed only once, and initializes the dao, i.e. elasticsearch before the plugin is operational.

func (*Proxy) Name

func (p *Proxy) Name() string

Name returns the name of the plugin: "[logs]"

func (*Proxy) RSMiddleware

func (p *Proxy) RSMiddleware() []middleware.Middleware

RSMiddleware is a default empty middleware function

func (*Proxy) Routes

func (p *Proxy) Routes() []plugins.Route

Routes returns an empty slice of routes, since Logs is solely a middleware.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL