Documentation ¶
Index ¶
- func Build(opt Option)
- type ConfigParams
- type GRPCOption
- type Generator
- type HTTPClientOption
- type HTTPMethodOption
- func HTTPDecodeRequest(requestFunc kithttp.DecodeRequestFunc) HTTPMethodOption
- func HTTPEncodeResponse(responseFunc kithttp.EncodeResponseFunc) HTTPMethodOption
- func HTTPFastDecodeRequest(requestFunc kitfasthttp.DecodeRequestFunc) HTTPMethodOption
- func HTTPFastEncodeResponse(responseFunc kitfasthttp.EncodeResponseFunc) HTTPMethodOption
- func HTTPFastServerOption(option ...kitfasthttp.ServerOption) HTTPMethodOption
- func HTTPHeaderVars(keyvals ...string) HTTPMethodOption
- func HTTPMethod(string) HTTPMethodOption
- func HTTPPath(string) HTTPMethodOption
- func HTTPQueryVars(keyvals ...string) HTTPMethodOption
- func HTTPServerOption(option ...kithttp.ServerOption) HTTPMethodOption
- type HTTPOption
- type InstrumentingMiddlewareOption
- type Interface
- type JSONRPCMethodOption
- type JSONRPCOption
- type LoggingMiddlewareOption
- type Option
- type Result
- type ServiceMiddlewareOption
- type ServiceOption
- type ServiceTransport
- type Swipe
- type TransportOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConfigParams ¶
type ConfigParams struct {
Struct interface{}
}
type GRPCOption ¶
type GRPCOption string
type HTTPClientOption ¶
type HTTPClientOption string
type HTTPMethodOption ¶
type HTTPMethodOption string
func HTTPDecodeRequest ¶
func HTTPDecodeRequest(requestFunc kithttp.DecodeRequestFunc) HTTPMethodOption
func HTTPEncodeResponse ¶
func HTTPEncodeResponse(responseFunc kithttp.EncodeResponseFunc) HTTPMethodOption
func HTTPFastDecodeRequest ¶
func HTTPFastDecodeRequest(requestFunc kitfasthttp.DecodeRequestFunc) HTTPMethodOption
func HTTPFastEncodeResponse ¶
func HTTPFastEncodeResponse(responseFunc kitfasthttp.EncodeResponseFunc) HTTPMethodOption
func HTTPFastServerOption ¶
func HTTPFastServerOption(option ...kitfasthttp.ServerOption) HTTPMethodOption
func HTTPHeaderVars ¶
func HTTPHeaderVars(keyvals ...string) HTTPMethodOption
func HTTPMethod ¶
func HTTPMethod(string) HTTPMethodOption
func HTTPPath ¶
func HTTPPath(string) HTTPMethodOption
func HTTPQueryVars ¶
func HTTPQueryVars(keyvals ...string) HTTPMethodOption
func HTTPServerOption ¶
func HTTPServerOption(option ...kithttp.ServerOption) HTTPMethodOption
type HTTPOption ¶
type HTTPOption string
func HTTPClient ¶
func HTTPClient(opts ...HTTPClientOption) HTTPOption
func HTTPFast ¶
func HTTPFast(opts ...HTTPClientOption) HTTPOption
func HTTPJsonRPC ¶
func HTTPJsonRPC(string) HTTPOption
func HTTPMethodOptions ¶
func HTTPMethodOptions(method interface{}, opts ...HTTPMethodOption) HTTPOption
func HTTPOpenapiDoc ¶
func HTTPOpenapiDoc(string) HTTPOption
type InstrumentingMiddlewareOption ¶
type InstrumentingMiddlewareOption string
type JSONRPCMethodOption ¶
type JSONRPCMethodOption string
type JSONRPCOption ¶
type JSONRPCOption string
type LoggingMiddlewareOption ¶
type LoggingMiddlewareOption string
func Logger ¶
func Logger(logger interface{}) LoggingMiddlewareOption
type Option ¶
type Option string
func Service ¶
func Service(s interface{}, transport ServiceTransport, opts ...ServiceOption) Option
type Result ¶
type Result struct { // PkgPath is the package's PkgPath. PkgPath string // OutputPath is the HTTPPath where the generated output should be written. // May be empty if there were errors. OutputPath string // Content is the gofmt'd source code that was generated. May be nil if // there were errors during generation. Content []byte // Errs is a slice of errors identified during generation. Errs []error }
type ServiceMiddlewareOption ¶
type ServiceMiddlewareOption string
type ServiceOption ¶
type ServiceOption string
func EndpointMiddleware ¶
func EndpointMiddleware(middleware endpoint.Middleware, methods ...interface{}) ServiceOption
func InstrumentingMiddleware ¶
func InstrumentingMiddleware(namespace, subsystem string) ServiceOption
func LoggingMiddleware ¶
func LoggingMiddleware() ServiceOption
func ServiceMiddleware ¶
func ServiceMiddleware(iface interface{}, opts ...ServiceMiddlewareOption) ServiceOption
type ServiceTransport ¶
type ServiceTransport string
func GRPC ¶
func GRPC(server interface{}, opts ...GRPCOption) ServiceTransport
func HTTP ¶
func HTTP(opts ...HTTPOption) ServiceTransport
type TransportOption ¶
type TransportOption string
Click to show internal directories.
Click to hide internal directories.