bootstrap

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2025 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BootstrapAndJoin

func BootstrapAndJoin(ctx context.Context, bootstrapURL string, dataPath string, metaPath string) error

BootstrapAndJoin performs a complete bootstrap: downloads cluster state and registers as new node

func DoBootstrap

func DoBootstrap(ctx context.Context, url string, dataPath string, metaPath string) error

DoBootstrap connects to the bootstrap server and receives the complete database state

func InitializeMaybe

func InitializeMaybe(ctx context.Context) error

InitializeMaybe checks if the database is empty and initializes it if it is

func JoinCluster

func JoinCluster(ctx context.Context) error

Types

type Server

type Server struct {
	UnimplementedBootstrapServer
}

func (*Server) GetBootstrapData

func (b *Server) GetBootstrapData(request *BootstrapRequest, stream Bootstrap_GetBootstrapDataServer) (err error)

Jump to

Keyboard shortcuts

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