model

package
v2.0.0-alpha.5 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 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 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 HTTPError

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

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
	LoggingEnable        bool
	LoggingIncludeParams map[string]struct{}
	LoggingExcludeParams map[string]struct{}
	InstrumentingEnable  bool
}

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]*HTTPError
	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
}

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