api

package
v1.2.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2022 License: Apache-2.0, MIT Imports: 3 Imported by: 26

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FullAPIVersion0 = NewVer(1, 4, 0)
	FullAPIVersion1 = NewVer(2, 1, 0)

	MinerAPIVersion0  = NewVer(1, 2, 0)
	WorkerAPIVersion0 = NewVer(1, 5, 0)
)

semver versions of the rpc api exposed

Functions

func GetInternalStructs

func GetInternalStructs(in interface{}) []interface{}

GetInternalStructs extracts all pointers to 'Internal' sub-structs from the provided pointer to a proxy struct

Types

type NodeType

type NodeType int
const (
	NodeUnknown NodeType = iota

	NodeFull
	NodeMiner
	NodeWorker
)
var RunningNodeType NodeType

type Version

type Version uint32

func NewVer

func NewVer(major, minor, patch uint8) Version

func VersionForType

func VersionForType(nodeType NodeType) (Version, error)

func (Version) EqMajorMinor

func (ve Version) EqMajorMinor(v2 Version) bool

func (Version) Ints

func (ve Version) Ints() (uint32, uint32, uint32)

Ints returns (major, minor, patch) versions

func (Version) String

func (ve Version) String() string

Directories

Path Synopsis
chain
v0
v0/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
v1
v1/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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