generator

package
v1.26.7 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2020 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EndpointOption

type EndpointOption struct {
}

type Generator

type Generator interface {
	Prepare(ctx context.Context) error
	Process(ctx context.Context) error
	Bytes() []byte
	PkgName() string
	OutputDir() string
	Filename() string
}

func NewClientStruct

func NewClientStruct(filename string, info model.GenerateInfo, o model.ServiceOption) Generator

func NewConfig

func NewConfig(o model.ConfigOption) Generator

func NewConfigMarkdownDoc added in v1.25.0

func NewConfigMarkdownDoc(filename string, o model.ConfigOption, info model.GenerateInfo) Generator

func NewEndpoint

func NewEndpoint(filename string, info model.GenerateInfo, o model.ServiceOption) Generator

func NewEndpointFactory

func NewEndpointFactory(filename string, info model.GenerateInfo, o model.ServiceOption) Generator

func NewGatewayGenerator added in v1.23.0

func NewGatewayGenerator(filename string, info model.GenerateInfo, o model.GatewayOption) Generator

func NewHttpTransport

func NewHttpTransport(filename string, info model.GenerateInfo, o model.ServiceOption) Generator

func NewInstrumenting

func NewInstrumenting(filename string, info model.GenerateInfo, o model.ServiceOption) Generator

func NewJsonRPCGoClient

func NewJsonRPCGoClient(filename string, info model.GenerateInfo, o model.ServiceOption) Generator

func NewJsonRPCJSClient

func NewJsonRPCJSClient(filename string, info model.GenerateInfo, o model.ServiceOption) Generator

func NewJsonRPCServer

func NewJsonRPCServer(filename string, info model.GenerateInfo, o model.ServiceOption) Generator

func NewJsonrpcMarkdownDoc added in v1.24.1

func NewJsonrpcMarkdownDoc(info model.GenerateInfo, o model.ServiceOption) Generator

func NewLogging

func NewLogging(filename string, info model.GenerateInfo, o model.ServiceOption) Generator

func NewOpenapi

func NewOpenapi(info model.GenerateInfo, o model.ServiceOption) Generator

func NewReadme added in v1.24.1

func NewReadme(info model.GenerateInfo, o model.ServiceOption) Generator

func NewRestGoClient

func NewRestGoClient(filename string, info model.GenerateInfo, o model.ServiceOption) Generator

func NewRestServer

func NewRestServer(filename string, info model.GenerateInfo, o model.ServiceOption) Generator

type Required added in v1.25.0

type Required bool

func (Required) String added in v1.25.0

func (r Required) String() string

Jump to

Keyboard shortcuts

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