Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Middleware ¶
type Middleware interface { Setup() HandleEvent(event ProxyEvent, ctx *Context) Teardown() }
type Muxy ¶
type Muxy struct {
// contains filtered or unexported fields
}
func New ¶
func New(config *MuxyConfig) *Muxy
func NewWithDefaultMuxyConfig ¶
func NewWithDefaultMuxyConfig() *Muxy
func (*Muxy) LoadPlugins ¶
func (m *Muxy) LoadPlugins()
type MuxyConfig ¶
type PluginConfig ¶
type PluginConfig struct { Name string Description string LogLevel int `default:"2" required:"true" mapstructure:"loglevel"` Proxy []plugo.PluginConfig Middleware []plugo.PluginConfig }
type Proxy ¶
type Proxy interface { Setup([]Middleware) Proxy() Teardown() }
type ProxyEvent ¶
type ProxyEvent int
const ( EVENT_PRE_DISPATCH ProxyEvent = iota EVENT_POST_DISPATCH )
Click to show internal directories.
Click to hide internal directories.