util

package
v0.0.0-...-303b437 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2019 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 4 more Imports: 11 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckConfigFileName

func CheckConfigFileName(filename string) string

func ConfigFilename

func ConfigFilename() string

func EntryCost

func EntryCost(b []byte) (uint8, error)

Calculate the entry credits needed for the entry

func GetChangeAcksHeight

func GetChangeAcksHeight(filename string) (change uint32, err error)

func GetConfigFilename

func GetConfigFilename(dir string) string

func GetHomeDir

func GetHomeDir() string

func ReadConfig

func ReadConfig(filename string) *dcntConfig

func Trace

func Trace(params ...string)

a simple file/line trace function, with optional comment(s)

Types

type ByABlockIDAscending

type ByABlockIDAscending []IAdminBlock

------------------------------------------------ ABlock array sorting implementation - ascending

func (ByABlockIDAscending) Len

func (f ByABlockIDAscending) Len() int

func (ByABlockIDAscending) Less

func (f ByABlockIDAscending) Less(i, j int) bool

func (ByABlockIDAscending) Swap

func (f ByABlockIDAscending) Swap(i, j int)

type ByByteArray

type ByByteArray [][]byte

------------------------------------------------ Byte array sorting - ascending

func (ByByteArray) Len

func (f ByByteArray) Len() int

func (ByByteArray) Less

func (f ByByteArray) Less(i, j int) bool

func (ByByteArray) Swap

func (f ByByteArray) Swap(i, j int)

type ByDBlockIDAscending

type ByDBlockIDAscending []IDirectoryBlock

------------------------------------------------ DBlock array sorting implementation - ascending

func (ByDBlockIDAscending) Len

func (f ByDBlockIDAscending) Len() int

func (ByDBlockIDAscending) Less

func (f ByDBlockIDAscending) Less(i, j int) bool

func (ByDBlockIDAscending) Swap

func (f ByDBlockIDAscending) Swap(i, j int)

type ByDirBlockInfoIDAscending

type ByDirBlockInfoIDAscending []IDirBlockInfo

------------------------------------------------ DirBlock Info array sorting implementation - ascending

func (ByDirBlockInfoIDAscending) Len

func (ByDirBlockInfoIDAscending) Less

func (f ByDirBlockInfoIDAscending) Less(i, j int) bool

func (ByDirBlockInfoIDAscending) Swap

func (f ByDirBlockInfoIDAscending) Swap(i, j int)

type ByDirBlockInfoTimestamp

type ByDirBlockInfoTimestamp []IDirBlockInfo

ByDirBlockInfoTimestamp defines the methods needed to satisify sort.Interface to sort a slice of DirBlockInfo by their Timestamp.

func (ByDirBlockInfoTimestamp) Len

func (u ByDirBlockInfoTimestamp) Len() int

func (ByDirBlockInfoTimestamp) Less

func (u ByDirBlockInfoTimestamp) Less(i, j int) bool

func (ByDirBlockInfoTimestamp) Swap

func (u ByDirBlockInfoTimestamp) Swap(i, j int)

type ByEBlockIDAscending

type ByEBlockIDAscending []IEntryBlock

------------------------------------------------ EBlock array sorting implementation - ascending

func (ByEBlockIDAscending) Len

func (f ByEBlockIDAscending) Len() int

func (ByEBlockIDAscending) Less

func (f ByEBlockIDAscending) Less(i, j int) bool

func (ByEBlockIDAscending) Swap

func (f ByEBlockIDAscending) Swap(i, j int)

type ByECBlockIDAscending

type ByECBlockIDAscending []IEntryCreditBlock

------------------------------------------------ CBlock array sorting implementation - ascending

func (ByECBlockIDAscending) Len

func (f ByECBlockIDAscending) Len() int

func (ByECBlockIDAscending) Less

func (f ByECBlockIDAscending) Less(i, j int) bool

func (ByECBlockIDAscending) Swap

func (f ByECBlockIDAscending) Swap(i, j int)

type ByFBlockIDAscending

type ByFBlockIDAscending []IFBlock

------------------------------------------------ ABlock array sorting implementation - ascending

func (ByFBlockIDAscending) Len

func (f ByFBlockIDAscending) Len() int

func (ByFBlockIDAscending) Less

func (f ByFBlockIDAscending) Less(i, j int) bool

func (ByFBlockIDAscending) Swap

func (f ByFBlockIDAscending) Swap(i, j int)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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