service

package
v0.0.0-...-b34744e Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CtrlCSig

func CtrlCSig() chan os.Signal

Types

type Options

type Options struct {
	IP             string
	Port           int
	ServiceName    string
	ServiceVersion string
	MetricsAddr    string
	UUID           string
}

type Service

type Service interface {
	Serve() error
	GracefulStop() error
	Options() Options
	GrpcServer() *grpc.Server
}

func NewGrpcService

func NewGrpcService(options Options) Service

Jump to

Keyboard shortcuts

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