server

package
v0.0.0-...-cee479c Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2021 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIServer

type APIServer struct {
	inits.App
	*gin.Engine
	Validate   validator.Validate
	AuthClient generated.AuthClient
}

APIServer represents an new REST-based server instance.

func NewAPIServer

func NewAPIServer(app inits.App) (APIServer, error)

NewAPIServer creates a new server instance.

func (*APIServer) Listen

func (server *APIServer) Listen() error

Listen makes the server listen on specified port.

func (*APIServer) SayHello

func (server *APIServer) 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