Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Project ¶
Project represents a project.
func ProjectFromProto ¶
ProjectFromProto returns Project corresponding to ttv1.Project
type Snippet ¶
type Snippet struct { ID IDType `json:"id" db:"id"` Username string `json:"username" db:"username"` TS int64 `json:"ts" db:"ts"` Contents string `json:"contents" db:"contents"` }
Snippet is a short note that says what has been done on a given day.
func SnippetFromProto ¶
SnippetFromProto returns Snippet corresponding to ttv1.Snippet
type User ¶
type User struct { Username string `json:"username" db:"username"` Password string `json:"password" db:"password"` Email string `json:"email" db:"email"` Phone string `json:"phone" db:"phone"` }
User represents a user.
func UserFromProto ¶
UserFromProto returns User corresponding to ttv1.User
type Work ¶
type Work struct { ID IDType `json:"id" db:"id"` Username string `json:"username" db:"username"` Project string `json:"project" db:"project"` TS int64 `json:"ts" db:"ts"` Duration int64 `json:"duration" db:"duration"` Descr string `json:"descr" db:"descr"` }
Work represents work that has been done on a project.
func WorkFromProto ¶
WorkFromProto returns Work corresponding to ttv1.Work
Click to show internal directories.
Click to hide internal directories.