server

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is server providers.

Functions

func NewGrpcServer

func NewGrpcServer(c *config.Config, svc *svc.ServiceContext) *mrpc.RpcServer

func NewHttpServer

func NewHttpServer(c *config.Config, srv *service.HelloService) *http.Server

Types

type AppServer

type AppServer struct {
	SvcCtx *svc.ServiceContext
	Hs     *http.Server

	HelloService *service.HelloService
	// contains filtered or unexported fields
}

func NewApp

func NewApp(svcCtx *svc.ServiceContext, helloService *service.HelloService, hs *http.Server, gs *mrpc.RpcServer) (*AppServer, error)

func (*AppServer) Run

func (a *AppServer) Run()

Jump to

Keyboard shortcuts

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