bootstrap

package
v2.11.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2022 License: GPL-3.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LibraryVersion = "2.9.1"
)

Variables

This section is empty.

Functions

func ListenRestartEvent added in v2.5.0

func ListenRestartEvent() (string, func(data []byte))

kill proc itself, systemd will up service again

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