l1starter

package
v1.0.3-alpha.6 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type L1Starter

type L1Starter struct {
	Config l1connection.Config

	Privtangle *privtangle.PrivTangle
	// contains filtered or unexported fields
}

func New

func New(l1flags, inxFlags *flag.FlagSet) *L1Starter

New sets up the CLI flags relevant to L1/privtangle configuration in the given FlagSet.

func (*L1Starter) PrivtangleEnabled

func (s *L1Starter) PrivtangleEnabled() bool

func (*L1Starter) StartExistingServers added in v1.0.3

func (s *L1Starter) StartExistingServers()

func (*L1Starter) StartPrivtangleIfNecessary

func (s *L1Starter) StartPrivtangleIfNecessary(logfunc privtangle.LogFunc)

StartPrivtangleIfNecessary starts a private tangle, unless an L1 host was provided via cli flags

func (*L1Starter) Stop

func (s *L1Starter) Stop()

Jump to

Keyboard shortcuts

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