Documentation ¶
Overview ¶
Package client
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(name string, newConfig ConfigFactoryFunc, newClient FactoryFunc)
Types ¶
type ConfigFactoryFunc ¶
type ConfigFactoryFunc func() interface{}
type FactoryFunc ¶
type Interface ¶
type Interface interface { // Context of this client Context() context.Context // Connect to server/broker Connect(dialCtx context.Context) error // Start internal logic to get prepared for communicating with aranya // usually send online state message Start(appCtx context.Context) error // PostMsg to aranya PostMsg(msg *aranyagopb.Msg) error // Close this client Close() error // MaxPayloadSize of a single message for this client MaxPayloadSize() int }
Click to show internal directories.
Click to hide internal directories.