Documentation ¶
Index ¶
Constants ¶
View Source
const ( MethodGet = "GET" MethodPost = "POST" MethodPut = "PUT" MethodDelete = "Delete" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { SelfResource bool // GET PUT POST DELETE SelfResourceField string // GET PUT POST DELETE SelectFields []string // GET PUT POST OmitFields []string // GET PUT POST GetLimit int GetSearchFields []string GetMessage string PostMessage string PostDuplicateMessage string PostSkipOmit bool // genetated fields cannot be omitted PostNewFields []string PostGenerateValues GenerateFields PostValidationFields ValidationFields PutMessage string PutUpdatableFields []string DeleteMessage string }
type GenerateFields ¶
type GenerateFields map[string]GenerateFunction
type GenerateFunction ¶
type GenerateFunction func(args ...interface{}) interface{}
type ValidationFields ¶
type ValidationFields map[string]ValidationFunction
type ValidationFunction ¶
type ValidationFunction func(value interface{}) bool
Click to show internal directories.
Click to hide internal directories.