node

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2020 License: MIT Imports: 11 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthNode        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowNode          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupNode = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type Node

type Node struct {
	NodeId               string  `protobuf:"bytes,2,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty" pg:"node_id"`
	BtfsVersion          string  `protobuf:"bytes,3,opt,name=btfs_version,json=btfsVersion,proto3" json:"btfs_version,omitempty" pg:"btfs_version"`
	UpTime               uint64  `protobuf:"varint,4,opt,name=up_time,json=upTime,proto3" json:"up_time,omitempty" pg:"up_time"`
	StorageUsed          uint64  `protobuf:"varint,5,opt,name=storage_used,json=storageUsed,proto3" json:"storage_used,omitempty" pg:"storage_used"`
	StorageVolumeCap     uint64  `` /* 136-byte string literal not displayed */
	MemoryUsed           uint64  `protobuf:"varint,7,opt,name=memory_used,json=memoryUsed,proto3" json:"memory_used,omitempty" pg:"memory_used"`
	CpuUsed              float64 `protobuf:"fixed64,8,opt,name=cpu_used,json=cpuUsed,proto3" json:"cpu_used,omitempty" pg:"cpu_used"`
	Upload               uint64  `protobuf:"varint,9,opt,name=upload,proto3" json:"upload,omitempty" pg:"upload"`
	Download             uint64  `protobuf:"varint,10,opt,name=download,proto3" json:"download,omitempty" pg:"download"`
	TotalUpload          uint64  `protobuf:"varint,11,opt,name=total_upload,json=totalUpload,proto3" json:"total_upload,omitempty" pg:"total_upload"`
	TotalDownload        uint64  `protobuf:"varint,12,opt,name=total_download,json=totalDownload,proto3" json:"total_download,omitempty" pg:"total_download"`
	StoragePriceDeal     uint64  `` /* 137-byte string literal not displayed */
	BandwidthPriceDeal   uint64  `` /* 145-byte string literal not displayed */
	Node_Settings        `protobuf:"bytes,15,opt,name=settings,proto3,embedded=settings" json:"settings" pg:"settings"`
	Reputation           float64   `protobuf:"fixed64,16,opt,name=reputation,proto3" json:"reputation,omitempty" pg:"reputation"`
	BlocksUp             uint64    `protobuf:"varint,17,opt,name=blocks_up,json=blocksUp,proto3" json:"blocks_up,omitempty" pg:"blocks_up"`
	BlocksDown           uint64    `protobuf:"varint,18,opt,name=blocks_down,json=blocksDown,proto3" json:"blocks_down,omitempty" pg:"blocks_down"`
	OsType               string    `protobuf:"bytes,19,opt,name=os_type,json=osType,proto3" json:"os_type,omitempty" pg:"os_type"`
	ArchType             string    `protobuf:"bytes,20,opt,name=arch_type,json=archType,proto3" json:"arch_type,omitempty" pg:"arch_type"`
	CpuInfo              string    `protobuf:"bytes,21,opt,name=cpu_info,json=cpuInfo,proto3" json:"cpu_info,omitempty" pg:"cpu_info"`
	NodeIp               string    `protobuf:"bytes,22,opt,name=node_ip,json=nodeIp,proto3" json:"-" pg:"-"`
	PeersConnected       uint64    `` /* 126-byte string literal not displayed */
	TimeCreated          time.Time `protobuf:"bytes,24,opt,name=time_created,json=timeCreated,proto3,stdtime" json:"time_created" pg:"time_created"`
	HVal                 string    `protobuf:"bytes,25,opt,name=h_val,json=hVal,proto3" json:"h_val,omitempty" pg:"h_val"`
	Node_Geo             `protobuf:"bytes,26,opt,name=geo,proto3,embedded=geo" json:"geo" pg:"geo"`
	XXX_NoUnkeyedLiteral struct{} `json:"-" pg:"-"`
	XXX_unrecognized     []byte   `json:"-" pg:"-"`
	XXX_sizecache        int32    `json:"-" pg:"-"`
	// contains filtered or unexported fields
}

func NewPopulatedNode added in v0.1.1

func NewPopulatedNode(r randyNode, easy bool) *Node

func (*Node) Descriptor

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

func (*Node) GetArchType

func (m *Node) GetArchType() string

func (*Node) GetBandwidthPriceDeal

func (m *Node) GetBandwidthPriceDeal() uint64

func (*Node) GetBlocksDown

func (m *Node) GetBlocksDown() uint64

func (*Node) GetBlocksUp

