Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CoAPAdapter ¶
type CoAPAdapter struct {
// contains filtered or unexported fields
}
func NewCoAPAdapter ¶
func NewCoAPAdapter(logger *zap.Logger, repo writer.MessageRepository) *CoAPAdapter
NewCoAPAdapter creates new CoAP adapter struct
func (*CoAPAdapter) BridgeHandler ¶
func (ca *CoAPAdapter) BridgeHandler(nm *broker.Msg)
BridgeHandler functions is a handler for messages recieved via NATS
func (*CoAPAdapter) COAPServer ¶
func (ca *CoAPAdapter) COAPServer() *mux.Router
func (*CoAPAdapter) Serve ¶
func (ca *CoAPAdapter) Serve(addr string) error
Serve function starts CoAP server
Click to show internal directories.
Click to hide internal directories.