Documentation
¶
Index ¶
Constants ¶
View Source
const ( RoleAdmin = "Admin" RoleAgent = "Agent" )
Variables ¶
View Source
var DefaultRoles = []string{ RoleAdmin, RoleAgent, }
Functions ¶
This section is empty.
Types ¶
type Role ¶
type Role struct {
ID int `db:"id" json:"id"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
Name string `db:"name" json:"name"`
Description string `db:"description" json:"description"`
Permissions pq.StringArray `db:"permissions" json:"permissions"`
}
Click to show internal directories.
Click to hide internal directories.