Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateRandomString ¶
GenerateRandomString returns a random string with `n` as the length
Types ¶
type Client ¶
type Client struct { Model UUID string `gorm:"not null;unique;index" validate:"omitempty,uuid4" json:"id"` Key string `gorm:"not null;unique;index" json:"-"` Secret string `gorm:"not null" validate:"required" json:"-"` }
Client is the client application model/struct
func (*Client) BeforeCreate ¶
BeforeCreate Client model/struct hook
func (*Client) BeforeSave ¶
BeforeSave Client model/struct hook
func (*Client) UpdateSecret ¶
UpdateSecret updates an Client's secret
Click to show internal directories.
Click to hide internal directories.