gateway

package
v2.0.0-rc7 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigGateway

type ConfigGateway interface {
	DocEnable() bool
	DocOutputDir() string
	Struct() *types.Struct
	StructType() types.Type
	StructExpr() ast.Expr
	FuncName() string
}

type HTTPGatewayGateway

type HTTPGatewayGateway interface {
	Services() []model.GatewayServiceOption
}

type ServiceGateway

type ServiceGateway interface {
	AppID() string
	AppName() string
	Interfaces() model.Interfaces
	TransportType() model.Transport
	UseFast() bool
	MethodOption(m model.ServiceMethod) model.MethodOption
	DefaultErrorEncoder() option.Value
	Errors() map[uint32]*model.HTTPError

	ReadmeEnable() bool
	ReadmeOutput() string
	ReadmeTemplatePath() string

	LoggingEnable() bool
	InstrumentingEnable() bool

	JSONRPCEnable() bool
	JSONRPCDocEnable() bool
	JSONRPCDocOutput() string
	JSONRPCPath() string

	ClientEnable() bool
	GoClientEnable() bool
	JSClientEnable() bool

	OpenapiEnable() bool
	OpenapiOutput() string
	OpenapiInfo() openapi.Info
	OpenapiServers() []openapi.Server
	OpenapiMethodTags(name string) []string
	OpenapiDefaultMethodTags() []string

	CommentFields() map[string]map[string]string
	Enums() *typeutil.Map

	FoundService() bool
	FoundServiceGateway() bool
}

Jump to

Keyboard shortcuts

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