mainserver

package
v0.0.0-...-7920a39 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 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 MainServer

type MainServer struct {
	inits.App
	GinEngine *gin.Engine
}

MainServer represents the main server.

func NewMainServer

func NewMainServer(app inits.App) (MainServer, error)

NewMainServer creates a new server.

func (*MainServer) Listen

func (server *MainServer) Listen() error

Listen makes the server listen on specified port.

func (*MainServer) SayHello

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

SayHello replies with message.

Jump to

Keyboard shortcuts

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