bootstrap

package
v2.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2020 License: GPL-3.0 Imports: 27 Imported by: 3

Documentation

Index

Constants

View Source
const (
	LibraryVersion = "2.0.0"
)

Variables

This section is empty.

Functions

func ServiceBootstrap

func ServiceBootstrap(localConfigPtr, remoteConfigPtr interface{}) *bootstrapConfiguration

entry point to describe module

func UnmarshalAddressListAndThen

func UnmarshalAddressListAndThen(event string, f func([]structure.AddressConfiguration)) func([]byte)

Types

type ModuleInfo

type ModuleInfo struct {
	ModuleName       string
	ModuleVersion    string
	GrpcOuterAddress structure.AddressConfiguration
	// Deprecated: use Endpoints instead
	Handlers  []interface{}
	Endpoints []structure.EndpointDescriptor
}

contains information for config service announcement

type ModuleRequirements

type ModuleRequirements struct {
	RequiredModules []string
	RequireRoutes   bool
}

contains base requirements for module

func (ModuleRequirements) IsEmpty

func (r ModuleRequirements) IsEmpty() bool

type RoundRobinStrings

type RoundRobinStrings struct {
	// contains filtered or unexported fields
}

func NewRoundRobinStrings

func NewRoundRobinStrings(urls []string) *RoundRobinStrings

func (*RoundRobinStrings) Get

func (u *RoundRobinStrings) Get() string

type RoutesDeclarator

type RoutesDeclarator interface {
	DeclareRoutes()
}

Jump to

Keyboard shortcuts

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