Documentation
      ¶
    
    
  
    
  
    Index ¶
- type ConfigDocOption
 - type ConfigOption
 - type DeclType
 - type Enum
 - type Env
 - type GatewayMethodOption
 - type GatewayServiceOption
 - type HTTPError
 - type Interfaces
 - type MethodOption
 - type ReqRespFunc
 - type ServiceInterface
 - func (g *ServiceInterface) Interface() *stdtypes.Interface
 - func (g *ServiceInterface) LoweName() string
 - func (g *ServiceInterface) Methods() []ServiceMethod
 - func (g *ServiceInterface) Name() string
 - func (g *ServiceInterface) NameExport() string
 - func (g *ServiceInterface) NameUnExport() string
 - func (g *ServiceInterface) Type() stdtypes.Type
 - func (g *ServiceInterface) TypeName() *stdtypes.Named
 
- 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 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{}
	InstrumentingEnable  bool
}
    type ServiceInterface ¶
type ServiceInterface struct {
	// contains filtered or unexported fields
}
    func NewServiceInterface ¶
func NewServiceInterface( name, lowerName, nameExport, nameUnExport string, serviceType stdtypes.Type, serviceTypeName *stdtypes.Named, serviceIface *stdtypes.Interface, serviceMethods []ServiceMethod, ) *ServiceInterface
func (*ServiceInterface) Interface ¶
func (g *ServiceInterface) Interface() *stdtypes.Interface
func (*ServiceInterface) LoweName ¶
func (g *ServiceInterface) LoweName() string
func (*ServiceInterface) Methods ¶
func (g *ServiceInterface) Methods() []ServiceMethod
func (*ServiceInterface) Name ¶
func (g *ServiceInterface) Name() string
func (*ServiceInterface) NameExport ¶
func (g *ServiceInterface) NameExport() string
func (*ServiceInterface) NameUnExport ¶
func (g *ServiceInterface) NameUnExport() string
func (*ServiceInterface) Type ¶
func (g *ServiceInterface) Type() stdtypes.Type
func (*ServiceInterface) TypeName ¶
func (g *ServiceInterface) TypeName() *stdtypes.Named
type ServiceMethod ¶
type ServiceMethod struct {
	Type         *stdtypes.Func
	Name         string
	NameExport   string
	NameUnExport string
	LcName       string
	NameRequest  string
	NameResponse string
	Params       VarSlice
	Results      VarSlice
	Comments     []string
	ParamCtx     *stdtypes.Var
	ReturnErr    *stdtypes.Var
	ResultsNamed bool
	Errors       map[uint32]*HTTPError
	T            stdtypes.Type
}
     Click to show internal directories. 
   Click to hide internal directories.