Documentation ¶
Index ¶
- Variables
- func CreateListener(typename string) (*types.Listener, error)
- func GetTypeNames() []string
- func Load(listener *types.Listener) error
- func LoadListener(listener *types.Listener, ctx *types.Context) error
- func LoadListeners(ctx types.Context)
- func RegisterType(name string, i interface{})
- func RunDispatch()
- type CacherListener
- type ListenerType
- type NATSDataListener
- type NATSFileListener
- type UDPDataListener
- type UDPFileListener
- type UDPMetaListener
Constants ¶
This section is empty.
Variables ¶
View Source
var Listeners []types.Listener
Functions ¶
func GetTypeNames ¶ added in v0.2.2
func GetTypeNames() []string
func LoadListener ¶ added in v0.2.2
func LoadListeners ¶ added in v0.2.2
func RegisterType ¶
func RegisterType(name string, i interface{})
func RunDispatch ¶
func RunDispatch()
Types ¶
type CacherListener ¶
type CacherListener struct {
Port int `json:"port"`
}
func (*CacherListener) InitListener ¶
func (listener *CacherListener) InitListener(ctx *types.Context) (err error)
type ListenerType ¶ added in v0.2.2
type NATSDataListener ¶ added in v0.2.2
type NATSDataListener struct { URL string `json:"url"` // contains filtered or unexported fields }
func (*NATSDataListener) InitListener ¶ added in v0.2.2
func (listener *NATSDataListener) InitListener(ctx *types.Context) (err error)
type NATSFileListener ¶ added in v0.2.2
type NATSFileListener struct { URL string `json:"url"` // contains filtered or unexported fields }
func (*NATSFileListener) InitListener ¶ added in v0.2.2
func (listener *NATSFileListener) InitListener(gctx *types.Context) (err error)
type UDPDataListener ¶
type UDPDataListener struct {
Port int `json:"port"`
}
func (*UDPDataListener) InitListener ¶
func (listener *UDPDataListener) InitListener(ctx *types.Context) (err error)
type UDPFileListener ¶ added in v0.2.2
type UDPFileListener struct {
Port int `json:"port"`
}
func (*UDPFileListener) InitListener ¶ added in v0.2.2
func (listener *UDPFileListener) InitListener(gctx *types.Context) (err error)
type UDPMetaListener ¶
type UDPMetaListener struct {
Port int `json:"port"`
}
func (*UDPMetaListener) InitListener ¶
func (listener *UDPMetaListener) InitListener(ctx *types.Context) (err error)
Click to show internal directories.
Click to hide internal directories.