runnablesupervisor

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 RunnableSupervisor

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

RunnableSupervisor is a grpc server with an engine.

func NewRunnableSupervisor

func NewRunnableSupervisor(app inits.App) (RunnableSupervisor, error)

NewRunnableSupervisor creates a new supervisor instance.

func (*RunnableSupervisor) Listen

func (supervisor *RunnableSupervisor) Listen() error

Listen makes the supervisor listen on specified port.

func (*RunnableSupervisor) SayHello

func (supervisor *RunnableSupervisor) 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