bootstrap

package
v1.9.4 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2025 License: MIT Imports: 22 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bootstrap

type Bootstrap struct {
	App                 *app.Application
	ClusterCli          *cluster.Client
	RemoteConfig        *remote.Config
	InfraServer         *infra.Server
	HealthcheckRegistry *healthcheck.Registry

	BindingAddress string
	MigrationsDir  string
	ModuleName     string
}

func New

func New(moduleVersion string, remoteConfig any, endpoints []cluster.EndpointDescriptor) *Bootstrap

func (*Bootstrap) Fatal added in v1.5.1

func (b *Bootstrap) Fatal(err error)

type InnerAddr

type InnerAddr struct {
	Ip   string `validate:"hostname|ip"`
	Port int    `validate:"required"`
}

type LocalConfig

type LocalConfig struct {
	ConfigServiceAddresses  []string `validate:"required,dive,hostport"`
	OuterAddress            OuterAddr
	InnerAddress            InnerAddr
	ModuleName              string `validate:"required"`
	DefaultRemoteConfigPath string
	MigrationsDirPath       string
	RemoteConfigOverride    string
	LogFile                 LogFile
	InfraServerPort         int
}

type LogFile

type LogFile struct {
	Path       string
	MaxSizeMb  int
	MaxBackups int
	Compress   bool
}

type OuterAddr

type OuterAddr struct {
	Ip   string `validate:"hostname|ip"`
	Port int    `validate:"required"`
}

Jump to

Keyboard shortcuts

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