Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
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
Functions ¶
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.
Types ¶
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
Click to show internal directories.
Click to hide internal directories.