tools

package
v0.0.0-...-1bc71c5 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadKeyStore

func LoadKeyStore(keyfile, passfile string) (*keystore.Key, error)

LoadKeyStore load keystore from keyfile and passfile

Types

type WeightedString

type WeightedString struct {
	Content string
	Weight  uint64
}

WeightedString weighted string

type WeightedStringSlice

type WeightedStringSlice []*WeightedString

WeightedStringSlice weighted string slice

func (WeightedStringSlice) Add

func (s WeightedStringSlice) Add(content string, weight uint64) WeightedStringSlice

Add add item

func (WeightedStringSlice) GetStrings

func (s WeightedStringSlice) GetStrings() (result []string)

GetStrings get strings (commonly sort at first)

func (WeightedStringSlice) Len

func (s WeightedStringSlice) Len() int

Len impl Sortable

func (WeightedStringSlice) Less

func (s WeightedStringSlice) Less(i, j int) bool

Less impl Sortable

func (WeightedStringSlice) Reverse

func (s WeightedStringSlice) Reverse()

Reverse reverse items

func (WeightedStringSlice) Sort

Sort sort items

func (WeightedStringSlice) String

func (s WeightedStringSlice) String() (result string)

func (WeightedStringSlice) Swap

func (s WeightedStringSlice) Swap(i, j int)

Swap impl Sortable

Directories

Path Synopsis
Package rlp implements the RLP serialization format.
Package rlp implements the RLP serialization format.

Jump to

Keyboard shortcuts

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