dao

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dao

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

func New

func New(c *config.Config) *Dao

func (*Dao) AddDeviceInfo

func (d *Dao) AddDeviceInfo(device *model.Device) error

hash key:userId hash val: key=device val=json boj

func (*Dao) EnableDevice

func (d *Dao) EnableDevice(uid, connId string) error

hash key:userId hash val: key=device val=json boj

func (*Dao) GetAllDevices

func (d *Dao) GetAllDevices(uid string) ([]*model.Device, error)

func (*Dao) GetDevicesByConnID added in v0.1.0

func (d *Dao) GetDevicesByConnID(uid, connID string) (*model.Device, error)

func (*Dao) GetTokenDevice

func (d *Dao) GetTokenDevice(deviceToken string) (string, error)

Jump to

Keyboard shortcuts

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