Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = types.Module{ {CreateFunc: NewCommunication}, {CreateFunc: Adapter}, {CreateFunc: NewParams}, {CreateFunc: model.NewConfig}, }
Functions ¶
This section is empty.
Types ¶
type AdapterOut ¶
func Adapter ¶
func Adapter(c Communicator) AdapterOut
type Communication ¶
type Communication struct {
// contains filtered or unexported fields
}
func (*Communication) SendMessage ¶
func (c *Communication) SendMessage(typeMessage string, payload []byte) error
func (*Communication) SetHandlers ¶
func (c *Communication) SetHandlers(hs map[string]model.HandlerFunc) error
type CommunicationMock ¶
type CommunicationMock struct{}
func NewCommunicationMock ¶
func NewCommunicationMock() *CommunicationMock
func (*CommunicationMock) SendMessage ¶
func (*CommunicationMock) SendMessage(_ string, _ []byte) error
func (*CommunicationMock) SetHandlers ¶
func (*CommunicationMock) SetHandlers(_ map[string]model.HandlerFunc) error
type Communicator ¶
type Communicator interface {
SetHandlers(hs map[string]model.HandlerFunc) error
Transport
}
func NewCommunication ¶
type TransportType ¶
type TransportType string
Click to show internal directories.
Click to hide internal directories.