Documentation ¶
Index ¶
- func ClientType(iface *config.Interface) string
- func IfaceMiddlewareTypeName(iface *config.Interface) string
- func LcAppName(iface *config.Interface) string
- func LcNameEndpoint(iface *config.Interface, fn *option.FuncType) string
- func LcNameIfaceMethod(iface *config.Interface, fn *option.FuncType) string
- func LcNameJS(iface *config.Interface) string
- func LcNameWithAppPrefix(iface *config.Interface, notInternal ...bool) string
- func NameEndpointSetName(iface *config.Interface) string
- func NameEndpointSetNameVar(iface *config.Interface) string
- func NameInstrumentingMiddleware(iface *config.Interface) string
- func NameInterface(iface *config.Interface) string
- func NameLoggingMiddleware(iface *config.Interface) string
- func NameMakeEndpoint(m *option.FuncType, iface *config.Interface) string
- func NameRequest(m *option.FuncType, iface *config.Interface) string
- func NameResponse(m *option.FuncType, iface *config.Interface) string
- func ServicePropName(iface *config.Interface) string
- func UcAppName(iface *config.Interface) string
- func UcNameIfaceMethod(iface *config.Interface, fn *option.FuncType) string
- func UcNameJS(iface *config.Interface) string
- func UcNameWithAppPrefix(iface *config.Interface, useServicePrefix ...bool) string
- type CURL
- type ClientHelpers
- type ClientStruct
- type Endpoint
- type GatewayGenerator
- type Instrumenting
- type InterfaceGenerator
- type JSONRPCClientGenerator
- type JSONRPCDocGenerator
- type JSONRPCJSClientGenerator
- type JSONRPCServerGenerator
- type Logging
- type MiddlewareChain
- type Openapi
- type RESTClientGenerator
- type RESTServerGenerator
- type ServerHelpers
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientType ¶
func IfaceMiddlewareTypeName ¶
func LcNameIfaceMethod ¶
func LcNameWithAppPrefix ¶
func NameEndpointSetName ¶
func NameEndpointSetNameVar ¶
func NameInterface ¶
func NameLoggingMiddleware ¶
func ServicePropName ¶
func UcNameIfaceMethod ¶
Types ¶
type CURL ¶
type CURL struct { Interfaces []*config.Interface MethodOptions map[string]config.MethodOptions JSONRPCEnable bool JSONRPCPath string Output string URL string // contains filtered or unexported fields }
func (*CURL) OutputPath ¶ added in v3.0.22
type ClientHelpers ¶
type ClientHelpers struct { Interfaces []*config.Interface JSONRPCEnable bool UseFast bool IfaceErrors map[string]map[string][]config.Error Output string Pkg string // contains filtered or unexported fields }
func (*ClientHelpers) Filename ¶
func (g *ClientHelpers) Filename() string
func (*ClientHelpers) OutputPath ¶ added in v3.0.22
func (g *ClientHelpers) OutputPath() string
func (*ClientHelpers) Package ¶
func (g *ClientHelpers) Package() string
type ClientStruct ¶
type ClientStruct struct { UseFast bool JSONRPCEnable bool Interfaces []*config.Interface Output string Pkg string // contains filtered or unexported fields }
func (*ClientStruct) Filename ¶
func (g *ClientStruct) Filename() string
func (*ClientStruct) OutputPath ¶ added in v3.0.22
func (g *ClientStruct) OutputPath() string
func (*ClientStruct) Package ¶
func (g *ClientStruct) Package() string
type Endpoint ¶
type Endpoint struct { Interfaces []*config.Interface HTTPServerEnable bool Output string Pkg string // contains filtered or unexported fields }
func (*Endpoint) OutputPath ¶ added in v3.0.22
type GatewayGenerator ¶
type GatewayGenerator struct { Interfaces []*config.Interface // contains filtered or unexported fields }
func (*GatewayGenerator) Filename ¶
func (g *GatewayGenerator) Filename() string
func (*GatewayGenerator) OutputPath ¶ added in v3.0.22
func (g *GatewayGenerator) OutputPath() string
type Instrumenting ¶
type Instrumenting struct { Interfaces []*config.Interface MethodOptions map[string]config.MethodOptions Labels []config.InstrumentingLabel // contains filtered or unexported fields }
func (*Instrumenting) Filename ¶
func (g *Instrumenting) Filename() string
func (*Instrumenting) OutputPath ¶ added in v3.0.22
func (g *Instrumenting) OutputPath() string
type InterfaceGenerator ¶
type InterfaceGenerator struct { Interfaces []*config.Interface Output string Pkg string // contains filtered or unexported fields }
func (*InterfaceGenerator) Filename ¶
func (g *InterfaceGenerator) Filename() string
func (*InterfaceGenerator) Generate ¶
func (g *InterfaceGenerator) Generate(ctx context.Context) []byte
func (*InterfaceGenerator) OutputPath ¶ added in v3.0.22
func (g *InterfaceGenerator) OutputPath() string
func (*InterfaceGenerator) Package ¶
func (g *InterfaceGenerator) Package() string
type JSONRPCClientGenerator ¶
type JSONRPCClientGenerator struct { Interfaces []*config.Interface UseFast bool Output string Pkg string // contains filtered or unexported fields }
func (*JSONRPCClientGenerator) Filename ¶
func (g *JSONRPCClientGenerator) Filename() string
func (*JSONRPCClientGenerator) Generate ¶
func (g *JSONRPCClientGenerator) Generate(ctx context.Context) []byte
func (*JSONRPCClientGenerator) OutputPath ¶ added in v3.0.22
func (g *JSONRPCClientGenerator) OutputPath() string
func (*JSONRPCClientGenerator) Package ¶
func (g *JSONRPCClientGenerator) Package() string
type JSONRPCDocGenerator ¶
type JSONRPCDocGenerator struct { AppName string JSPkgImportPath string Interfaces []*config.Interface IfaceErrors map[string]map[string][]config.Error Output string // contains filtered or unexported fields }
func (*JSONRPCDocGenerator) Filename ¶
func (g *JSONRPCDocGenerator) Filename() string
func (*JSONRPCDocGenerator) Generate ¶
func (g *JSONRPCDocGenerator) Generate(ctx context.Context) []byte
func (*JSONRPCDocGenerator) OutputPath ¶ added in v3.0.22
func (g *JSONRPCDocGenerator) OutputPath() string
type JSONRPCJSClientGenerator ¶
type JSONRPCJSClientGenerator struct { Interfaces []*config.Interface IfaceErrors map[string]map[string][]config.Error // contains filtered or unexported fields }
func (*JSONRPCJSClientGenerator) Filename ¶
func (g *JSONRPCJSClientGenerator) Filename() string
func (*JSONRPCJSClientGenerator) Generate ¶
func (g *JSONRPCJSClientGenerator) Generate(ctx context.Context) []byte
func (*JSONRPCJSClientGenerator) OutputPath ¶ added in v3.0.22
func (g *JSONRPCJSClientGenerator) OutputPath() string
type JSONRPCServerGenerator ¶
type JSONRPCServerGenerator struct { UseFast bool Interfaces []*config.Interface JSONRPCPath string // contains filtered or unexported fields }
func (*JSONRPCServerGenerator) Filename ¶
func (g *JSONRPCServerGenerator) Filename() string
func (*JSONRPCServerGenerator) Generate ¶
func (g *JSONRPCServerGenerator) Generate(ctx context.Context) []byte
func (*JSONRPCServerGenerator) OutputPath ¶ added in v3.0.22
func (g *JSONRPCServerGenerator) OutputPath() string
type Logging ¶
type Logging struct { Interfaces []*config.Interface MethodOptions map[string]config.MethodOptions // contains filtered or unexported fields }
func (*Logging) OutputPath ¶ added in v3.0.22
type MiddlewareChain ¶
func (*MiddlewareChain) Filename ¶
func (g *MiddlewareChain) Filename() string
func (*MiddlewareChain) OutputPath ¶ added in v3.0.22
func (g *MiddlewareChain) OutputPath() string
func (*MiddlewareChain) Package ¶
func (g *MiddlewareChain) Package() string
type Openapi ¶
type Openapi struct { JSONRPCEnable bool Contact config.OpenapiContact Info config.OpenapiInfo MethodTags map[string][]string Servers []config.OpenapiServer Licence config.OpenapiLicence Output string Interfaces []*config.Interface MethodOptions map[string]config.MethodOptions IfaceErrors map[string]map[string][]config.Error // contains filtered or unexported fields }
func (*Openapi) OutputPath ¶ added in v3.0.22
type RESTClientGenerator ¶
type RESTClientGenerator struct { Interfaces []*config.Interface UseFast bool MethodOptions map[string]config.MethodOptions Output string Pkg string // contains filtered or unexported fields }
func (*RESTClientGenerator) Filename ¶
func (g *RESTClientGenerator) Filename() string
func (*RESTClientGenerator) Generate ¶
func (g *RESTClientGenerator) Generate(ctx context.Context) []byte
func (*RESTClientGenerator) OutputPath ¶ added in v3.0.22
func (g *RESTClientGenerator) OutputPath() string
func (*RESTClientGenerator) Package ¶
func (g *RESTClientGenerator) Package() string
type RESTServerGenerator ¶
type RESTServerGenerator struct { UseFast bool JSONRPCEnable bool Interfaces []*config.Interface MethodOptions map[string]config.MethodOptions // contains filtered or unexported fields }
func (*RESTServerGenerator) Filename ¶
func (g *RESTServerGenerator) Filename() string
func (*RESTServerGenerator) Generate ¶
func (g *RESTServerGenerator) Generate(ctx context.Context) []byte
func (*RESTServerGenerator) OutputPath ¶ added in v3.0.22
func (g *RESTServerGenerator) OutputPath() string
type ServerHelpers ¶
type ServerHelpers struct { Interfaces []*config.Interface JSONRPCEnable bool HTTPServerEnable bool UseFast bool Output string Pkg string // contains filtered or unexported fields }
func (*ServerHelpers) Filename ¶
func (g *ServerHelpers) Filename() string
func (*ServerHelpers) OutputPath ¶ added in v3.0.22
func (g *ServerHelpers) OutputPath() string
func (*ServerHelpers) Package ¶
func (g *ServerHelpers) Package() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.