Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UnmarshalTimestamp ¶
Types ¶
type Role ¶
type Role struct { ID string `json:"id" rethinkdb:"id,omitempty" redis:"id,omitempty"` Name string `json:"name" rethinkdb:"name" redis:"name"` Description *string `json:"description" rethinkdb:"description" redis:"description"` CreatedAt *time.Time `json:"created_at" rethinkdb:"created_at"` UpdatedAt *time.Time `json:"updated_at" rethinkdb:"updated_at"` Slug *string `json:"slug" rethinkdb:"slug"` }
func (Role) IsBaseModel ¶
func (Role) IsBaseModel()
func (Role) IsSearchResult ¶
func (Role) IsSearchResult()
func (*Role) MarshalBinary ¶
func (*Role) UnmarshalBinary ¶
type SearchResult ¶
type SearchResult interface {
IsSearchResult()
}
type Todo ¶
type Todo struct { ID string `json:"id" rethinkdb:"id,omitempty" redis:"id,omitempty"` Description *string `json:"description" rethinkdb:"description" redis:"description"` Text string `json:"text" rethinkdb:"text" redis:"text"` Done bool `json:"done" rethinkdb:"done" redis:"done"` User *User `json:"user" rethinkdb:"user" redis:"user"` UserID string `json:"user_id" rethinkdb:"user_id,omitempty" redis:"user_id,omitempty"` Assigned []*User `json:"assigned" rethinkdb:"assigned" redis:"assigned"` AssignedIDs []string `json:"assigned_ids" rethinkdb:"assigned_ids,omitempty" redis:"assigned_ids,omitempty"` CreatedAt *time.Time `json:"created_at" rethinkdb:"created_at"` UpdatedAt *time.Time `json:"updated_at" rethinkdb:"updated_at"` Slug *string `json:"slug" rethinkdb:"slug,omitempty"` Start time.Time `json:"start" rethinkdb:"start"` End *time.Time `json:"end" rethinkdb:"end"` }
func (Todo) IsBaseModel ¶
func (Todo) IsBaseModel()
func (Todo) IsSearchResult ¶
func (Todo) IsSearchResult()
func (*Todo) MarshalBinary ¶
func (*Todo) UnmarshalBinary ¶
type UpdateRole ¶
type UpdateTodo ¶
type UpdateUser ¶
type User ¶
type User struct { ID string `json:"id" rethinkdb:"id,omitempty" redis:"id,omitempty"` Username string `json:"username" rethinkdb:"username" redis:"username"` Slug *string `json:"slug" rethinkdb:"slug"` Email string `json:"email" rethinkdb:"email" redis:"email"` Password string `json:"-" rethinkdb:"password" redis:"password"` Biography *string `json:"biography" rethinkdb:"biography,omitempty" redis:"biography,omitempty"` Roles []*Role `json:"roles" rethinkdb:"roles" redis:"roles"` RoleIDs []string `json:"role_ids" rethinkdb:"role_ids" redis:"role_ids"` LastLogin *time.Time `json:"last_login" rethinkdb:"last_login"` CreatedAt *time.Time `json:"created_at" rethinkdb:"created_at"` UpdatedAt *time.Time `json:"updated_at" rethinkdb:"updated_at"` }
func (User) IsBaseModel ¶
func (User) IsBaseModel()
func (User) IsSearchResult ¶
func (User) IsSearchResult()
func (*User) MarshalBinary ¶
func (*User) UnmarshalBinary ¶
Click to show internal directories.
Click to hide internal directories.