Documentation
¶
Index ¶
- func Build(Option)
- type ClientOption
- type ConfigEnvOption
- type ConfigParams
- type Generator
- type InstrumentingMiddlewareOption
- type InstrumentingOption
- type JsonRPCOption
- type LoggingMiddlewareOption
- type MethodOption
- func HTTPDecodeRequest(kithttp.DecodeRequestFunc) MethodOption
- func HTTPEncodeResponse(kithttp.EncodeResponseFunc) MethodOption
- func HTTPFastDecodeRequest(kitfasthttp.DecodeRequestFunc) MethodOption
- func HTTPFastEncodeResponse(kitfasthttp.EncodeResponseFunc) MethodOption
- func HTTPFastServerOption(...kitfasthttp.ServerOption) MethodOption
- func HTTPHeaderVars([]string) MethodOption
- func HTTPMethod(string) MethodOption
- func HTTPPath(string) MethodOption
- func HTTPQueryVars([]string) MethodOption
- func HTTPServerOption(...kithttp.ServerOption) MethodOption
- func Signature(interface{}) MethodOption
- type OpenapiOption
- func OpenapiContactEmail(string) OpenapiOption
- func OpenapiContactName(string) OpenapiOption
- func OpenapiContactURL(string) OpenapiOption
- func OpenapiDescription(string) OpenapiOption
- func OpenapiLicenceName(string) OpenapiOption
- func OpenapiLicenceURL(string) OpenapiOption
- func OpenapiOutput(string) OpenapiOption
- func OpenapiTitle(string) OpenapiOption
- func OpenapiVersion(string) OpenapiOption
- 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 ClientOption ¶
type ClientOption string
type ConfigEnvOption ¶
type ConfigEnvOption string
func FuncName ¶
func FuncName(string) ConfigEnvOption
func Struct ¶
func Struct(interface{}) ConfigEnvOption
type ConfigParams ¶
type ConfigParams struct {
Struct interface{}
}
type InstrumentingMiddlewareOption ¶
type InstrumentingMiddlewareOption string
type InstrumentingOption ¶
type InstrumentingOption string
func Namespace ¶
func Namespace(string) InstrumentingOption
func Subsystem ¶
func Subsystem(string) InstrumentingOption
type JsonRPCOption ¶
type JsonRPCOption string
func JsonRPCPath ¶
func JsonRPCPath(string) JsonRPCOption
type LoggingMiddlewareOption ¶
type LoggingMiddlewareOption string
type MethodOption ¶
type MethodOption string
func HTTPDecodeRequest ¶
func HTTPDecodeRequest(kithttp.DecodeRequestFunc) MethodOption
func HTTPEncodeResponse ¶
func HTTPEncodeResponse(kithttp.EncodeResponseFunc) MethodOption
func HTTPFastDecodeRequest ¶
func HTTPFastDecodeRequest(kitfasthttp.DecodeRequestFunc) MethodOption
func HTTPFastEncodeResponse ¶
func HTTPFastEncodeResponse(kitfasthttp.EncodeResponseFunc) MethodOption
func HTTPFastServerOption ¶
func HTTPFastServerOption(...kitfasthttp.ServerOption) MethodOption
func HTTPHeaderVars ¶
func HTTPHeaderVars([]string) MethodOption
func HTTPMethod ¶
func HTTPMethod(string) MethodOption
func HTTPPath ¶
func HTTPPath(string) MethodOption
func HTTPQueryVars ¶
func HTTPQueryVars([]string) MethodOption
func HTTPServerOption ¶
func HTTPServerOption(...kithttp.ServerOption) MethodOption
func Signature ¶
func Signature(interface{}) MethodOption
type OpenapiOption ¶
type OpenapiOption string
func OpenapiContactEmail ¶
func OpenapiContactEmail(string) OpenapiOption
func OpenapiContactName ¶
func OpenapiContactName(string) OpenapiOption
func OpenapiContactURL ¶
func OpenapiContactURL(string) OpenapiOption
func OpenapiDescription ¶
func OpenapiDescription(string) OpenapiOption
func OpenapiLicenceName ¶
func OpenapiLicenceName(string) OpenapiOption
func OpenapiLicenceURL ¶
func OpenapiLicenceURL(string) OpenapiOption
func OpenapiOutput ¶
func OpenapiOutput(string) OpenapiOption
func OpenapiTitle ¶
func OpenapiTitle(string) OpenapiOption
func OpenapiVersion ¶
func OpenapiVersion(string) OpenapiOption
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 Instrumenting ¶
func Instrumenting(...InstrumentingOption) ServiceOption
func Interface ¶
func Interface(interface{}) ServiceOption
func Logging ¶
func Logging() ServiceOption
func Transport ¶
func Transport(...TransportOption) ServiceOption
type ServiceTransport ¶
type ServiceTransport string
type TransportOption ¶
type TransportOption string
func Client ¶
func Client(opts ...ClientOption) TransportOption
func HTTPFast ¶
func HTTPFast() TransportOption
func JsonRPC ¶
func JsonRPC(...JsonRPCOption) TransportOption
func MethodOptions ¶
func MethodOptions(...MethodOption) TransportOption
func Openapi ¶
func Openapi(...OpenapiOption) TransportOption
func Protocol ¶
func Protocol(string) TransportOption
Click to show internal directories.
Click to hide internal directories.