option

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConnectionTypeNames = map[ConnectionType]string{
	ConnectionTypeGrpc: "gRPC",
	ConnectionTypeRest: "Rest",
}

Functions

This section is empty.

Types

type ConnectionType

type ConnectionType int
const (
	ConnectionTypeUndefeind ConnectionType = iota
	ConnectionTypeGrpc
	ConnectionTypeRest
)

type Options

type Options struct {
	Kind      ConnectionType
	Host      string
	Port      int
	ApiPort   int
	IsSecured bool
	CertFile  string
}

func NewOptions

func NewOptions(connType ConnectionType, host string, port int, isSecured bool, certFile string) *Options

func (*Options) Uri

func (o *Options) Uri() string

func (*Options) WebsocketUri

func (o *Options) WebsocketUri() string

Jump to

Keyboard shortcuts

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