Documentation
¶
Index ¶
- type ConfigDocOption
- type ConfigOption
- type DeclType
- type Enum
- type Env
- type GatewayMethodOption
- type GatewayServiceOption
- type HTTPError
- type HTTPErrors
- type Interfaces
- type MethodOption
- type ReqRespFunc
- type ServiceInterface
- func (g *ServiceInterface) AppName() string
- func (g *ServiceInterface) ClientLcName() string
- func (g *ServiceInterface) ClientUcName() string
- func (g *ServiceInterface) External() bool
- func (g *ServiceInterface) ExternalSwipePkg() *packages.Package
- func (g *ServiceInterface) Interface() *stdtypes.Interface
- func (g *ServiceInterface) LcName() string
- func (g *ServiceInterface) LcNameWithPrefix() string
- func (g *ServiceInterface) Methods() []ServiceMethod
- func (g *ServiceInterface) Namespace() string
- func (g *ServiceInterface) Type() stdtypes.Type
- func (g *ServiceInterface) TypeName() *stdtypes.Named
- func (g *ServiceInterface) UcName() string
- func (g *ServiceInterface) UcNameWithPrefix() string
- type ServiceMethod
- type Transport
- type VarSlice
- type WrapResponseHTTPTransportOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigDocOption ¶
type ConfigOption ¶
type GatewayMethodOption ¶
type GatewayServiceOption ¶
type GatewayServiceOption struct { Iface *ServiceInterface MethodOptions map[string]GatewayMethodOption }
type HTTPErrors ¶
type HTTPErrors []*HTTPError
func (HTTPErrors) Len ¶
func (e HTTPErrors) Len() int
func (HTTPErrors) Less ¶
func (e HTTPErrors) Less(i, j int) bool
func (HTTPErrors) Swap ¶
func (e HTTPErrors) Swap(i, j int)
type Interfaces ¶
type Interfaces []*ServiceInterface
func (Interfaces) At ¶
func (i Interfaces) At(index int) *ServiceInterface
func (Interfaces) Len ¶
func (i Interfaces) Len() int
type MethodOption ¶
type MethodOption 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 LoggingEnable bool LoggingIncludeParams map[string]struct{} LoggingExcludeParams map[string]struct{} LoggingContext map[string]ast.Expr InstrumentingEnable bool Exclude bool }
type ServiceInterface ¶
type ServiceInterface struct {
// contains filtered or unexported fields
}
func NewServiceInterface ¶
func (*ServiceInterface) AppName ¶
func (g *ServiceInterface) AppName() string
func (*ServiceInterface) ClientLcName ¶
func (g *ServiceInterface) ClientLcName() string
func (*ServiceInterface) ClientUcName ¶
func (g *ServiceInterface) ClientUcName() string
func (*ServiceInterface) External ¶
func (g *ServiceInterface) External() bool
func (*ServiceInterface) ExternalSwipePkg ¶
func (g *ServiceInterface) ExternalSwipePkg() *packages.Package
func (*ServiceInterface) Interface ¶
func (g *ServiceInterface) Interface() *stdtypes.Interface
func (*ServiceInterface) LcName ¶
func (g *ServiceInterface) LcName() string
func (*ServiceInterface) LcNameWithPrefix ¶
func (g *ServiceInterface) LcNameWithPrefix() string
func (*ServiceInterface) Methods ¶
func (g *ServiceInterface) Methods() []ServiceMethod
func (*ServiceInterface) Namespace ¶
func (g *ServiceInterface) Namespace() string
func (*ServiceInterface) Type ¶
func (g *ServiceInterface) Type() stdtypes.Type
func (*ServiceInterface) TypeName ¶
func (g *ServiceInterface) TypeName() *stdtypes.Named
func (*ServiceInterface) UcName ¶
func (g *ServiceInterface) UcName() string
func (*ServiceInterface) UcNameWithPrefix ¶
func (g *ServiceInterface) UcNameWithPrefix() string
type ServiceMethod ¶
type ServiceMethod struct { Type *stdtypes.Func Name string LcName string IfaceUcName string IfaceLcName string NameRequest string NameResponse string Params VarSlice Results VarSlice Comments []string ParamCtx *stdtypes.Var ParamVariadic *stdtypes.Var ReturnErr *stdtypes.Var ResultsNamed bool Variadic bool Errors HTTPErrors T stdtypes.Type }
Click to show internal directories.
Click to hide internal directories.