Documentation ¶
Overview ¶
Package api implements reflection based http.Handler generation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct { Router *httprouter.Router Documentation *apidoc.Documentation // contains filtered or unexported fields }
type AuthorizationHandler ¶
type Request ¶
type Request struct {
// contains filtered or unexported fields
}
func (*Request) QueryParam ¶
type RequestBuilder ¶
type RequestBuilder struct {
// contains filtered or unexported fields
}
RequestBuilder simplifies the creation of api Requests for testing.
func NewRequest ¶
func NewRequest(username string) *RequestBuilder
func (*RequestBuilder) Build ¶
func (b *RequestBuilder) Build() *Request
func (*RequestBuilder) PathInteger ¶
func (b *RequestBuilder) PathInteger(name string, value int) *RequestBuilder
Click to show internal directories.
Click to hide internal directories.