device

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is service providers.

Functions

func Device2Proto

func Device2Proto(d *model.Device) *device.DeviceRecord

Types

type DeviceService

type DeviceService struct {
	device.UnimplementedDeviceServer
	// contains filtered or unexported fields
}

func NewDeviceService

func NewDeviceService(dc *conf.DatabaseServerConfig, deviceConfig *conf.DeviceConfig) *DeviceService

func (*DeviceService) CreateDevice

func (*DeviceService) GetDevice

func (*DeviceService) GetDeviceByMac

func (s *DeviceService) GetDeviceByMac(ctx context.Context, req *device.GetDeviceByMacReq) (*device.DeviceRecord, error)

func (*DeviceService) GetOrCreateDevice

func (s *DeviceService) GetOrCreateDevice(ctx context.Context, req *device.GetOrCreateDeviceReq) (*device.DeviceRecord, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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