utils

package
v0.1.15 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInterrupted = errors.New("interrupted")
)

Functions

func MinInt added in v0.1.4

func MinInt(a, b int) int

func MinUint64

func MinUint64(a, b uint64) uint64

func NewDb

func NewDb(settings DbSettings) (*sql.DB, error)

func ReadJsonConfig added in v0.1.11

func ReadJsonConfig(filename string, conf ConfigValidator) error

func ReadYamlConfig added in v0.1.11

func ReadYamlConfig(filename string, conf ConfigValidator) error

Types

type AccountInfo

type AccountInfo struct {
	Keys      WalletKeys
	CreatedAt uint64
}

type ConfigValidator

type ConfigValidator interface {
	Validate() error
}

type DbSettings

type DbSettings struct {
	Host     string `yaml:"host"`
	Port     uint16 `yaml:"port"`
	User     string `yaml:"user"`
	Password string `yaml:"password"`
	Database string `yaml:"database"`
}

type GraphiteSettings added in v0.1.11

type GraphiteSettings struct {
	Host string `json:"host"`
	Port int    `json:"port"`
}

func (*GraphiteSettings) Validate added in v0.1.11

func (g *GraphiteSettings) Validate() error

type HeightInfo

type HeightInfo struct {
	Height uint64
	Hash   moneroutil.Hash
}

type WalletEntry

type WalletEntry struct {
	Id            uint32
	Keys          WalletKeys
	ScannedHeight uint64
}

type WalletKeys

type WalletKeys struct {
	ViewSecretKey  moneroutil.Key
	SpendPublicKey moneroutil.Key
}

Jump to

Keyboard shortcuts

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