api

package
v0.0.0-...-730ab85 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler func(Server) error

type Option

type Option interface {
	GetDriver() string
	GetName() string
	GetVersion() string
	GetId() string
	GetRegion() string
	GetZone() string
	GetGroupName() string
	GetIP() string
	GetPort() int
	GetGrpcOptions() []grpc.ServerOption
}

type Server

type Server interface {
	Init() error
	Handler(Handler) error
	Start() error
	Stop() error
	GracefulStop(ctx context.Context) error
	GetOption() Option
}

Jump to

Keyboard shortcuts

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