Documentation ¶
Index ¶
- func ClientType(iface *config.Interface) string
- func Contexts(vars option.VarsType) (result []*option.VarType)
- func DownloadFile(vars option.VarsType) *option.VarType
- 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 LenWithoutContexts(vars option.VarsType) int
- func LenWithoutErrors(vars option.VarsType) int
- 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 LenWithoutContexts ¶
func LenWithoutErrors ¶
func NameEndpointSetName ¶
func NameEndpointSetNameVar ¶
func NameInterface ¶
func NameLoggingMiddleware ¶
func ServicePropName ¶
func UcNameIfaceMethod ¶
Types ¶
type CURL ¶
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) OutputDir ¶
func (g *ClientHelpers) OutputDir() 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) OutputDir ¶
func (g *ClientStruct) OutputDir() string
func (*ClientStruct) Package ¶
func (g *ClientStruct) Package() string
type Endpoint ¶
type GatewayGenerator ¶
type GatewayGenerator struct { Interfaces []*config.Interface // contains filtered or unexported fields }
func (*GatewayGenerator) Filename ¶
func (g *GatewayGenerator) Filename() string
func (*GatewayGenerator) OutputDir ¶
func (g *GatewayGenerator) OutputDir() 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) OutputDir ¶
func (g *Instrumenting) OutputDir() 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) OutputDir ¶
func (g *InterfaceGenerator) OutputDir() 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) OutputDir ¶
func (g *JSONRPCClientGenerator) OutputDir() 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) OutputDir ¶
func (g *JSONRPCDocGenerator) OutputDir() 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) OutputDir ¶
func (g *JSONRPCJSClientGenerator) OutputDir() string
type JSONRPCServerGenerator ¶
type JSONRPCServerGenerator struct { UseFast bool Interfaces []*config.Interface MethodOptions map[string]config.MethodOptions 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) OutputDir ¶
func (g *JSONRPCServerGenerator) OutputDir() string
type Logging ¶
type Logging struct { Interfaces []*config.Interface MethodOptions map[string]config.MethodOptions // contains filtered or unexported fields }
type MiddlewareChain ¶
func (*MiddlewareChain) Filename ¶
func (g *MiddlewareChain) Filename() string
func (*MiddlewareChain) OutputDir ¶
func (g *MiddlewareChain) OutputDir() 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 }
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) OutputDir ¶
func (g *RESTClientGenerator) OutputDir() 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) OutputDir ¶
func (g *RESTServerGenerator) OutputDir() 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) OutputDir ¶
func (g *ServerHelpers) OutputDir() string
func (*ServerHelpers) Package ¶
func (g *ServerHelpers) Package() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.