initgen

package
v0.3.9 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GenesisFilename          = "genesis.json"
	PrivateValidatorFilename = "priv_validator.json"
	NodeKeyFilename          = "node_key.json"
	ConfigDir                = "config"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder interface {
	WithName(string) Builder
	WithPath(string) Builder
	WithCount(uint) Builder
	WithAkashGenesis(*types.Genesis) Builder
	Create() (Context, error)
}

func NewBuilder

func NewBuilder() Builder

type Context

type Context interface {
	Name() string
	Path() string

	Nodes() []*Node
	Genesis() *tmtypes.GenesisDoc
}

func NewContext

func NewContext(name, path string, genesis *tmtypes.GenesisDoc, nodes ...*Node) Context

type Node added in v0.0.10

type Node struct {
	Name             string
	PrivateValidator tmtypes.PrivValidator
	NodeKey          *p2p.NodeKey
	Peers            []*Node
}

type Type

type Type string
const (
	TypeDirectory Type = "dir"
	TypeHelm           = "helm"
)

type Writer

type Writer interface {
	Write() error
}

func CreateWriter

func CreateWriter(type_ Type, ctx Context) (Writer, error)

func NewDirWriter

func NewDirWriter(ctx Context) Writer

func NewHelmWriter

func NewHelmWriter(ctx Context) Writer

func NewMultiDirWriter

func NewMultiDirWriter(ctx Context) Writer

func NewMultiHelmWriter

func NewMultiHelmWriter(ctx Context) Writer

Jump to

Keyboard shortcuts

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