api

package
v1.2.0-rc5 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const VenusAPINamespaceHeader = "X-VENUS-API-NAMESPACE"

Variables

View Source
var (
	FullAPIVersion0 = NewVer(1, 5, 0)
	FullAPIVersion1 = NewVer(2, 2, 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
Code generated by github.com/filecoin-project/venus/venus-devtool/api-gen.
Code generated by github.com/filecoin-project/venus/venus-devtool/api-gen.
v0/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
v1
Code generated by github.com/filecoin-project/venus/venus-devtool/api-gen.
Code generated by github.com/filecoin-project/venus/venus-devtool/api-gen.
v1/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Code generated by github.com/filecoin-project/venus/venus-devtool/api-gen.
Code generated by github.com/filecoin-project/venus/venus-devtool/api-gen.
Code generated by github.com/filecoin-project/venus/venus-devtool/api-gen.
Code generated by github.com/filecoin-project/venus/venus-devtool/api-gen.

Jump to

Keyboard shortcuts

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