generator

package
v3.0.28 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientType added in v3.0.26

func ClientType(iface *config.Interface) string

func IfaceMiddlewareTypeName added in v3.0.26

func IfaceMiddlewareTypeName(iface *config.Interface) string

func LcNameIfaceMethod added in v3.0.25

func LcNameIfaceMethod(iface *config.Interface, fn *option.FuncType) string

func LcNameWithAppPrefix added in v3.0.25

func LcNameWithAppPrefix(iface *config.Interface, notInternal ...bool) string

func NameInterface

func NameInterface(iface *config.Interface) string

func UcNameIfaceMethod added in v3.0.26

func UcNameIfaceMethod(iface *config.Interface, fn *option.FuncType) string

func UcNameWithAppPrefix

func UcNameWithAppPrefix(iface *config.Interface, useServicePrefix ...bool) string

Types

type ClientGenerator added in v3.0.26

type ClientGenerator struct {
	Interfaces []*config.Interface
	Output     string
	Pkg        string
	// contains filtered or unexported fields
}

func (*ClientGenerator) Filename added in v3.0.26

func (g *ClientGenerator) Filename() string

func (*ClientGenerator) Generate added in v3.0.26

func (g *ClientGenerator) Generate(ctx context.Context) []byte

func (*ClientGenerator) OutputPath added in v3.0.26

func (g *ClientGenerator) OutputPath() string

func (*ClientGenerator) Package added in v3.0.26

func (g *ClientGenerator) Package() string

type ClientHelpers added in v3.0.26

type ClientHelpers struct {
	Interfaces []*config.Interface
	Output     string
	Pkg        string
	// contains filtered or unexported fields
}

func (*ClientHelpers) Filename added in v3.0.26

func (g *ClientHelpers) Filename() string

func (*ClientHelpers) Generate added in v3.0.26

func (g *ClientHelpers) Generate(ctx context.Context) []byte

func (*ClientHelpers) OutputPath added in v3.0.26

func (g *ClientHelpers) OutputPath() string

func (*ClientHelpers) Package added in v3.0.26

func (g *ClientHelpers) Package() string

type ClientStruct added in v3.0.26

type ClientStruct struct {
	Interfaces    []*config.Interface
	MethodOptions map[string]config.MethodOptions
	Output        string
	Pkg           string
	// contains filtered or unexported fields
}

func (*ClientStruct) Filename added in v3.0.26

func (g *ClientStruct) Filename() string

func (*ClientStruct) Generate added in v3.0.26

func (g *ClientStruct) Generate(ctx context.Context) []byte

func (*ClientStruct) OutputPath added in v3.0.26

func (g *ClientStruct) OutputPath() string

func (*ClientStruct) Package added in v3.0.26

func (g *ClientStruct) Package() string

type InterfaceGenerator added in v3.0.26

type InterfaceGenerator struct {
	Interfaces []*config.Interface
	Output     string
	Pkg        string
	// contains filtered or unexported fields
}

func (*InterfaceGenerator) Filename added in v3.0.26

func (g *InterfaceGenerator) Filename() string

func (*InterfaceGenerator) Generate added in v3.0.26

func (g *InterfaceGenerator) Generate(ctx context.Context) []byte

func (*InterfaceGenerator) OutputPath added in v3.0.26

func (g *InterfaceGenerator) OutputPath() string

func (*InterfaceGenerator) Package added in v3.0.26

func (g *InterfaceGenerator) Package() string

type Logging added in v3.0.26

type Logging struct {
	Interfaces []*config.Interface
	Output     string
	Pkg        string
	// contains filtered or unexported fields
}

func (*Logging) Filename added in v3.0.26

func (g *Logging) Filename() string

func (*Logging) Generate added in v3.0.26

func (g *Logging) Generate(ctx context.Context) []byte

func (*Logging) OutputPath added in v3.0.26

func (g *Logging) OutputPath() string

func (*Logging) Package added in v3.0.26

func (g *Logging) Package() string

type Metric added in v3.0.28

type Metric struct {
	Interfaces []*config.Interface
	Output     string
	Pkg        string
	// contains filtered or unexported fields
}

func (*Metric) Filename added in v3.0.28

func (g *Metric) Filename() string

func (*Metric) Generate added in v3.0.28

func (g *Metric) Generate(ctx context.Context) []byte

func (*Metric) OutputPath added in v3.0.28

func (g *Metric) OutputPath() string

func (*Metric) Package added in v3.0.28

func (g *Metric) Package() string

type Openapi added in v3.0.24

type Openapi struct {
	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][]finder.Error
}

func (*Openapi) Filename added in v3.0.24

func (g *Openapi) Filename() string

func (*Openapi) Generate added in v3.0.24

func (g *Openapi) Generate(ctx context.Context) []byte

func (*Openapi) OutputPath added in v3.0.24

func (g *Openapi) OutputPath() string

type RoutesGenerator

type RoutesGenerator struct {
	Interfaces    []*config.Interface
	MethodOptions map[string]config.MethodOptions
	// contains filtered or unexported fields
}

func (*RoutesGenerator) Filename

func (g *RoutesGenerator) Filename() string

func (*RoutesGenerator) Generate

func (g *RoutesGenerator) Generate(ctx context.Context) []byte

func (*RoutesGenerator) OutputPath added in v3.0.22

func (g *RoutesGenerator) OutputPath() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL