apiservice

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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIService

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

APIService is a grpc server with an engine.

func NewAPIService

func NewAPIService(app inits.App) (APIService, error)

NewAPIService creates a new server instance.

func (*APIService) Listen

func (service *APIService) Listen() error

Listen makes the server listen on specified port.

func (*APIService) SayHello

func (service *APIService) 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