resourcesgateway

package
v0.11.7 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Company

type Company struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

type Gateway

type Gateway interface {
	FindCompanies(ctx context.Context) ([]Company, error)
	FindMachines(ctx context.Context, request *ListMachinesRequest) ([]Machine, error)
	FindSensors(ctx context.Context, request *ListSensorsRequest) ([]Sensor, error)
}

func NewAdapter

func NewAdapter(client restclient.RestClient, env types.Environment) Gateway

type ListMachinesRequest

type ListMachinesRequest struct {
	CompanyID string
}

type ListSensorsRequest

type ListSensorsRequest struct {
	MachineID string
}

type Machine

type Machine struct {
	ID          string `json:"id"`
	Name        string `json:"name"`
	Description string `json:"description"`
}

type Sensor

type Sensor struct {
	ID          string `json:"id"`
	Name        string `json:"name"`
	Description string `json:"description"`
}

Jump to

Keyboard shortcuts

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