server

package
v0.0.0-...-88f2d9e Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option struct {
	// contains filtered or unexported fields
}

func GrpcServer

func GrpcServer(grpcServer *grpc.Server) Option

set grpc server

func HttpServer

func HttpServer(httpServer *gin.Engine) Option

set http server

type Server

type Server interface {
	GrpcServer() *grpc.Server

	HttpServer() *gin.Engine

	ListenHttpAndGrpcServe(port string) error
}

func NewServer

func NewServer(options ...Option) Server

Jump to

Keyboard shortcuts

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