Version: v0.0.0-...-ee64981 Latest Latest

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

Go to latest
Published: Aug 12, 2020 License: Apache-2.0 Imports: 22 Imported by: 0




This section is empty.


View Source
var ErrCOAPServerAlreadyStarted = errors.New("CoAP server has already been started")

ErrCOAPServerAlreadyStarted indicates that a CoAP server has already been started by the Thing Gateway


func SetAuthenticationTree

func SetAuthenticationTree(c *ThingGateway, tree string)

SetAuthenticationTree changes the authentication tree that the gateway was created with. This is a convenience function for functional testing.


type ThingGateway

type ThingGateway struct {
	// contains filtered or unexported fields

ThingGateway represents the Thing Gateway

func NewThingGateway

func NewThingGateway(baseURL string, realm string, authTree string, timeout time.Duration, handlers []callback.Handler) *ThingGateway

NewThingGateway creates a new Thing Gateway

func (*ThingGateway) Address

func (c *ThingGateway) Address() string

Address returns in string form the address that it is listening on.

func (*ThingGateway) Initialise

func (c *ThingGateway) Initialise() error

Initialise the Thing Gateway

func (*ThingGateway) ShutdownCOAPServer

func (c *ThingGateway) ShutdownCOAPServer()

ShutdownCOAPServer gracefully shuts the COAP server down

func (*ThingGateway) StartCOAPServer

func (c *ThingGateway) StartCOAPServer(address string, key crypto.Signer) error

StartCOAPServer starts a COAP server within the Thing Gateway

Source Files

Jump to

Keyboard shortcuts

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