bootstrap

package
v0.0.0-...-648c852 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func NewService

func NewService(localPublicKey []byte, host host.Host, networkSize int) *Service

func (*Service) GetMembers

func (serv *Service) GetMembers(uint64) (*quorum.Includers, error)

GetMembers construct includer/validator set out of network participants

func (*Service) Serve

func (serv *Service) Serve(ctx context.Context) error

Serve starts serving bootstrap requests.

func (*Service) Start

func (serv *Service) Start(ctx context.Context, bootstrapper peer.AddrInfo) error

Start connects to bootstrapper and fetch its peers.

Jump to

Keyboard shortcuts

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