server

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

README

server

grpc

定义启动grpc服务的流程

  1. Init() 使用配置文件生成一个基础的grpc服务框架
  2. Use() 传入grpc服务中间件
  3. Start() 启动grpc服务
  4. Shutdown() 安全退出grpc服务

使用详情点击此处

http

定义启动http服务的流程

  1. Init() 使用配置文件生成一个基础的http服务框架
  2. Use() 传入web框架的引擎(这里限制使用Gin)
  3. Start() 启动http服务
  4. Shutdown() 安全退出http服务

使用详情点击此处

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Shutdown

type Shutdown interface {
	Shutdown(ctx context.Context) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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