Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Blacklist ¶
type Blacklist struct { Id string `json:"id,omitempty"` AuthToken string `json:"auth_token,omitempty"` LastModified string `json:"last_modified,omitempty"` CreationDatetime string `json:"creation_datetime,omitempty"` }
Blacklist is a root struct that is used to store the json encoded data for/from a mongodb blacklist doc.
type Group ¶
type Group struct { Id string `json:"id,omitempty"` GroupType string `json:"grouptype,omitempty"` Uuid string `json:"uuid,omitempty"` Name string `json:"name,omitempty"` LastModified string `json:"last_modified,omitempty"` CreationDatetime string `json:"creation_datetime,omitempty"` }
Group is a root struct that is used to store the json encoded data for/from a mongodb group doc.
type GroupService ¶
type GroupService interface { GroupCreate(g Group) Group GroupFind(id string) Group GroupsFind() []Group GroupDelete(id string) Group GroupUpdate(g Group) Group GroupDocInsert(g Group) Group }
GroupService is an interface used to manage the relevant group doc controllers
type Todo ¶
type Todo struct { Id string `json:"id,omitempty"` Uuid string `json:"uuid,omitempty"` Name string `json:"name,omitempty"` Completed string `json:"completed,omitempty"` Due string `json:"due,omitempty"` Description string `json:"description,omitempty"` UserUuid string `json:"useruuid,omitempty"` GroupUuid string `json:"groupuuid,omitempty"` LastModified string `json:"last_modified,omitempty"` CreationDatetime string `json:"creation_datetime,omitempty"` }
Todo is a root struct that is used to store the json encoded data for/from a mongodb todos doc.
type TodoService ¶
type TodoService interface { TodoCreate(t Todo) Todo TodoFind([]string, string) Todo TodosFind([]string) []Todo TodoDelete([]string, string) Todo TodoUpdate(t Todo) Todo TodoDocInsert(t Todo) Todo }
TodoService is an interface used to manage the relevant todos doc controllers
type User ¶
type User struct { Id string `json:"id,omitempty"` Uuid string `json:"uuid,omitempty"` Username string `json:"username,omitempty"` Password string `json:"password,omitempty"` FirstName string `json:"firstname,omitempty"` LastName string `json:"lastname,omitempty"` Email string `json:"email,omitempty"` Role string `json:"role,omitempty"` GroupUuid string `json:"groupuuid,omitempty"` LastModified string `json:"last_modified,omitempty"` CreationDatetime string `json:"creation_datetime,omitempty"` }
User is a root struct that is used to store the json encoded data for/from a mongodb user doc.
type UserService ¶
type UserService interface { AuthenticateUser(u User) User BlacklistAuthToken(authToken string) RefreshToken(tokenData []string, groupUuid string) User UpdatePassword(tokenData []string, CurrentPassword string, newPassword string) User UserCreate(u User) User UserDelete(id string, groupUuid string) User UsersFind(groupUuid string) []User UserFind(id string, groupUuid string) User UserUpdate(u User, groupUuid string) User UserDocInsert(u User) User }
UserService is an interface used to manage the relevant user doc controllers
Click to show internal directories.
Click to hide internal directories.