server

package
v0.0.71 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2023 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RpcDial

func RpcDial(serverName string) (*grpc.ClientConn, error)

func RunHttpServer

func RunHttpServer(exit <-chan struct{}, doneExit chan<- struct{}, addr string, register RegisterHttpFn)

func RunRpcServer

func RunRpcServer(done chan<- struct{}, addr string, register RegisterRpcFn)

Types

type RegisterHttpFn

type RegisterHttpFn func(e *gin.Engine)

type RegisterRpcFn

type RegisterRpcFn func(server *grpc.Server)

RegisterRpcFn RPC server

Jump to

Keyboard shortcuts

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