model

package
v2.0.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientHTTPTransportOption

type ClientHTTPTransportOption struct {
	Enable bool
}

type ConfigDocOption

type ConfigDocOption struct {
	Enable    bool
	OutputDir string
}

type ConfigOption

type ConfigOption struct {
	FuncName   string
	Struct     *types.Struct
	StructType types.Type
	StructExpr ast.Expr
	Doc        ConfigDocOption
}

type DeclType

type DeclType struct {
	Obj      stdtypes.Object
	RecvType stdtypes.Type
	Links    *list.List
	Values   []stdtypes.TypeAndValue
}

type Enum

type Enum struct {
	Name  string
	Value string
}

type Env

type Env struct {
	Name string
}

type ErrorHTTPTransportOption

type ErrorHTTPTransportOption struct {
	Named     *stdtypes.Named
	Code      int64
	IsPointer bool
}

type GatewayMethodOption

type GatewayMethodOption struct {
	Name         string
	BalancerType string
}

type GatewayServiceOption

type GatewayServiceOption struct {
	ID            string
	RawID         string
	Type          stdtypes.Type
	TypeName      *stdtypes.Named
	Iface         *stdtypes.Interface
	MethodOptions map[string]GatewayMethodOption
	Methods       []ServiceMethod
}

type InstrumentingOption

type InstrumentingOption struct {
	Enable    bool
	Namespace string
	Subsystem string
}

type JsonRPCHTTPTransportOption

type JsonRPCHTTPTransportOption struct {
	Enable bool
	Path   string
}

type MarkdownDocHTTPTransportOption

type MarkdownDocHTTPTransportOption struct {
	Enable    bool
	OutputDir string
}

type MethodHTTPTransportOption

type MethodHTTPTransportOption struct {
	MethodName         string
	Expr               ast.Expr
	Path               string
	PathVars           map[string]string
	HeaderVars         map[string]string
	QueryVars          map[string]string
	WrapResponse       WrapResponseHTTPTransportOption
	ServerRequestFunc  ReqRespFunc
	ServerResponseFunc ReqRespFunc
	ClientRequestFunc  ReqRespFunc
	ClientResponseFunc ReqRespFunc
}

type OpenapiHTTPTransportOption

type OpenapiHTTPTransportOption struct {
	Enable        bool
	Output        string
	Servers       []openapi.Server
	Info          openapi.Info
	Methods       map[string]*OpenapiMethodOption
	DefaultMethod OpenapiMethodOption
}

type OpenapiMethodOption

type OpenapiMethodOption struct {
	Tags []string
}

type ReqRespFunc

type ReqRespFunc struct {
	Type stdtypes.Type
	Expr ast.Expr
}

type ServiceMethod

type ServiceMethod struct {
	Type         *stdtypes.Func
	Name         string
	LcName       string
	Params       VarSlice
	Results      VarSlice
	Comments     []string
	ParamCtx     *stdtypes.Var
	ReturnErr    *stdtypes.Var
	ResultsNamed bool
	Errors       map[uint32]*ErrorHTTPTransportOption
	T            stdtypes.Type
}

type ServiceReadme

type ServiceReadme struct {
	Enable       bool
	OutputDir    string
	TemplatePath string
}

type TransportOption

type TransportOption struct {
	Protocol             string
	Prefix               string
	ServerDisabled       bool
	Client               ClientHTTPTransportOption
	Openapi              OpenapiHTTPTransportOption
	MarkdownDoc          MarkdownDocHTTPTransportOption
	FastHTTP             bool
	JsonRPC              JsonRPCHTTPTransportOption
	MethodOptions        map[string]MethodHTTPTransportOption
	DefaultMethodOptions MethodHTTPTransportOption
	Errors               map[uint32]*ErrorHTTPTransportOption
}

type VarSlice

type VarSlice []*stdtypes.Var

func (VarSlice) LookupField

func (s VarSlice) LookupField(name string) *stdtypes.Var

type WrapResponseHTTPTransportOption

type WrapResponseHTTPTransportOption struct {
	Enable bool
	Name   string
}

Jump to

Keyboard shortcuts

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