MCPcopy Create free account
hub / github.com/chanify/chanify / BindDevice

Method BindDevice

model/model.go:17–17  ·  view source on GitHub ↗
(uid string, uuid string, key []byte, devType int)

Source from the content-addressed store, hash-verified

15 GetUser(uid string) (*User, error)
16 UpsertUser(u *User) error
17 BindDevice(uid string, uuid string, key []byte, devType int) error
18 UnbindDevice(uid string, uuid string) error
19 UpdatePushToken(uid string, uuid string, token []byte, sandbox bool) error
20 GetDeviceKey(uuid string) ([]byte, error)

Callers 9

TestUpdatePushTokenFunction · 0.65
TestSendDirectFunction · 0.65
TestSendDirectWatchFunction · 0.65
TestSendDirectMacOSFunction · 0.65
handleBindUserMethod · 0.65
TestSqliteDeviceFunction · 0.65
TestNoSQLFunction · 0.65
BindDeviceMethod · 0.65

Implementers 3

sqlitemodel/sqlite.go
mysqlmodel/mysql.go
nosqlmodel/nosql.go

Calls

no outgoing calls

Tested by 7

TestUpdatePushTokenFunction · 0.52
TestSendDirectFunction · 0.52
TestSendDirectWatchFunction · 0.52
TestSendDirectMacOSFunction · 0.52
TestSqliteDeviceFunction · 0.52
TestNoSQLFunction · 0.52