option

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientUnit

type ClientUnit struct {
	// 本服务:
	Inner RpcClientConf
}

依赖服务定义:

type RestServerConf

type RestServerConf struct {
	rest.RestConf
	Name    string
	Version string
}

http restful server:

type RpcClientConf

type RpcClientConf struct {
	zrpc.RpcClientConf
	Name    string
	Version string
}

gRPC client:

type RpcServerConf

type RpcServerConf struct {
	zrpc.RpcServerConf
	Version string
}

gRPC server:

type Server

type Server interface {
	Run(configFile string)
}

main server 启动器:

type ServerUnit

type ServerUnit struct {
	Inner RpcServerConf  // rpc server
	Outer RestServerConf // http api server
	Job   RestServerConf // job server
	Admin RestServerConf // admin api server
}

本服务定义: internal total

Jump to

Keyboard shortcuts

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