Documentation ¶
Index ¶
- Constants
- type Config
- type Controller
- func (c *Controller) GetCloseNotifyChannel() <-chan struct{}
- func (c *Controller) GetNetwork() *network.Network
- func (c *Controller) Identity() identity.Identity
- func (c *Controller) RegisterXWebHandlerFactory(x xweb.WebHandlerFactory) error
- func (c *Controller) RegisterXctrl(x xctrl.Xctrl) error
- func (c *Controller) RegisterXmgmt(x xmgmt.Xmgmt) error
- func (c *Controller) RegisterXweb(x xweb.Xweb) error
- func (c *Controller) Run() error
- func (c *Controller) Shutdown()
- type CtrlOptions
- type OnConnectSettingsHandler
Constants ¶
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Id *identity.TokenId Network *network.Options Db *db.Db Trace struct { Handler *channel.TraceHandler } Profile struct { Memory struct { Path string Interval time.Duration } CPU struct { Path string } } Ctrl struct { Listener transport.Address Options *CtrlOptions } Mgmt struct { Listener transport.Address Options *channel.Options } Metrics *metrics.Config HealthChecks struct { BoltCheck struct { Interval time.Duration Timeout time.Duration InitialDelay time.Duration } } // contains filtered or unexported fields }
func LoadConfig ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController(cfg *Config, versionProvider common.VersionProvider) (*Controller, error)
func (*Controller) GetCloseNotifyChannel ¶ added in v0.16.9
func (c *Controller) GetCloseNotifyChannel() <-chan struct{}
func (*Controller) GetNetwork ¶
func (c *Controller) GetNetwork() *network.Network
func (*Controller) Identity ¶ added in v0.16.120
func (c *Controller) Identity() identity.Identity
func (*Controller) RegisterXWebHandlerFactory ¶ added in v0.16.54
func (c *Controller) RegisterXWebHandlerFactory(x xweb.WebHandlerFactory) error
func (*Controller) RegisterXctrl ¶
func (c *Controller) RegisterXctrl(x xctrl.Xctrl) error
func (*Controller) RegisterXmgmt ¶
func (c *Controller) RegisterXmgmt(x xmgmt.Xmgmt) error
func (*Controller) RegisterXweb ¶ added in v0.16.54
func (c *Controller) RegisterXweb(x xweb.Xweb) error
func (*Controller) Run ¶
func (c *Controller) Run() error
func (*Controller) Shutdown ¶
func (c *Controller) Shutdown()
type CtrlOptions ¶ added in v0.17.26
CtrlOptions extends channel.Options to include support for additional, non-channel specific options (e.g. NewListener)
type OnConnectSettingsHandler ¶ added in v0.17.26
type OnConnectSettingsHandler struct {
// contains filtered or unexported fields
}
OnConnectSettingsHandler sends a ctrl_pb.ContentType_SettingsType message when routers connect if necessary Settings are a map of int32 -> []byte data. The type should be used to determine how the setting's []byte array is consumed.
func (OnConnectSettingsHandler) RouterConnected ¶ added in v0.17.26
func (o OnConnectSettingsHandler) RouterConnected(r *network.Router)
func (*OnConnectSettingsHandler) RouterDisconnected ¶ added in v0.17.26
func (o *OnConnectSettingsHandler) RouterDisconnected(r *network.Router)
Click to show internal directories.
Click to hide internal directories.