services

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 8, 2020 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NoReply = &EmptyReply{}

Functions

func FixURI

func FixURI(domain, bffName, sysName, implName, uri string) string

func InjectAstTree

func InjectAstTree(topNode *xast.TopNode) interface{}

func InjectExtraNode

func InjectExtraNode(extraNode *xast.ExtraNode) interface{}

func LoadErrCode

func LoadErrCode(filename string) ([]struct {
	Value   int
	VarName string
	Des     string
	Remarks string
}, error)

func PacketRouter

func PacketRouter(bffName, implName, sysName string) string

Types

type BaseCmdServer

type BaseCmdServer struct {
	GenerServer *GenerateServer
}

func NewBaseCmdServer

func NewBaseCmdServer(opts ...OptsFunc) *BaseCmdServer

type CmdServer

type CmdServer interface{}

type EmptyArg

type EmptyArg struct{}

type EmptyReply

type EmptyReply struct{}

type GenServerApiDocArg

type GenServerApiDocArg struct {
	Out    types.DirNode
	Domain string
}

type GenServerAutomatedTestArg

type GenServerAutomatedTestArg struct {
	Out    types.DirNode
	Domain string
}

type GenServerCreateBffArg

type GenServerCreateBffArg struct {
	Out     types.DirNode
	Name    string
	SysName string
	SysDir  types.DirNode
	Impl    *GenServerCreateBffImplArg
}

type GenServerCreateBffImplArg

type GenServerCreateBffImplArg struct {
	Out     types.DirNode // eg: impls/ping or impls
	Name    string        // eg: ping
	BffName string        // eg: demo
	SysName string        // eg: demo

	//RpcPath  string
	TagZh    string
	TagLogin string
	TagPage  string
	TagURI   string
}

type GenServerCreateBffRouterArg

type GenServerCreateBffRouterArg struct {
	Out        types.DirNode
	BffName    string
	ImplName   string
	SysName    string
	SubffixOpt string // impls/demo/ping.go --> /demo
}

type GenServerCreateServiceImplArg

type GenServerCreateServiceImplArg struct {
	Out         types.DirNode // eg: impls/ping or impls
	Name        string        // eg: ping
	ServiceName string        // eg: ping
	SysName     string        // eg: demo
	SubffixOpt  string        // impls/ping/ping.go --> /ping

}

type GenServerCreeateSystemArg

type GenServerCreeateSystemArg struct {
	Out  types.DirNode
	Name string
}

type GenServerJobArg added in v0.1.1

type GenServerJobArg struct {
	Name    string
	CmdName string
	SysDir  types.DirNode
}

type GenServerORMArg

type GenServerORMArg struct {
	Table *converter.Table2Struct
}

type GenServerServiceArg

type GenServerServiceArg struct {
	Out     types.DirNode
	Name    string
	SysName string
	SysDir  types.DirNode
	Impl    *GenServerCreateServiceImplArg
}

type GenerateServer

type GenerateServer struct {
	// contains filtered or unexported fields
}

func NewGenerateServer

func NewGenerateServer(sys *sysdes.SystemDes) *GenerateServer

func (*GenerateServer) CreateBff

func (*GenerateServer) CreateBffImpl

func (s *GenerateServer) CreateBffImpl(ctx context.Context, arg *GenServerCreateBffImplArg) (*EmptyReply, error)

func (*GenerateServer) CreateBffRouter

func (*GenerateServer) CreateJob added in v0.1.1

func (s *GenerateServer) CreateJob(ctx context.Context, arg *GenServerJobArg) (*EmptyReply, error)

func (*GenerateServer) CreateService

func (s *GenerateServer) CreateService(_ context.Context, arg *GenServerServiceArg) (*EmptyReply, error)

func (*GenerateServer) CreateServiceImpl

func (s *GenerateServer) CreateServiceImpl(ctx context.Context, arg *GenServerCreateServiceImplArg) (*EmptyReply, error)

func (*GenerateServer) CreateSystem

func (*GenerateServer) GenerateApiDoc

func (s *GenerateServer) GenerateApiDoc(_ context.Context, arg *GenServerApiDocArg) (*EmptyReply, error)

func (*GenerateServer) GenerateAutomatedTest

func (s *GenerateServer) GenerateAutomatedTest(ctx context.Context, arg *GenServerAutomatedTestArg) (_ *EmptyReply, err error)

func (*GenerateServer) ORM

type OptsFunc

type OptsFunc func(*BaseCmdServer)

type Server

type Server interface {
	CmdServer
}

Jump to

Keyboard shortcuts

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