Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrHostIsClosed = errors.New("server is closed")
ErrHostIsClosed signals that the host was closed while trying to perform actions
View Source
var ErrNilHost = errors.New("nil host provided")
ErrNilHost signals that a nil host has been provided
Functions ¶
func NewHostDriver ¶
func NewHostDriver(args ArgsHostDriver) (*hostDriver, error)
NewHostDriver will create a new instance of hostDriver
Types ¶
type ArgsHostDriver ¶
type ArgsHostDriver struct {
Marshaller marshal.Marshalizer
SenderHost SenderHost
Log core.Logger
}
ArgsHostDriver holds the arguments needed for creating a new hostDriver
type SenderHost ¶
type SenderHost interface {
Send(payload []byte, topic string) error
SetPayloadHandler(handler websocket.PayloadHandler) error
Close() error
IsInterfaceNil() bool
}
SenderHost defines the actions that a host sender should do
Click to show internal directories.
Click to hide internal directories.