Documentation ¶
Index ¶
- type ClientHTTPTransportOption
- type ConfigDocOption
- type ConfigOption
- type DeclType
- type Enum
- type Env
- type ErrorHTTPTransportOption
- type GatewayMethodOption
- type GatewayOption
- type GatewayServiceOption
- type GenerateInfo
- type InstrumentingServiceOption
- type JsonRPCHTTPTransportOption
- type MarkdownDocHTTPTransportOption
- type MethodHTTPTransportOption
- type OpenapiHTTPTransportOption
- type OpenapiMethodOption
- type ReqRespFunc
- type ServiceMethod
- type ServiceOption
- type ServiceReadme
- type TransportOption
- type VarSlice
- type WrapResponseHTTPTransportOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientHTTPTransportOption ¶
type ClientHTTPTransportOption struct {
Enable bool
}
type ConfigDocOption ¶ added in v1.25.0
type ConfigOption ¶
type ErrorHTTPTransportOption ¶ added in v1.22.0
type GatewayMethodOption ¶ added in v1.23.0
type GatewayOption ¶ added in v1.23.0
type GatewayOption struct {
Services []GatewayServiceOption
}
type GatewayServiceOption ¶ added in v1.23.0
type GenerateInfo ¶
type MarkdownDocHTTPTransportOption ¶ added in v1.24.1
type MethodHTTPTransportOption ¶
type MethodHTTPTransportOption struct { MethodName string Expr ast.Expr Path string PathVars map[string]string HeaderVars map[string]string QueryVars map[string]string WrapResponse WrapResponseHTTPTransportOption ServerRequestFunc ReqRespFunc ServerResponseFunc ReqRespFunc ClientRequestFunc ReqRespFunc ClientResponseFunc ReqRespFunc }
type OpenapiHTTPTransportOption ¶
type OpenapiHTTPTransportOption struct { Enable bool Output string Servers []openapi.Server Info openapi.Info Methods map[string]*OpenapiMethodOption DefaultMethod OpenapiMethodOption }
type OpenapiMethodOption ¶
type OpenapiMethodOption struct {
Tags []string
}
type ServiceMethod ¶
type ServiceOption ¶
type ServiceOption struct { ID string RawID string Transport TransportOption Instrumenting InstrumentingServiceOption Logging bool Methods []ServiceMethod Type stdtypes.Type TypeName *stdtypes.Named Interface *stdtypes.Interface Readme ServiceReadme }
type ServiceReadme ¶ added in v1.24.1
type TransportOption ¶
type TransportOption struct { Protocol string Prefix string ServerDisabled bool Client ClientHTTPTransportOption Openapi OpenapiHTTPTransportOption MarkdownDoc MarkdownDocHTTPTransportOption FastHTTP bool JsonRPC JsonRPCHTTPTransportOption MethodOptions map[string]MethodHTTPTransportOption DefaultMethodOptions MethodHTTPTransportOption Errors map[uint32]*ErrorHTTPTransportOption }
Click to show internal directories.
Click to hide internal directories.