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
}

Source Files