Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func APIKeyValidator ¶
Types ¶
type Banana ¶
func (Banana) UnmarshalRequestData ¶
type BaseHandler ¶
type BaseHandler struct {
APIKey string `schema:"apiKey" maxlen:"64" required:"true" doc:"Client API Key" global:"true"`
}
type UserHandler ¶
type UserHandler struct { BaseHandler Id string `schema:"id" maxlen:"100" pattern:"[a-zA-Z]+" required:"true" doc:"The Id Of the user" in:"path"` Name string `schema:"name" maxlen:"100" minlen:"1" required:"true" doc:"The Name Of the user"` Foo int `schema:"foo" default:"500"` Bars []string `schema:"bars" in:"query" hidden:"true" global:"true"` }
func (UserHandler) Handle ¶
func (h UserHandler) Handle(w http.ResponseWriter, r *vertex.Request) (interface{}, error)
Click to show internal directories.
Click to hide internal directories.