Documentation
¶
Index ¶
- func CheckError(err error)
- func NamedTypeHandle() codec.Handle
- func Ok(request []byte) []byte
- func RawNamedTypeHandle() codec.Handle
- type Client
- type Named
- type NamedType
- type NamedTypeExt
- type PubsubClient
- type PubsubServer
- type PubsubSource
- type RawNamedType
- type Responder
- type ResultStatus
- type Rule
- type RuleRequest
- type Server
- type TestPacket
- type TrainPacket
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckError ¶
func CheckError(err error)
func NamedTypeHandle ¶
func RawNamedTypeHandle ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (Client) AddTestPacket ¶
func (Client) AddTrainPacket ¶
func (Client) GetIncomingRule ¶
func (Client) GetOutgoingRule ¶
type NamedTypeExt ¶
type NamedTypeExt struct{}
func (NamedTypeExt) ConvertExt ¶
func (x NamedTypeExt) ConvertExt(v interface{}) interface{}
From NamedWrapper to NamedType
func (NamedTypeExt) ReadExt ¶
func (x NamedTypeExt) ReadExt(interface{}, []byte)
func (NamedTypeExt) UpdateExt ¶
func (x NamedTypeExt) UpdateExt(dest interface{}, v interface{})
From NamedType to NamedType
func (NamedTypeExt) WriteExt ¶
func (x NamedTypeExt) WriteExt(interface{}) []byte
type PubsubClient ¶
type PubsubClient struct { Rules chan Rule // contains filtered or unexported fields }
func PubsubConnect ¶
func PubsubConnect(url string) PubsubClient
type PubsubServer ¶
type PubsubServer struct {
// contains filtered or unexported fields
}
func PubsubListen ¶
func PubsubListen(url string, source PubsubSource) PubsubServer
func (PubsubServer) Pump ¶
func (self PubsubServer) Pump()
type PubsubSource ¶
type PubsubSource chan []byte
type RawNamedType ¶
type RawNamedType struct { Name string Value interface{} }
type Rule ¶
func RuleFromMap ¶
func RuleFromMap(data map[interface{}]interface{}) Rule
type RuleRequest ¶
type TestPacket ¶
func TestPacketFromMap ¶
func TestPacketFromMap(data map[interface{}]interface{}) TestPacket
type TrainPacket ¶
func TrainPacketFromMap ¶
func TrainPacketFromMap(data map[interface{}]interface{}) TrainPacket
Click to show internal directories.
Click to hide internal directories.