http

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2020 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RequestInfo

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

RequestInfo aims to group all request releated information

type RequestOptions

type RequestOptions struct {
	Limit  int `url:"limit"`
	Offset int `url:"offset"`
}

RequestOptions represents the request query parameters

type ThingProxy

type ThingProxy interface {
	Create(id, name, authorization string) (idGenerated string, err error)
	UpdateSchema(authorization, ID string, schemaList []entities.Schema) error
	List(authorization string) (things []*entities.Thing, err error)
	Get(authorization, ID string) (*entities.Thing, error)
	Remove(authorization, ID string) error
}

ThingProxy proxy a request to the thing service interface

func NewThingProxy

func NewThingProxy(logger logging.Logger, hostname string, port uint16) ThingProxy

NewThingProxy creates a proxy to the thing service

type ThingProxyRepr

type ThingProxyRepr struct {
	ID       string      `json:"id"`
	Name     string      `json:"name"`
	Metadata objMetadata `json:"metadata"`
}

ThingProxyRepr is the entity that represents the thing on the remote thing's service

Jump to

Keyboard shortcuts

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