build

package
v0.0.0-...-2eb1e8d Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildApplication

func BuildApplication(app string)

BuildApplication 创建应用

func CreateTemplateFile

func CreateTemplateFile(filePath, tmplPath string, data any) error

func EnterBool

func EnterBool(text string) (bool, error)

func Http

func Http(appName string) error

func Rpc

func Rpc(appName string) error

Types

type HttpBuilder

type HttpBuilder struct {
	App        string
	ServerName string

	PackageName string
	Tools       RpcTools
	// contains filtered or unexported fields
}

HttpBuilder http服务构建器

func (*HttpBuilder) BuildHttpServer

func (r *HttpBuilder) BuildHttpServer()

BuildHttpServer 构建rpc服务

type HttpTools

type HttpTools struct {
	Http      bool
	RpcServer bool
	RpcClient bool
	Logger    bool
	DB        bool
	Redis     bool
	Trace     bool
}

构建网关服务

type RpcBuilder

type RpcBuilder struct {
	App        string
	ServerName string

	PackageName string
	Tools       RpcTools
	// contains filtered or unexported fields
}

RpcBuilder rpc服务构建器

func (*RpcBuilder) BuildRpcServer

func (r *RpcBuilder) BuildRpcServer()

BuildRpcServer 构建rpc服务

type RpcTools

type RpcTools struct {
	Http      bool
	RpcServer bool
	RpcClient bool
	Logger    bool
	DB        bool
	Redis     bool
	Trace     bool
}

Jump to

Keyboard shortcuts

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