Documentation ¶
Index ¶
- Variables
- func NewLib() listener.Listener
- type Listener
- type ListenerItems
- type Modules
- func (c *Modules) GetAllServices() (res []*listenerproto.ServicesItems)
- func (c *Modules) GetMonitor() *listenerproto.MonitorResponse
- func (c *Modules) GetOptions() listener.Options
- func (c *Modules) GetServices() []string
- func (c *Modules) GetTracer() (tr tracing.Tracing)
- func (c *Modules) Init(opt listener.Options, _ ...listener.Interceptor)
- func (c *Modules) New() listener.Listener
- func (c *Modules) OnPushMessage(request *global.PushRequest, onMsg listener.OnPushMessageResponse)
- func (c *Modules) PushRouterListener(l *listenerproto.RouterListener, h httpn.HandlerFunc)
- func (c *Modules) RegisterMultipleHandler(handler listener.MethodMultipleHandler)
- func (c *Modules) Run() (err error)
- func (c *Modules) RunRouter() (err error)
- func (c *Modules) SetTracer(tr tracing.Tracing)
- type Router
- type RouterHeader
- type Server
- type TcpKeepAliveListener
Constants ¶
This section is empty.
Variables ¶
View Source
var BuildDate string
View Source
var Commit string
View Source
var OSBuildName string
View Source
var Version string
Functions ¶
Types ¶
type Listener ¶
func NewListener ¶
func NewListener(listener interfaces.Listener) *Listener
func (*Listener) AddOrSkip ¶
func (c *Listener) AddOrSkip(l *listenerproto.RouterListener, h http.HandlerFunc)
func (*Listener) NewHTTPListener ¶
func (c *Listener) NewHTTPListener(s *listenerproto.RouterListener, h http.HandlerFunc)
type ListenerItems ¶
type ListenerItems struct {
// contains filtered or unexported fields
}
type Modules ¶
func (*Modules) GetAllServices ¶
func (c *Modules) GetAllServices() (res []*listenerproto.ServicesItems)
func (*Modules) GetMonitor ¶
func (c *Modules) GetMonitor() *listenerproto.MonitorResponse
func (*Modules) GetOptions ¶
func (*Modules) GetServices ¶
func (*Modules) OnPushMessage ¶
func (c *Modules) OnPushMessage(request *global.PushRequest, onMsg listener.OnPushMessageResponse)
func (*Modules) PushRouterListener ¶
func (c *Modules) PushRouterListener(l *listenerproto.RouterListener, h httpn.HandlerFunc)
func (*Modules) RegisterMultipleHandler ¶
func (c *Modules) RegisterMultipleHandler(handler listener.MethodMultipleHandler)
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
func NewRouter ¶
func NewRouter(listener interfaces.Listener) *Router
func (*Router) PushRouterListener ¶
func (c *Router) PushRouterListener(l *listenerproto.RouterListener, h http.HandlerFunc)
type RouterHeader ¶
type RouterHeader struct {
LimiterID string
}
type TcpKeepAliveListener ¶
type TcpKeepAliveListener struct {
*net.TCPListener
}
Click to show internal directories.
Click to hide internal directories.