Documentation ¶
Index ¶
- Constants
- func LoadConfigMap(path string) (map[interface{}]interface{}, error)
- func SetConfigMapFlags(cfgmap map[interface{}]interface{}, flags map[string]*pflag.Flag)
- type Config
- type Router
- func (self *Router) Channel() channel2.Channel
- func (self *Router) DefaultRequestTimeout() time.Duration
- func (router *Router) HandleDebug(conn io.ReadWriter) error
- func (self *Router) MetricsRegistry() metrics.UsageRegistry
- func (self *Router) RegisterXctrl(x xctrl.Xctrl) error
- func (self *Router) Run() error
- func (self *Router) Shutdown() error
- func (self *Router) Start() error
- type RouterMonitor
Constants ¶
View Source
const ( DumpForwarderTables byte = 1 UpdateRoute byte = 2 CloseControlChannel byte = 3 OpenControlChannel byte = 4 )
View Source
const (
FlagsCfgMapKey = "@flags"
)
Variables ¶
This section is empty.
Functions ¶
func LoadConfigMap ¶
func SetConfigMapFlags ¶
Types ¶
type Config ¶
type Config struct { Id *identity.TokenId Forwarder *forwarder.Options Trace struct { Handler *channel2.TraceHandler } Profile struct { Memory struct { Path string Interval time.Duration } CPU struct { Path string } } Ctrl struct { Endpoint transport.Address DefaultRequestTimeout time.Duration Options *channel2.Options } Link struct { Listeners []map[interface{}]interface{} Dialers []map[interface{}]interface{} } Dialers map[string]xgress.OptionsData Listeners []listenerBinding Transport map[interface{}]interface{} Metrics struct { ReportInterval time.Duration MessageQueueSize int } // contains filtered or unexported fields }
func LoadConfig ¶
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
func (*Router) DefaultRequestTimeout ¶ added in v0.16.7
func (*Router) HandleDebug ¶ added in v0.15.24
func (router *Router) HandleDebug(conn io.ReadWriter) error
func (*Router) MetricsRegistry ¶ added in v0.16.12
func (self *Router) MetricsRegistry() metrics.UsageRegistry
type RouterMonitor ¶
type RouterMonitor interface {
Monitor()
}
Click to show internal directories.
Click to hide internal directories.