shadow

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RootDir

func RootDir() (string, error)

Get darwinia config root directory

Types

type Config

type Config struct {
	Root string `json:"root"`
}

func (*Config) CreateLock

func (c *Config) CreateLock(lock Lock, epoch uint64) error

Create lock

func (*Config) Load

func (c *Config) Load() error

Common load config

func (*Config) RemoveLock

func (c *Config) RemoveLock(lock Lock, epoch uint64) error

Remove lock

type Lock

type Lock string

Lock enum

const (
	PROOF_LOCK Lock = "proof.lock"
	EPOCH_LOCK Lock = "epoch.lock"
)

type RawConfig

type RawConfig struct {
	Eth Config `json:"eth"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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