server

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: 5 Imported by: 0

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

Jump to

Keyboard shortcuts

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