Documentation ¶
Index ¶
- Variables
- type BannedConfig
- type BannedPush
- type Block
- func (*Block) Descriptor() ([]byte, []int)deprecated
- func (x *Block) GetDifficulty() int64
- func (x *Block) GetHash() string
- func (x *Block) GetPoolType() POOLTYPE
- func (x *Block) GetShares() int64
- func (x *Block) GetTimestamp() int64
- func (x *Block) GetUnlocked() bool
- func (x *Block) GetValid() bool
- func (x *Block) GetValue() int64
- func (*Block) ProtoMessage()
- func (x *Block) ProtoReflect() protoreflect.Message
- func (x *Block) Reset()
- func (x *Block) String() string
- type BlockTemplate
- func (*BlockTemplate) Descriptor() ([]byte, []int)deprecated
- func (x *BlockTemplate) GetBlocktemplateBlob() string
- func (x *BlockTemplate) GetDifficulty() int64
- func (x *BlockTemplate) GetHeight() int64
- func (x *BlockTemplate) GetPrevHash() string
- func (x *BlockTemplate) GetReservedOffset() int64
- func (x *BlockTemplate) GetSeedHash() string
- func (x *BlockTemplate) GetSource() string
- func (*BlockTemplate) ProtoMessage()
- func (x *BlockTemplate) ProtoReflect() protoreflect.Message
- func (x *BlockTemplate) Reset()
- func (x *BlockTemplate) String() string
- type ConfigItem
- type ConfigPush
- type FoundBlock
- func (*FoundBlock) Descriptor() ([]byte, []int)deprecated
- func (x *FoundBlock) GetHashedData() []byte
- func (x *FoundBlock) GetPool() string
- func (x *FoundBlock) GetSource() string
- func (*FoundBlock) ProtoMessage()
- func (x *FoundBlock) ProtoReflect() protoreflect.Message
- func (x *FoundBlock) Reset()
- func (x *FoundBlock) String() string
- type InvalidShare
- func (*InvalidShare) Descriptor() ([]byte, []int)deprecated
- func (x *InvalidShare) GetIdentifier() string
- func (x *InvalidShare) GetPaymentAddress() string
- func (x *InvalidShare) GetPaymentID() string
- func (*InvalidShare) ProtoMessage()
- func (x *InvalidShare) ProtoReflect() protoreflect.Message
- func (x *InvalidShare) Reset()
- func (x *InvalidShare) String() string
- type MESSAGETYPE
- func (MESSAGETYPE) Descriptor() protoreflect.EnumDescriptor
- func (x MESSAGETYPE) Enum() *MESSAGETYPE
- func (MESSAGETYPE) EnumDescriptor() ([]byte, []int)deprecated
- func (x MESSAGETYPE) Number() protoreflect.EnumNumber
- func (x MESSAGETYPE) String() string
- func (MESSAGETYPE) Type() protoreflect.EnumType
- func (x *MESSAGETYPE) UnmarshalJSON(b []byte) errordeprecated
- type MinerData
- func (*MinerData) Descriptor() ([]byte, []int)deprecated
- func (x *MinerData) GetConnectionTime() int32
- func (x *MinerData) GetDifficulty() int32
- func (x *MinerData) GetMinerId() []byte
- func (x *MinerData) GetSource() int32
- func (x *MinerData) GetUserAgent() string
- func (*MinerData) ProtoMessage()
- func (x *MinerData) ProtoReflect() protoreflect.Message
- func (x *MinerData) Reset()
- func (x *MinerData) String() string
- type POOLTYPE
- func (POOLTYPE) Descriptor() protoreflect.EnumDescriptor
- func (x POOLTYPE) Enum() *POOLTYPE
- func (POOLTYPE) EnumDescriptor() ([]byte, []int)deprecated
- func (x POOLTYPE) Number() protoreflect.EnumNumber
- func (x POOLTYPE) String() string
- func (POOLTYPE) Type() protoreflect.EnumType
- func (x *POOLTYPE) UnmarshalJSON(b []byte) errordeprecated
- type PoolCheckin
- type PoolInit
- type PortConfig
- type PortPush
- type Share
- func (*Share) Descriptor() ([]byte, []int)deprecated
- func (x *Share) GetBitcoin() bool
- func (x *Share) GetBlobData() []byte
- func (x *Share) GetBlockDiff() int64
- func (x *Share) GetBlockHeight() int32
- func (x *Share) GetFoundBlock() bool
- func (x *Share) GetIdentifier() string
- func (x *Share) GetMinerHex() string
- func (x *Share) GetPaymentAddress() string
- func (x *Share) GetPaymentID() string
- func (x *Share) GetPoolID() int32
- func (x *Share) GetPoolType() POOLTYPE
- func (x *Share) GetSeedHash() []byte
- func (x *Share) GetShares() int32
- func (x *Share) GetTimestamp() int64
- func (x *Share) GetTrustedShare() bool
- func (*Share) ProtoMessage()
- func (x *Share) ProtoReflect() protoreflect.Message
- func (x *Share) Reset()
- func (x *Share) String() string
- type WSData
- func (*WSData) Descriptor() ([]byte, []int)deprecated
- func (x *WSData) GetExInt() int32
- func (x *WSData) GetKey() string
- func (x *WSData) GetMsg() []byte
- func (x *WSData) GetMsgType() MESSAGETYPE
- func (*WSData) ProtoMessage()
- func (x *WSData) ProtoReflect() protoreflect.Message
- func (x *WSData) Reset()
- func (x *WSData) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( POOLTYPE_name = map[int32]string{ 0: "PPLNS", 1: "PPS", 2: "PROP", 3: "SOLO", } POOLTYPE_value = map[string]int32{ "PPLNS": 0, "PPS": 1, "PROP": 2, "SOLO": 3, } )
Enum value maps for POOLTYPE.
View Source
var ( MESSAGETYPE_name = map[int32]string{ 0: "SHARE", 1: "BLOCK", 2: "INVALIDSHARE", } MESSAGETYPE_value = map[string]int32{ "SHARE": 0, "BLOCK": 1, "INVALIDSHARE": 2, } )
Enum value maps for MESSAGETYPE.
View Source
var File_main_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type BannedConfig ¶
type BannedPush ¶
type BannedPush []BannedConfig
type Block ¶
type Block struct { Hash *string `protobuf:"bytes,1,req,name=hash" json:"hash,omitempty"` Difficulty *int64 `protobuf:"varint,2,req,name=difficulty" json:"difficulty,omitempty"` Timestamp *int64 `protobuf:"varint,4,req,name=timestamp" json:"timestamp,omitempty"` PoolType *POOLTYPE `protobuf:"varint,5,req,name=poolType,enum=support.POOLTYPE" json:"poolType,omitempty"` Unlocked *bool `protobuf:"varint,6,req,name=unlocked" json:"unlocked,omitempty"` Valid *bool `protobuf:"varint,7,req,name=valid" json:"valid,omitempty"` Value *int64 `protobuf:"varint,8,opt,name=value" json:"value,omitempty"` // contains filtered or unexported fields }
func (*Block) Descriptor
deprecated
func (*Block) GetDifficulty ¶
func (*Block) GetPoolType ¶
func (*Block) GetTimestamp ¶
func (*Block) GetUnlocked ¶
func (*Block) ProtoMessage ¶
func (*Block) ProtoMessage()
func (*Block) ProtoReflect ¶
func (x *Block) ProtoReflect() protoreflect.Message
type BlockTemplate ¶
type BlockTemplate struct { Source *string `protobuf:"bytes,1,req,name=source" json:"source,omitempty"` Difficulty *int64 `protobuf:"varint,2,req,name=difficulty" json:"difficulty,omitempty"` Height *int64 `protobuf:"varint,3,req,name=height" json:"height,omitempty"` ReservedOffset *int64 `protobuf:"varint,4,req,name=reserved_offset,json=reservedOffset" json:"reserved_offset,omitempty"` BlocktemplateBlob *string `protobuf:"bytes,5,req,name=blocktemplate_blob,json=blocktemplateBlob" json:"blocktemplate_blob,omitempty"` PrevHash *string `protobuf:"bytes,6,req,name=prev_hash,json=prevHash" json:"prev_hash,omitempty"` SeedHash *string `protobuf:"bytes,7,req,name=seed_hash,json=seedHash" json:"seed_hash,omitempty"` // contains filtered or unexported fields }
func (*BlockTemplate) Descriptor
deprecated
func (*BlockTemplate) Descriptor() ([]byte, []int)
Deprecated: Use BlockTemplate.ProtoReflect.Descriptor instead.
func (*BlockTemplate) GetBlocktemplateBlob ¶
func (x *BlockTemplate) GetBlocktemplateBlob() string
func (*BlockTemplate) GetDifficulty ¶
func (x *BlockTemplate) GetDifficulty() int64
func (*BlockTemplate) GetHeight ¶
func (x *BlockTemplate) GetHeight() int64
func (*BlockTemplate) GetPrevHash ¶
func (x *BlockTemplate) GetPrevHash() string
func (*BlockTemplate) GetReservedOffset ¶
func (x *BlockTemplate) GetReservedOffset() int64
func (*BlockTemplate) GetSeedHash ¶
func (x *BlockTemplate) GetSeedHash() string
func (*BlockTemplate) GetSource ¶
func (x *BlockTemplate) GetSource() string
func (*BlockTemplate) ProtoMessage ¶
func (*BlockTemplate) ProtoMessage()
func (*BlockTemplate) ProtoReflect ¶
func (x *BlockTemplate) ProtoReflect() protoreflect.Message
func (*BlockTemplate) Reset ¶
func (x *BlockTemplate) Reset()
func (*BlockTemplate) String ¶
func (x *BlockTemplate) String() string
type ConfigItem ¶
type ConfigPush ¶
type ConfigPush []ConfigItem
type FoundBlock ¶
type FoundBlock struct { Source *string `protobuf:"bytes,1,req,name=source" json:"source,omitempty"` HashedData []byte `protobuf:"bytes,2,req,name=hashedData" json:"hashedData,omitempty"` Pool *string `protobuf:"bytes,3,req,name=pool" json:"pool,omitempty"` // contains filtered or unexported fields }
func (*FoundBlock) Descriptor
deprecated
func (*FoundBlock) Descriptor() ([]byte, []int)
Deprecated: Use FoundBlock.ProtoReflect.Descriptor instead.
func (*FoundBlock) GetHashedData ¶
func (x *FoundBlock) GetHashedData() []byte
func (*FoundBlock) GetPool ¶
func (x *FoundBlock) GetPool() string
func (*FoundBlock) GetSource ¶
func (x *FoundBlock) GetSource() string
func (*FoundBlock) ProtoMessage ¶
func (*FoundBlock) ProtoMessage()
func (*FoundBlock) ProtoReflect ¶
func (x *FoundBlock) ProtoReflect() protoreflect.Message
func (*FoundBlock) Reset ¶
func (x *FoundBlock) Reset()
func (*FoundBlock) String ¶
func (x *FoundBlock) String() string
type InvalidShare ¶
type InvalidShare struct { // contains filtered or unexported fields }
func (*InvalidShare) Descriptor
deprecated
func (*InvalidShare) Descriptor() ([]byte, []int)
Deprecated: Use InvalidShare.ProtoReflect.Descriptor instead.
func (*InvalidShare) GetIdentifier ¶
func (x *InvalidShare) GetIdentifier() string
func (*InvalidShare) GetPaymentAddress ¶
func (x *InvalidShare) GetPaymentAddress() string
func (*InvalidShare) GetPaymentID ¶
func (x *InvalidShare) GetPaymentID() string
func (*InvalidShare) ProtoMessage ¶
func (*InvalidShare) ProtoMessage()
func (*InvalidShare) ProtoReflect ¶
func (x *InvalidShare) ProtoReflect() protoreflect.Message
func (*InvalidShare) Reset ¶
func (x *InvalidShare) Reset()
func (*InvalidShare) String ¶
func (x *InvalidShare) String() string
type MESSAGETYPE ¶
type MESSAGETYPE int32
const ( MESSAGETYPE_SHARE MESSAGETYPE = 0 MESSAGETYPE_BLOCK MESSAGETYPE = 1 MESSAGETYPE_INVALIDSHARE MESSAGETYPE = 2 )
func (MESSAGETYPE) Descriptor ¶
func (MESSAGETYPE) Descriptor() protoreflect.EnumDescriptor
func (MESSAGETYPE) Enum ¶
func (x MESSAGETYPE) Enum() *MESSAGETYPE
func (MESSAGETYPE) EnumDescriptor
deprecated
func (MESSAGETYPE) EnumDescriptor() ([]byte, []int)
Deprecated: Use MESSAGETYPE.Descriptor instead.
func (MESSAGETYPE) Number ¶
func (x MESSAGETYPE) Number() protoreflect.EnumNumber
func (MESSAGETYPE) String ¶
func (x MESSAGETYPE) String() string
func (MESSAGETYPE) Type ¶
func (MESSAGETYPE) Type() protoreflect.EnumType
func (*MESSAGETYPE) UnmarshalJSON
deprecated
func (x *MESSAGETYPE) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type MinerData ¶
type MinerData struct { Source *int32 `protobuf:"varint,1,req,name=source" json:"source,omitempty"` MinerId []byte `protobuf:"bytes,2,req,name=miner_id,json=minerId" json:"miner_id,omitempty"` Difficulty *int32 `protobuf:"varint,3,req,name=difficulty" json:"difficulty,omitempty"` ConnectionTime *int32 `protobuf:"varint,4,opt,name=connectionTime" json:"connectionTime,omitempty"` UserAgent *string `protobuf:"bytes,5,opt,name=user_agent,json=userAgent" json:"user_agent,omitempty"` // contains filtered or unexported fields }
func (*MinerData) Descriptor
deprecated
func (*MinerData) GetConnectionTime ¶
func (*MinerData) GetDifficulty ¶
func (*MinerData) GetMinerId ¶
func (*MinerData) GetUserAgent ¶
func (*MinerData) ProtoMessage ¶
func (*MinerData) ProtoMessage()
func (*MinerData) ProtoReflect ¶
func (x *MinerData) ProtoReflect() protoreflect.Message
type POOLTYPE ¶
type POOLTYPE int32
func (POOLTYPE) Descriptor ¶
func (POOLTYPE) Descriptor() protoreflect.EnumDescriptor
func (POOLTYPE) EnumDescriptor
deprecated
func (POOLTYPE) Number ¶
func (x POOLTYPE) Number() protoreflect.EnumNumber
func (POOLTYPE) Type ¶
func (POOLTYPE) Type() protoreflect.EnumType
func (*POOLTYPE) UnmarshalJSON
deprecated
type PoolCheckin ¶
type PoolInit ¶
type PoolInit struct { Ports []struct { Port int `json:"port"` Difficulty int `json:"difficulty"` Desc string `json:"desc"` PortType string `json:"portType"` Hidden bool `json:"hidden"` Ssl bool `json:"ssl"` } `json:"ports"` PoolId int `json:"pool_id"` PoolIp string `json:"pool_ip"` Hostname string `json:"hostname"` }
type PortConfig ¶
type PortPush ¶
type PortPush []PortConfig
type Share ¶
type Share struct { // contains filtered or unexported fields }
func (*Share) Descriptor
deprecated
func (*Share) GetBitcoin ¶
func (*Share) GetBlobData ¶
func (*Share) GetBlockDiff ¶
func (*Share) GetBlockHeight ¶
func (*Share) GetFoundBlock ¶
func (*Share) GetIdentifier ¶
func (*Share) GetMinerHex ¶
func (*Share) GetPaymentAddress ¶
func (*Share) GetPaymentID ¶
func (*Share) GetPoolType ¶
func (*Share) GetSeedHash ¶
func (*Share) GetTimestamp ¶
func (*Share) GetTrustedShare ¶
func (*Share) ProtoMessage ¶
func (*Share) ProtoMessage()
func (*Share) ProtoReflect ¶
func (x *Share) ProtoReflect() protoreflect.Message
type WSData ¶
type WSData struct { MsgType *MESSAGETYPE `protobuf:"varint,1,req,name=msgType,enum=support.MESSAGETYPE" json:"msgType,omitempty"` Key *string `protobuf:"bytes,2,req,name=key" json:"key,omitempty"` Msg []byte `protobuf:"bytes,3,req,name=msg" json:"msg,omitempty"` ExInt *int32 `protobuf:"varint,4,req,name=exInt" json:"exInt,omitempty"` // contains filtered or unexported fields }
func (*WSData) Descriptor
deprecated
func (*WSData) GetMsgType ¶
func (x *WSData) GetMsgType() MESSAGETYPE
func (*WSData) ProtoMessage ¶
func (*WSData) ProtoMessage()
func (*WSData) ProtoReflect ¶
func (x *WSData) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.