Documentation ¶
Index ¶
Constants ¶
View Source
const ( RoleUser = "user" RoleOperator = "operator" )
Variables ¶
View Source
var AllTasks = []Task{TaskOne, TaskTwo, TaskThree}
View Source
var Manager = User{ ID: 3, Login: "operator", Role: RoleOperator, }
View Source
var MessageFour = Message{ ID: 4, TaskID: 3, FromUserID: 3, Text: "message four", FileKey: "", Created: time.Now(), }
View Source
var MessageOne = Message{ ID: 1, TaskID: 1, FromUserID: 1, Text: "message one", FileKey: "fileone.txt", Created: time.Now(), }
View Source
var MessageThree = Message{ ID: 3, TaskID: 2, FromUserID: 3, Text: "message three", FileKey: "filethree.txt", Created: time.Now(), }
View Source
var MessageTwo = Message{ ID: 2, TaskID: 1, FromUserID: 2, Text: "message two", FileKey: "filetwo.txt", Created: time.Now(), }
View Source
var Messages = []Message{MessageOne, MessageTwo, MessageThree, MessageFour}
View Source
var TaskOne = Task{ ID: 1, UserID: 1, Name: "task one", Category: "find a doctor", Status: "processing", StartedAt: time.Now(), UpdatedAt: time.Now(), }
View Source
var TaskThree = Task{ ID: 3, UserID: 2, Name: "task three", Category: "find a dog sitter", Status: "processing", StartedAt: time.Now(), UpdatedAt: time.Now(), }
View Source
var TaskTwo = Task{ ID: 2, UserID: 1, Name: "task two", Category: "buy plane tickets", Status: "processing", StartedAt: time.Now(), UpdatedAt: time.Now(), }
View Source
var UserOne = User{ ID: 1, Login: "userone", Role: RoleUser, }
View Source
var UserTwo = User{ ID: 2, Login: "usertwo", Role: RoleUser, }
View Source
var Users = []User{UserOne, UserTwo, Manager}
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.