Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterPlugin ¶ added in v0.7.0
func RegisterPlugin(typ Type, name string, fn NewPluginFunc)
Types ¶
type BasePlugin ¶ added in v0.7.0
func (*BasePlugin[T]) ExecuteInbound ¶ added in v0.7.0
func (p *BasePlugin[T]) ExecuteInbound(inbound *Inbound) (InboundResult, error)
func (*BasePlugin[T]) ExecuteOutbound ¶ added in v0.7.0
func (p *BasePlugin[T]) ExecuteOutbound(outbound *Outbound, context *Context) error
func (*BasePlugin[T]) MarshalConfig ¶ added in v0.7.0
func (p *BasePlugin[T]) MarshalConfig() ([]byte, error)
func (*BasePlugin[T]) UnmarshalConfig ¶ added in v0.7.0
func (p *BasePlugin[T]) UnmarshalConfig(data []byte) error
type Inbound ¶ added in v0.7.0
type Inbound struct {
Request *http.Request
Response http.ResponseWriter
RawBody []byte
}
type InboundResult ¶ added in v0.7.0
type NewPluginFunc ¶ added in v0.7.0
type Registration ¶ added in v0.7.0
type Registration struct {
Type Type
New NewPluginFunc
}
func GetRegistration ¶ added in v0.7.0
func GetRegistration(name string) *Registration
Click to show internal directories.
Click to hide internal directories.