Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(option api.Option) api.Server

Types

type Option

type Option func(*Options)

func Driver

func Driver(driver string) Option

type Options

type Options struct {
	Name      string
	Version   string
	Driver    string
	Id        string
	Region    string
	Zone      string
	GroupName string
	IP        string
	Port      int

	GrpcOptions []grpc.ServerOption
}

func NewOptions

func NewOptions(opts ...Option) *Options

func (*Options) GetDriver

func (opt *Options) GetDriver() string

func (*Options) GetGroupName

func (opt *Options) GetGroupName() string

func (*Options) GetGrpcOptions

func (opt *Options) GetGrpcOptions() []grpc.ServerOption

func (*Options) GetIP

func (opt *Options) GetIP() string

func (*Options) GetId

func (opt *Options) GetId() string

func (*Options) GetName

func (opt *Options) GetName() string

func (*Options) GetPort

func (opt *Options) GetPort() int

func (*Options) GetRegion

func (opt *Options) GetRegion() string

func (*Options) GetVersion

func (opt *Options) GetVersion() string

func (*Options) GetZone

func (opt *Options) GetZone() string

Directories

Path Synopsis