common

package
v1.4.6 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: Apache-2.0, MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_common_common_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Metadata

type Metadata struct {
	NodeVersion *NodeVersion `protobuf:"bytes,1,opt,name=node_version,json=nodeVersion,proto3" json:"node_version,omitempty"`
	BeaconID    string       `protobuf:"bytes,2,opt,name=beaconID,proto3" json:"beaconID,omitempty"`
	ChainHash   []byte       `protobuf:"bytes,3,opt,name=chain_hash,json=chainHash,proto3" json:"chain_hash,omitempty"`
	// contains filtered or unexported fields
}

func NewMetadata

func NewMetadata(version *NodeVersion) *Metadata

func (*Metadata) Descriptor deprecated

func (*Metadata) Descriptor() ([]byte, []int)

Deprecated: Use Metadata.ProtoReflect.Descriptor instead.

func (*Metadata) GetBeaconID

func (x *Metadata) GetBeaconID() string

func (*Metadata) GetChainHash

func (x *Metadata) GetChainHash() []byte

func (*Metadata) GetNodeVersion

func (x *Metadata) GetNodeVersion() *NodeVersion

func (*Metadata) ProtoMessage

func (*Metadata) ProtoMessage()

func (*Metadata) ProtoReflect

func (x *Metadata) ProtoReflect() protoreflect.Message

func (*Metadata) Reset

func (x *Metadata) Reset()

func (*Metadata) String

func (x *Metadata) String() string

type NodeVersion

type NodeVersion struct {
	Major      uint32  `protobuf:"varint,1,opt,name=major,proto3" json:"major,omitempty"`
	Minor      uint32  `protobuf:"varint,2,opt,name=minor,proto3" json:"minor,omitempty"`
	Patch      uint32  `protobuf:"varint,3,opt,name=patch,proto3" json:"patch,omitempty"`
	Prerelease *string `protobuf:"bytes,4,opt,name=prerelease,proto3,oneof" json:"prerelease,omitempty"`
	// contains filtered or unexported fields
}

func (*NodeVersion) Descriptor deprecated

func (*NodeVersion) Descriptor() ([]byte, []int)

Deprecated: Use NodeVersion.ProtoReflect.Descriptor instead.

func (*NodeVersion) GetMajor

func (x *NodeVersion) GetMajor() uint32

func (*NodeVersion) GetMinor

func (x *NodeVersion) GetMinor() uint32

func (*NodeVersion) GetPatch

func (x *NodeVersion) GetPatch() uint32

func (*NodeVersion) GetPrerelease

func (x *NodeVersion) GetPrerelease() string

func (*NodeVersion) ProtoMessage

func (*NodeVersion) ProtoMessage()

func (*NodeVersion) ProtoReflect

func (x *NodeVersion) ProtoReflect() protoreflect.Message

func (*NodeVersion) Reset

func (x *NodeVersion) Reset()

func (*NodeVersion) String

func (x *NodeVersion) String() string

Jump to

Keyboard shortcuts

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