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 Gzip
- type HTTPSNonWWWRedirect
- type HTTPSRedirect
- type HTTPSWWWRedirect
- type Header
- type Logger
- type Message
- type NATS
- type NonWWWRedirect
- type Plugin
- type Proxy
- type Random
- type Redirect
- type RemoveTrailingSlash
- type Rewrite
- type RoundRobin
- type Secure
- type Static
- type Target
- 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) Initialize ¶
func (s *AddTrailingSlash) Initialize() (err error)
func (*AddTrailingSlash) Priority ¶
func (*AddTrailingSlash) Priority() int
func (*AddTrailingSlash) Process ¶
func (s *AddTrailingSlash) Process(next echo.HandlerFunc) echo.HandlerFunc
func (*AddTrailingSlash) Terminate ¶
func (*AddTrailingSlash) Terminate()
type Base ¶
type Base struct {
Middleware echo.MiddlewareFunc `json:"-"`
Armor *armor.Armor `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) Initialize ¶
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) Initialize ¶
func (*CORS) Process ¶
func (c *CORS) Process(next echo.HandlerFunc) echo.HandlerFunc
type Gzip ¶
type Gzip struct {
Base `json:",squash"`
middleware.GzipConfig `json:",squash"`
}
func (*Gzip) Initialize ¶
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) Initialize ¶
func (r *HTTPSNonWWWRedirect) Initialize() (err error)
func (*HTTPSNonWWWRedirect) Priority ¶
func (*HTTPSNonWWWRedirect) Priority() int
func (*HTTPSNonWWWRedirect) Process ¶
func (r *HTTPSNonWWWRedirect) Process(next echo.HandlerFunc) echo.HandlerFunc
func (*HTTPSNonWWWRedirect) Terminate ¶
func (*HTTPSNonWWWRedirect) Terminate()
type HTTPSRedirect ¶
type HTTPSRedirect struct {
Base `json:",squash"`
middleware.RedirectConfig `json:",squash"`
}
func (*HTTPSRedirect) Initialize ¶
func (r *HTTPSRedirect) Initialize() (err error)
func (*HTTPSRedirect) Priority ¶
func (*HTTPSRedirect) Priority() int
func (*HTTPSRedirect) Process ¶
func (r *HTTPSRedirect) Process(next echo.HandlerFunc) echo.HandlerFunc
func (*HTTPSRedirect) Terminate ¶
func (*HTTPSRedirect) Terminate()
type HTTPSWWWRedirect ¶
type HTTPSWWWRedirect struct {
Base `json:",squash"`
middleware.RedirectConfig `json:",squash"`
}
func (*HTTPSWWWRedirect) Initialize ¶
func (r *HTTPSWWWRedirect) Initialize() (err error)
func (*HTTPSWWWRedirect) Priority ¶
func (*HTTPSWWWRedirect) Priority() int
func (*HTTPSWWWRedirect) Process ¶
func (r *HTTPSWWWRedirect) Process(next echo.HandlerFunc) echo.HandlerFunc
func (*HTTPSWWWRedirect) Terminate ¶
func (*HTTPSWWWRedirect) Terminate()
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) Initialize ¶
func (*Header) Process ¶
func (h *Header) Process(next echo.HandlerFunc) echo.HandlerFunc
type Logger ¶
type Logger struct {
Base `json:",squash"`
middleware.LoggerConfig `json:",squash"`
}
func (*Logger) Initialize ¶
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 NATS ¶
type NATS struct {
Base `json:",squash"`
Subject string `json:"subject"`
// Publish *natsPub `json:"publish"`
// Request *natsReq `json:"request"`
Async bool `json:"async"`
// contains filtered or unexported fields
}
func (*NATS) Initialize ¶
func (*NATS) Process ¶
func (n *NATS) Process(next echo.HandlerFunc) echo.HandlerFunc
type NonWWWRedirect ¶
type NonWWWRedirect struct {
Base `json:",squash"`
middleware.RedirectConfig `json:",squash"`
}
func (*NonWWWRedirect) Initialize ¶
func (r *NonWWWRedirect) Initialize() (err error)
func (*NonWWWRedirect) Priority ¶
func (*NonWWWRedirect) Priority() int
func (*NonWWWRedirect) Process ¶
func (r *NonWWWRedirect) Process(next echo.HandlerFunc) echo.HandlerFunc
func (*NonWWWRedirect) Terminate ¶
func (*NonWWWRedirect) Terminate()
type Plugin ¶
type Plugin interface {
Name() string
Initialize() error
Process(echo.HandlerFunc) echo.HandlerFunc
Priority() int
Terminate()
}
type Proxy ¶
type Proxy struct {
Base `json:",squash"`
Balance string `json:"balance"`
Targets []*Target `json:"targets"`
// contains filtered or unexported fields
}
func (*Proxy) Initialize ¶
func (*Proxy) Process ¶
func (p *Proxy) Process(echo.HandlerFunc) echo.HandlerFunc
type Redirect ¶
type Redirect struct {
Base `json:",squash"`
To string `json:"to"`
Code string `json:"code"`
When string `json:"when"`
}
func (*Redirect) Initialize ¶
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) Initialize ¶
func (s *RemoveTrailingSlash) Initialize() (err error)
func (*RemoveTrailingSlash) Priority ¶
func (*RemoveTrailingSlash) Priority() int
func (*RemoveTrailingSlash) Process ¶
func (s *RemoveTrailingSlash) Process(next echo.HandlerFunc) echo.HandlerFunc
func (*RemoveTrailingSlash) Terminate ¶
func (*RemoveTrailingSlash) Terminate()
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) Initialize ¶
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) Initialize ¶
func (*Static) Process ¶
func (s *Static) Process(next echo.HandlerFunc) echo.HandlerFunc
type WWWRedirect ¶
type WWWRedirect struct {
Base `json:",squash"`
middleware.RedirectConfig `json:",squash"`
}
func (*WWWRedirect) Initialize ¶
func (r *WWWRedirect) Initialize() (err error)
func (*WWWRedirect) Priority ¶
func (*WWWRedirect) Priority() int
func (*WWWRedirect) Process ¶
func (r *WWWRedirect) Process(next echo.HandlerFunc) echo.HandlerFunc
func (*WWWRedirect) Terminate ¶
func (*WWWRedirect) Terminate()
Click to show internal directories.
Click to hide internal directories.