Documentation ¶
Index ¶
- Constants
- func Configure(cfg Map)
- func Go()
- func Ready()
- func Register(name string, value Any, overrides ...bool)
- type Bridge
- type Callback
- type Config
- type Configs
- type Connect
- type Context
- type Delegate
- type Driver
- type Filter
- type Handler
- type Health
- type Instance
- type Module
- func (this *Module) Config(name string, config Config, override bool)
- func (this *Module) Configs(config Configs, override bool)
- func (this *Module) Configure(global Map)
- func (this *Module) Connect()
- func (module *Module) Driver(name string, driver Driver, override bool)
- func (module *Module) Filter(name string, config Filter, override bool)
- func (module *Module) Handler(name string, config Handler, override bool)
- func (this *Module) Initialize()
- func (this *Module) Launch()
- func (this *Module) Register(name string, value Any, override bool)
- func (this *Module) Request(meta chef.Metadata, timeout time.Duration) (*chef.Echo, error)
- func (module *Module) Service(name string, config chef.Service, override bool)
- func (this *Module) Terminate()
Constants ¶
View Source
const (
NAME = "BUS"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Connect ¶
type Connect interface { Open() error Health() (Health, error) Close() error Register(name string) error Start() error Stop() error Request(name string, data []byte, timeout time.Duration) ([]byte, error) }
Connect 连接
type Context ¶
type Filter ¶
type Filter struct { Name string `json:"name"` Text string `json:"text"` Request ctxFunc `json:"-"` Execute ctxFunc `json:"-"` Response ctxFunc `json:"-"` }
Filter 拦截器
type Handler ¶
type Handler struct { Name string `json:"name"` Text string `json:"text"` Found ctxFunc `json:"-"` Error ctxFunc `json:"-"` Failed ctxFunc `json:"-"` Denied ctxFunc `json:"-"` }
Handler 处理器
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
func (*Module) Initialize ¶
func (this *Module) Initialize()
Click to show internal directories.
Click to hide internal directories.