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 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 Redirect
- type RemoveTrailingSlash
- type Rewrite
- 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
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"`
middleware.ProxyConfig `json:",squash"`
Balance string `json:"balance"`
Targets []*Target `json:"targets"`
}
func (*Proxy) Process ¶
func (p *Proxy) Process(next 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 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"`
middleware.StaticConfig `json:",squash"`
}
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.