server

package
v0.0.0-...-cecc7d1 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2021 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseEngineServer

type BaseEngineServer struct {
	inits.App
	GinEngine  *gin.Engine
	BaseEngine engine.BaseEngine
}

BaseEngineServer is a grpc server with an engine.

func NewBaseEngineServer

func NewBaseEngineServer(app inits.App) (BaseEngineServer, error)

NewBaseEngineServer creates a new server instance.

func (*BaseEngineServer) Listen

func (server *BaseEngineServer) Listen() error

Listen makes the server listen on specified port.

func (*BaseEngineServer) SayHello

func (server *BaseEngineServer) SayHello(ctx context.Context, msg *generated.Message) (*generated.Message, error)

SayHello says Hello

Jump to

Keyboard shortcuts

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