Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache is the domain model for cache service
type Course ¶
Course is created to show the project layout and courseDataServiceFactory, no real use.
type User ¶
type User struct { Id int `json:"uid"` Name string `json:"username"` Department string `json:"department"` Created time.Time `json:"created"` }
User has a name, department and created date. Name and created are required, department is optional. Id is auto-generated by database after the user is persisted. json is for couchdb
func (User) Validate ¶
Validate validates a newly created user, which has not persisted to database yet, so Id is empty
func (User) ValidatePersisted ¶
ValidatePersisted validate a user that has been persisted to database, basically Id is not empty
Click to show internal directories.
Click to hide internal directories.