adapter

package
v0.0.0-...-b6b9972 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

README

Mainflux CoAP

CoAP (Constrained Application Protocol) service of Mainflux IoT Cloud.

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

type Observer

type Observer struct {
	// contains filtered or unexported fields
}

Directories

Path Synopsis
Package nats contains NATS-specific message repository implementation.
Package nats contains NATS-specific message repository implementation.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL