Documentation
¶
Index ¶
- func EncodeDeleteResponse(context context.Context, w http.ResponseWriter, response interface{}) error
- func EncodeGetResponse(context context.Context, w http.ResponseWriter, response interface{}) error
- func EncodePostResponse(context context.Context, w http.ResponseWriter, response interface{}) error
- func EncodePutResponse(context context.Context, w http.ResponseWriter, response interface{}) error
- func GetRestfulRequest(ctx context.Context) *restful.Request
- func GetRestfulResponse(ctx context.Context) *restful.Response
- func MakeGoRestfulWrapper(server *gokithttp.Server) restful.RouteFunction
- func NameNamespaceDecodeRequestFunc(ctx context.Context, r *http.Request) (interface{}, error)
- func NewJsonDecodeRequestFunc(payloadTypePtr interface{}) gokithttp.DecodeRequestFunc
- func NewJsonPostDecodeRequestFunc(payloadTypePtr interface{}) gokithttp.DecodeRequestFunc
- func NewJsonPutDecodeRequestFunc(payloadTypePtr interface{}) gokithttp.DecodeRequestFunc
- type HandlerBuilder
- type Metadata
- type PutObject
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeDeleteResponse ¶
func EncodeDeleteResponse(context context.Context, w http.ResponseWriter, response interface{}) error
func EncodeGetResponse ¶
func EncodeGetResponse(context context.Context, w http.ResponseWriter, response interface{}) error
func EncodePostResponse ¶
func EncodePostResponse(context context.Context, w http.ResponseWriter, response interface{}) error
func EncodePutResponse ¶
func EncodePutResponse(context context.Context, w http.ResponseWriter, response interface{}) error
func GetRestfulRequest ¶
func GetRestfulResponse ¶
func MakeGoRestfulWrapper ¶
func NewJsonDecodeRequestFunc ¶
func NewJsonDecodeRequestFunc(payloadTypePtr interface{}) gokithttp.DecodeRequestFunc
func NewJsonPostDecodeRequestFunc ¶
func NewJsonPostDecodeRequestFunc(payloadTypePtr interface{}) gokithttp.DecodeRequestFunc
func NewJsonPutDecodeRequestFunc ¶
func NewJsonPutDecodeRequestFunc(payloadTypePtr interface{}) gokithttp.DecodeRequestFunc
Types ¶
type HandlerBuilder ¶
type HandlerBuilder interface { Build(context.Context) *kithttp.Server Post(interface{}) HandlerBuilder Put(interface{}) HandlerBuilder Get() HandlerBuilder Delete() HandlerBuilder Middleware([]endpoint.Middleware) HandlerBuilder Encoder(kithttp.EncodeResponseFunc) HandlerBuilder Decoder(kithttp.DecodeRequestFunc) HandlerBuilder Endpoint(endpoint.Endpoint) HandlerBuilder }
func NewHandlerBuilder ¶
func NewHandlerBuilder() HandlerBuilder
Click to show internal directories.
Click to hide internal directories.