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