Documentation ¶
Index ¶
- Constants
- func GetRestfulRequest(ctx context.Context) *restful.Request
- func GetRestfulResponse(ctx context.Context) *restful.Response
- func JsonPatchDecodeRequestFunc(_ context.Context, r *http.Request) (interface{}, error)
- func MakeGoRestfulWrapper(server *gokithttp.Server) restful.RouteFunction
- func NameNamespaceDecodeRequestFunc(ctx context.Context, r *http.Request) (interface{}, error)
- func NamespaceDecodeRequestFunc(ctx context.Context, r *http.Request) (interface{}, error)
- func NewEncodeINIResponse(returnCode int) kithttp.EncodeResponseFunc
- func NewEncodeJsonResponse(returnCode int) kithttp.EncodeResponseFunc
- func NewEncodeYamlResponse(returnCode int) kithttp.EncodeResponseFunc
- func NewJsonDecodeRequestFunc(payloadTypePtr interface{}) gokithttp.DecodeRequestFunc
- func NewJsonDeleteDecodeRequestFunc(payloadTypePtr interface{}) gokithttp.DecodeRequestFunc
- func NewJsonPatchDecodeRequestFunc() gokithttp.DecodeRequestFunc
- func NewJsonPostDecodeRequestFunc(payloadTypePtr interface{}) gokithttp.DecodeRequestFunc
- func NewJsonPutDecodeRequestFunc(payloadTypePtr interface{}) gokithttp.DecodeRequestFunc
- func NewMimeTypeAwareDecodeRequestFunc(defaultDecoder gokithttp.DecodeRequestFunc, ...) gokithttp.DecodeRequestFunc
- func NewMimeTypeAwareEncoder(defaultEncoder kithttp.EncodeResponseFunc, ...) kithttp.EncodeResponseFunc
- func NewYamlDecodeRequestFunc(payloadTypePtr interface{}) gokithttp.DecodeRequestFunc
- func NoopDecoder(_ context.Context, _ *http.Request) (interface{}, error)
- func NotNamespacedDecodeRequestFunc(ctx context.Context, r *http.Request) (interface{}, error)
- type HandlerBuilder
- type Metadata
- type MetadataHeader
- type PatchObject
- type PutObject
Constants ¶
View Source
const ( ReqKey string = "restful_req__" RespKey string = "restful_resp__" )
Variables ¶
This section is empty.
Functions ¶
func MakeGoRestfulWrapper ¶
func MakeGoRestfulWrapper(server *gokithttp.Server) restful.RouteFunction
func NewEncodeINIResponse ¶
func NewEncodeINIResponse(returnCode int) kithttp.EncodeResponseFunc
func NewEncodeJsonResponse ¶
func NewEncodeJsonResponse(returnCode int) kithttp.EncodeResponseFunc
func NewEncodeYamlResponse ¶
func NewEncodeYamlResponse(returnCode int) kithttp.EncodeResponseFunc
func NewJsonDecodeRequestFunc ¶
func NewJsonDecodeRequestFunc(payloadTypePtr interface{}) gokithttp.DecodeRequestFunc
func NewJsonDeleteDecodeRequestFunc ¶ added in v0.1.0
func NewJsonDeleteDecodeRequestFunc(payloadTypePtr interface{}) gokithttp.DecodeRequestFunc
func NewJsonPatchDecodeRequestFunc ¶
func NewJsonPatchDecodeRequestFunc() gokithttp.DecodeRequestFunc
func NewJsonPostDecodeRequestFunc ¶
func NewJsonPostDecodeRequestFunc(payloadTypePtr interface{}) gokithttp.DecodeRequestFunc
func NewJsonPutDecodeRequestFunc ¶
func NewJsonPutDecodeRequestFunc(payloadTypePtr interface{}) gokithttp.DecodeRequestFunc
func NewMimeTypeAwareDecodeRequestFunc ¶
func NewMimeTypeAwareDecodeRequestFunc(defaultDecoder gokithttp.DecodeRequestFunc, decoderMapping map[string]gokithttp.DecodeRequestFunc) gokithttp.DecodeRequestFunc
func NewMimeTypeAwareEncoder ¶
func NewMimeTypeAwareEncoder(defaultEncoder kithttp.EncodeResponseFunc, encoderMapping map[string]kithttp.EncodeResponseFunc) kithttp.EncodeResponseFunc
func NewYamlDecodeRequestFunc ¶
func NewYamlDecodeRequestFunc(payloadTypePtr interface{}) gokithttp.DecodeRequestFunc
Types ¶
type HandlerBuilder ¶
type HandlerBuilder interface { Build(context.Context) *kithttp.Server Post(interface{}) HandlerBuilder Put(interface{}) HandlerBuilder Patch() 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
type Metadata ¶
type Metadata struct { Name string Namespace string Headers MetadataHeader }
type MetadataHeader ¶
type PatchObject ¶
Click to show internal directories.
Click to hide internal directories.