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

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