server

package
v0.0.0-...-cb92cc7 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is server providers.

Functions

func NewGRPCServer

func NewGRPCServer(c *conf.Server, serv *service.DemoService, logger log.Logger) *grpc.Server

NewGRPCServer 创建一个gRPC服务。 TODO 需要将第二个参数改为服务层的ApiService

func NewHTTPServer

func NewHTTPServer(c *conf.Server, serv *service.DemoService, logger log.Logger) *http.Server

NewHTTPServer 创建一个HTTP服务。 TODO 需要将第二个参数改为服务层的ApiService

Types

This section is empty.

Jump to

Keyboard shortcuts

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