Documentation ¶
Overview ¶
package plugin is a generated protocol buffer package.
It is generated from these files:
message.proto
It has these top-level messages:
Message
Index ¶
- type AddTrailingSlash
- type Balancer
- type Base
- type BodyLimit
- type CORS
- type Cube
- type Expression
- type File
- type Gzip
- type HTTPSNonWWWRedirect
- type HTTPSRedirect
- type HTTPSWWWRedirect
- type Header
- type Logger
- type Message
- type NonWWWRedirect
- type Plugin
- type Proxy
- type Random
- type Redirect
- type RemoveTrailingSlash
- type Rewrite
- type RoundRobin
- type Secure
- type Static
- type Target
- type Template
- type WWWRedirect
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddTrailingSlash ¶
type AddTrailingSlash struct { Base `json:",squash"` middleware.TrailingSlashConfig `json:",squash"` }
func (*AddTrailingSlash) Init ¶ added in v0.2.1
func (s *AddTrailingSlash) Init() (err error)
func (*AddTrailingSlash) Priority ¶
func (*AddTrailingSlash) Priority() int
func (*AddTrailingSlash) Process ¶
func (s *AddTrailingSlash) Process(next echo.HandlerFunc) echo.HandlerFunc
type Base ¶
type Base struct { Skip string `json:"skip"` Middleware echo.MiddlewareFunc `json:"-"` Armor *armor.Armor `json:"-"` Echo *echo.Echo `json:"-"` Logger *log.Logger `json:"-"` // contains filtered or unexported fields }
Base defines the base struct for plugins.
type BodyLimit ¶
type BodyLimit struct { Base `json:",squash"` middleware.BodyLimitConfig `json:",squash"` }
func (*BodyLimit) Process ¶
func (l *BodyLimit) Process(next echo.HandlerFunc) echo.HandlerFunc
type CORS ¶
type CORS struct { Base `json:",squash"` middleware.CORSConfig `json:",squash"` }
func (*CORS) Process ¶
func (c *CORS) Process(next echo.HandlerFunc) echo.HandlerFunc
type Cube ¶ added in v0.2.7
type Cube struct { Base `json:",squash"` Path string `json:"path"` Key string `json:"key"` // contains filtered or unexported fields }
func (*Cube) Process ¶ added in v0.2.7
func (c *Cube) Process(next echo.HandlerFunc) echo.HandlerFunc
type Expression ¶ added in v0.2.7
type Expression struct {
*fasttemplate.Template
}
func NewExpression ¶ added in v0.2.7
func NewExpression(t string) *Expression
type File ¶ added in v0.2.1
func (*File) Process ¶ added in v0.2.1
func (f *File) Process(next echo.HandlerFunc) echo.HandlerFunc
type Gzip ¶
type Gzip struct { Base `json:",squash"` middleware.GzipConfig `json:",squash"` }
func (*Gzip) Process ¶
func (g *Gzip) Process(next echo.HandlerFunc) echo.HandlerFunc
type HTTPSNonWWWRedirect ¶
type HTTPSNonWWWRedirect struct { Base `json:",squash"` middleware.RedirectConfig `json:",squash"` }
func (*HTTPSNonWWWRedirect) Init ¶ added in v0.2.1
func (r *HTTPSNonWWWRedirect) Init() (err error)
func (*HTTPSNonWWWRedirect) Priority ¶
func (*HTTPSNonWWWRedirect) Priority() int
func (*HTTPSNonWWWRedirect) Process ¶
func (r *HTTPSNonWWWRedirect) Process(next echo.HandlerFunc) echo.HandlerFunc
type HTTPSRedirect ¶
type HTTPSRedirect struct { Base `json:",squash"` middleware.RedirectConfig `json:",squash"` }
func (*HTTPSRedirect) Init ¶ added in v0.2.1
func (r *HTTPSRedirect) Init() (err error)
func (*HTTPSRedirect) Priority ¶
func (*HTTPSRedirect) Priority() int
func (*HTTPSRedirect) Process ¶
func (r *HTTPSRedirect) Process(next echo.HandlerFunc) echo.HandlerFunc
type HTTPSWWWRedirect ¶
type HTTPSWWWRedirect struct { Base `json:",squash"` middleware.RedirectConfig `json:",squash"` }
func (*HTTPSWWWRedirect) Init ¶ added in v0.2.1
func (r *HTTPSWWWRedirect) Init() (err error)
func (*HTTPSWWWRedirect) Priority ¶
func (*HTTPSWWWRedirect) Priority() int
func (*HTTPSWWWRedirect) Process ¶
func (r *HTTPSWWWRedirect) Process(next echo.HandlerFunc) echo.HandlerFunc
type Header ¶
type Header struct { Base `json:",squash"` Set map[string]string `json:"set"` Add map[string]string `json:"add"` Del []string `json:"del"` }
func (*Header) Process ¶
func (h *Header) Process(next echo.HandlerFunc) echo.HandlerFunc
type Logger ¶
type Logger struct { middleware.LoggerConfig `json:",squash"` Base `json:",squash"` }
func (*Logger) Process ¶
func (l *Logger) Process(next echo.HandlerFunc) echo.HandlerFunc
type Message ¶
type Message struct { ExternalId string `protobuf:"bytes,1,opt,name=externalId" json:"externalId,omitempty"` Body []byte `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` }
func (*Message) Descriptor ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
type NonWWWRedirect ¶
type NonWWWRedirect struct { Base `json:",squash"` middleware.RedirectConfig `json:",squash"` }
func (*NonWWWRedirect) Init ¶ added in v0.2.1
func (r *NonWWWRedirect) Init() (err error)
func (*NonWWWRedirect) Priority ¶
func (*NonWWWRedirect) Priority() int
func (*NonWWWRedirect) Process ¶
func (r *NonWWWRedirect) Process(next echo.HandlerFunc) echo.HandlerFunc
type Plugin ¶
type Plugin interface { Name() string Init() error Process(echo.HandlerFunc) echo.HandlerFunc Priority() int }
type Proxy ¶
type Proxy struct { Base `json:",squash"` Balance string `json:"balance"` Targets []*Target `json:"targets"` // contains filtered or unexported fields }
func (*Proxy) Process ¶
func (p *Proxy) Process(echo.HandlerFunc) echo.HandlerFunc
type Redirect ¶
type Redirect struct { Base `json:",squash"` From string `json:"from"` To string `json:"to"` Code int `json:"code"` }
func (*Redirect) Process ¶
func (r *Redirect) Process(next echo.HandlerFunc) echo.HandlerFunc
type RemoveTrailingSlash ¶
type RemoveTrailingSlash struct { Base `json:",squash"` middleware.TrailingSlashConfig `json:",squash"` }
func (*RemoveTrailingSlash) Init ¶ added in v0.2.1
func (s *RemoveTrailingSlash) Init() (err error)
func (*RemoveTrailingSlash) Priority ¶
func (*RemoveTrailingSlash) Priority() int
func (*RemoveTrailingSlash) Process ¶
func (s *RemoveTrailingSlash) Process(next echo.HandlerFunc) echo.HandlerFunc
type RoundRobin ¶
type RoundRobin struct {
// contains filtered or unexported fields
}
func (*RoundRobin) Length ¶
func (r *RoundRobin) Length() int
func (*RoundRobin) Next ¶
func (r *RoundRobin) Next(i int) *Target
type Secure ¶
type Secure struct { Base `json:",squash"` middleware.SecureConfig `json:",squash"` }
func (*Secure) Process ¶
func (s *Secure) Process(next echo.HandlerFunc) echo.HandlerFunc
type Static ¶
type Static struct { Base `json:",squash"` // Root directory from where the static content is served. // Required. Root string `json:"root"` // Index file for serving a directory. // Optional. Default value "index.html". Index string `json:"index"` // Enable HTML5 mode by forwarding all not-found requests to root so that // SPA (single-page application) can handle the routing. // Optional. Default value false. HTML5 bool `json:"html5"` // Enable directory browsing. // Optional. Default value false. Browse bool `json:"browse"` }
func (*Static) Process ¶
func (s *Static) Process(next echo.HandlerFunc) echo.HandlerFunc
type Template ¶ added in v0.2.1
type Template struct {
*fasttemplate.Template
}
func NewTemplate ¶ added in v0.2.1
type WWWRedirect ¶
type WWWRedirect struct { Base `json:",squash"` middleware.RedirectConfig `json:",squash"` }
func (*WWWRedirect) Init ¶ added in v0.2.1
func (r *WWWRedirect) Init() (err error)
func (*WWWRedirect) Priority ¶
func (*WWWRedirect) Priority() int
func (*WWWRedirect) Process ¶
func (r *WWWRedirect) Process(next echo.HandlerFunc) echo.HandlerFunc
Click to show internal directories.
Click to hide internal directories.