func (m *Node) GetBlocksUp() uint64

func (*Node) GetBtfsVersion

func (m *Node) GetBtfsVersion() string

func (*Node) GetCpuInfo

func (m *Node) GetCpuInfo() string

func (*Node) GetCpuUsed

func (m *Node) GetCpuUsed() float64

func (*Node) GetDownload

func (m *Node) GetDownload() uint64

func (*Node) GetHVal added in v0.1.11

func (m *Node) GetHVal() string

func (*Node) GetMemoryUsed

func (m *Node) GetMemoryUsed() uint64

func (*Node) GetNodeId

func (m *Node) GetNodeId() string

func (*Node) GetNodeIp

func (m *Node) GetNodeIp() string

func (*Node) GetOsType

func (m *Node) GetOsType() string

func (*Node) GetPeersConnected

func (m *Node) GetPeersConnected() uint64

func (*Node) GetReputation

func (m *Node) GetReputation() float64

func (*Node) GetStoragePriceDeal

func (m *Node) GetStoragePriceDeal() uint64

func (*Node) GetStorageUsed

func (m *Node) GetStorageUsed() uint64

func (*Node) GetStorageVolumeCap

func (m *Node) GetStorageVolumeCap() uint64

func (*Node) GetTimeCreated

func (m *Node) GetTimeCreated() time.Time

func (*Node) GetTotalDownload

func (m *Node) GetTotalDownload() uint64

func (*Node) GetTotalUpload

func (m *Node) GetTotalUpload() uint64

func (*Node) GetUpTime

func (m *Node) GetUpTime() uint64

func (*Node) GetUpload

func (m *Node) GetUpload() uint64

func (*Node) GettableName added in v0.1.1

func (m *Node) GettableName() string

func (*Node) Marshal added in v0.0.13

func (m *Node) Marshal() (dAtA []byte, err error)

func (*Node) MarshalTo added in v0.0.13

func (m *Node) MarshalTo(dAtA []byte) (int, error)

func (*Node) MarshalToSizedBuffer added in v0.0.13

func (m *Node) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Node) ProtoMessage

func (*Node) ProtoMessage()

func (*Node) Reset

func (m *Node) Reset()

func (*Node) Size added in v0.0.13

func (m *Node) Size() (n int)

func (*Node) String

func (m *Node) String() string

func (*Node) Unmarshal added in v0.0.13

func (m *Node) Unmarshal(dAtA []byte) error

func (*Node) XXX_DiscardUnknown

func (m *Node) XXX_DiscardUnknown()

func (*Node) XXX_Marshal

func (m *Node) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Node) XXX_Merge

func (m *Node) XXX_Merge(src proto.Message)

func (*Node) XXX_MessageName added in v0.0.13

func (*Node) XXX_MessageName() string

func (*Node) XXX_Size

func (m *Node) XXX_Size() int

func (*Node) XXX_Unmarshal

func (m *Node) XXX_Unmarshal(b []byte) error

type Node_Geo added in v0.1.12

type Node_Geo struct {
	CountryShort         string   `protobuf:"bytes,1,opt,name=country_short,json=countryShort,proto3" json:"country_short,omitempty" pg:"country_short"`
	Region               string   `protobuf:"bytes,2,opt,name=region,proto3" json:"region,omitempty" pg:"region"`
	Latitude             float32  `protobuf:"fixed32,3,opt,name=latitude,proto3" json:"latitude,omitempty" pg:"latitude"`
	Longitude            float32  `protobuf:"fixed32,4,opt,name=longitude,proto3" json:"longitude,omitempty" pg:"longitude"`
	XXX_NoUnkeyedLiteral struct{} `json:"-" pg:"-"`
	XXX_unrecognized     []byte   `json:"-" pg:"-"`
	XXX_sizecache        int32    `json:"-" pg:"-"`
}

func NewPopulatedNode_Geo added in v0.1.12

func NewPopulatedNode_Geo(r randyNode, easy bool) *Node_Geo

func (*Node_Geo) Descriptor added in v0.1.12

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

func (*Node_Geo) GetCountryShort added in v0.1.12

func (m *Node_Geo) GetCountryShort() string

func (*Node_Geo) GetLatitude added in v0.1.12

func (m *Node_Geo) GetLatitude() float32

func (*Node_Geo) GetLongitude added in v0.1.12

func (m *Node_Geo) GetLongitude() float32

func (*Node_Geo) GetRegion added in v0.1.12

func (m *Node_Geo) GetRegion() string

