Documentation ¶
Index ¶
Constants ¶
View Source
const CREATE_UNIT = "create"
View Source
const DELETE_UNIT = "delete"
View Source
const READ_UNIT = "read"
View Source
const UPDATE_UNIT = "update"
Variables ¶
This section is empty.
Functions ¶
func CRUDTestHandler ¶
func CRUDTestHandler(t *testing.T, handler divan.Handler, test CRUDTestUnit) interface{}
Types ¶
type CRUDTestUnit ¶
type Guy ¶
type Guy struct { ID string `json:"id" required:"true"` Age int `json:"age"` Sex string `json:"sex" restrict:"male female"` Description string `json:"description" required:"true" default:"hello\""` About GuyAbout `json:"about" ignore:"true"` Other GuyOther `json:"other"` Statistics map[string]interface{} `json:"statistics" default:"{\"lastOnline\": \"yesterday\"}"` }
func (Guy) UpdateIntegrity ¶
type GuyAbout ¶
type GuyCredentials ¶
type GuyCredentials struct { Username string `json:"username" required:"true"` Password string `json:"password" required:"true"` }
func (*GuyCredentials) Print ¶
func (m *GuyCredentials) Print() string
type GuyOther ¶
type GuyOther struct { Credentials GuyCredentials `json:"credentials"` Achievements []string `json:"achievements"` }
Click to show internal directories.
Click to hide internal directories.