Documentation ¶
Index ¶
Constants ¶
View Source
const Table = "accesstokens"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Accesstoken ¶
type Accesstoken struct { *_business.Accesstoken Database *db.Sqlite `json:"-"` Token *string `json:"token"` DeviceId string `json:"device_id"` CreatedAt time.Time `json:"date_created"` UpdatedAt time.Time `json:"date_updated"` }
func NewAccesstoken ¶
func NewAccesstoken(id *string, database *db.Sqlite) *Accesstoken
func (*Accesstoken) Authenticate ¶
func (a *Accesstoken) Authenticate(token string) (*Accesstoken, int, error)
Authenticate accesstoken
func (*Accesstoken) Create ¶
func (a *Accesstoken) Create(create *AccesstokenCreate) (*Accesstoken, int, error)
Create accesstoken
func (*Accesstoken) Delete ¶
func (a *Accesstoken) Delete() (*Accesstoken, int, error)
Delete accesstoken
type AccesstokenCreate ¶
type AccesstokenCreate struct {
DeviceId string `json:"device_id"`
}
type Data ¶
func (*Data) Create ¶
func (d *Data) Create(createData _business.DataCreate) (*_business.DataCreateResponse, int, error)
type DataSupport ¶
type DataSupport struct {
Enabled bool
}
type DeviceSupport ¶
type DeviceSupport struct {
Enabled bool
}
Click to show internal directories.
Click to hide internal directories.