Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DSN ¶
type DSN struct { Driver string `json:"driver"` Username string `json:"username"` Password string `json:"password"` Hostname string `json:"hostname"` Port int `json:"port"` Name string `json:"name"` }
DSN struct
func (*DSN) ConvertToJSON ¶
ConvertToJSON convert object to json
func (*DSN) LoadFromJSON ¶
LoadFromJSON update object from json
type Role ¶
type Role struct { ID int `json:"id"` Name string `json:"name"` Value string `json:"value"` StartAt time.Time `json:"startAt"` EndAt time.Time `json:"endAt"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` }
Role struct
func (*Role) ConvertToJSON ¶
ConvertToJSON convert object to json
func (*Role) LoadFromJSON ¶
LoadFromJSON update object from json
type RoleRequest ¶
type RoleRequest struct { ID int `json:"id"` Name string `json:"name"` Value map[string]string `json:"value"` StartAt time.Time `json:"startAt"` EndAt time.Time `json:"endAt"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` }
RoleRequest struct
func (*RoleRequest) ConvertToJSON ¶
func (o *RoleRequest) ConvertToJSON() (string, error)
ConvertToJSON convert object to json
func (*RoleRequest) LoadFromJSON ¶
func (o *RoleRequest) LoadFromJSON(data []byte) error
LoadFromJSON update object from json
type Roles ¶
type Roles struct {
Roles []Role `json:"roles"`
}
Roles struct
func (*Roles) ConvertToJSON ¶
ConvertToJSON convert object to json
func (*Roles) LoadFromJSON ¶
LoadFromJSON update object from json
Click to show internal directories.
Click to hide internal directories.