func (*Node_Geo) Marshal added in v0.1.12

func (m *Node_Geo) Marshal() (dAtA []byte, err error)

func (*Node_Geo) MarshalTo added in v0.1.12

func (m *Node_Geo) MarshalTo(dAtA []byte) (int, error)

func (*Node_Geo) MarshalToSizedBuffer added in v0.1.12

func (m *Node_Geo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Node_Geo) ProtoMessage added in v0.1.12

func (*Node_Geo) ProtoMessage()

func (*Node_Geo) Reset added in v0.1.12

func (m *Node_Geo) Reset()

func (*Node_Geo) Size added in v0.1.12

func (m *Node_Geo) Size() (n int)

func (*Node_Geo) String added in v0.1.12

func (m *Node_Geo) String() string

func (*Node_Geo) Unmarshal added in v0.1.12

func (m *Node_Geo) Unmarshal(dAtA []byte) error

func (*Node_Geo) XXX_DiscardUnknown added in v0.1.12

func (m *Node_Geo) XXX_DiscardUnknown()

func (*Node_Geo) XXX_Marshal added in v0.1.12

func (m *Node_Geo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Node_Geo) XXX_Merge added in v0.1.12

func (m *Node_Geo) XXX_Merge(src proto.Message)

func (*Node_Geo) XXX_MessageName added in v0.1.12

func (*Node_Geo) XXX_MessageName() string

func (*Node_Geo) XXX_Size added in v0.1.12

func (m *Node_Geo) XXX_Size() int

func (*Node_Geo) XXX_Unmarshal added in v0.1.12

func (m *Node_Geo) XXX_Unmarshal(b []byte) error

type Node_Settings

type Node_Settings struct {
	StoragePriceAsk      uint64   `` /* 132-byte string literal not displayed */
	BandwidthPriceAsk    uint64   `` /* 140-byte string literal not displayed */
	StorageTimeMin       uint64   `` /* 128-byte string literal not displayed */
	BandwidthLimit       float64  `` /* 126-byte string literal not displayed */
	CollateralStake      uint64   `` /* 129-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{} `json:"-" pg:"-"`
	XXX_unrecognized     []byte   `json:"-" pg:"-"`
	XXX_sizecache        int32    `json:"-" pg:"-"`
}

func NewPopulatedNode_Settings added in v0.1.1

func NewPopulatedNode_Settings(r randyNode, easy bool) *Node_Settings

func (*Node_Settings) Descriptor

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

func (*Node_Settings) GetBandwidthLimit

func (m *Node_Settings) GetBandwidthLimit() float64

func (*Node_Settings) GetBandwidthPriceAsk

func (m *Node_Settings) GetBandwidthPriceAsk() uint64

func (*Node_Settings) GetCollateralStake

func (m *Node_Settings) GetCollateralStake() uint64

func (*Node_Settings) GetStoragePriceAsk

func (m *Node_Settings) GetStoragePriceAsk() uint64

func (*Node_Settings) GetStorageTimeMin

func (m *Node_Settings) GetStorageTimeMin() uint64

func (*Node_Settings) Marshal added in v0.0.13

func (m *Node_Settings) Marshal() (dAtA []byte, err error)

func (*Node_Settings) MarshalTo added in v0.0.13

func (m *Node_Settings) MarshalTo(dAtA []byte) (int, error)

func (*Node_Settings) MarshalToSizedBuffer added in v0.0.13

func (m *Node_Settings) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Node_Settings) ProtoMessage

func (*Node_Settings) ProtoMessage()

func (*Node_Settings) Reset

func (m *Node_Settings) Reset()

func (*Node_Settings) Size added in v0.0.13

func (m *Node_Settings) Size() (n int)

func (*Node_Settings) String

func (m *Node_Settings) String() string

func (*Node_Settings) Unmarshal added in v0.0.13

func (m *Node_Settings) Unmarshal(dAtA []byte) error

func (*Node_Settings) XXX_DiscardUnknown

func (m *Node_Settings) XXX_DiscardUnknown()

func (*Node_Settings) XXX_Marshal

func (m *Node_Settings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Node_Settings) XXX_Merge

func (m *Node_Settings) XXX_Merge(src proto.Message)

func (*Node_Settings) XXX_MessageName added in v0.0.13

func (*Node_Settings) XXX_MessageName() string

func (*Node_Settings) XXX_Size

func (m *Node_Settings) XXX_Size() int

func (*Node_Settings) XXX_Unmarshal

func (m *Node_Settings) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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