Documentation ¶
Index ¶
- Constants
- type Device
- func (d Device) Destroy(ctx context.Context, deviceID string) (model.Device, error)
- func (d Device) Get(ctx context.Context) ([]model.Device, error)
- func (d Device) Insert(ctx context.Context, dev model.Device) error
- func (d Device) Show(ctx context.Context, deviceID string) (model.Device, error)
- func (d Device) Update(ctx context.Context, deviceID string, field string, value interface{}) (model.Device, error)
Constants ¶
View Source
const Collection = "devices"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.