proto_sphere

package
v0.0.0-...-f3084cf Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2020 License: GPL-3.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StratumShareState_name = map[int32]string{
	0: "SUC_SOLVE_SHARE",
	1: "SUC_SUBMIT_BLOCK",
	2: "ERR_DUPLICATE_SHARE",
	3: "ERR_LOW_DIFFICULTY_SHARE",
	4: "ERR_JOB_NOT_FOUND",
	5: "ERR_SUBMIT_BLOCK",
}
View Source
var StratumShareState_value = map[string]int32{
	"SUC_SOLVE_SHARE":          0,
	"SUC_SUBMIT_BLOCK":         1,
	"ERR_DUPLICATE_SHARE":      2,
	"ERR_LOW_DIFFICULTY_SHARE": 3,
	"ERR_JOB_NOT_FOUND":        4,
	"ERR_SUBMIT_BLOCK":         5,
}

Functions

func RegisterSphereServer

func RegisterSphereServer(s *grpc.Server, srv SphereServer)

Types

type ClearShareHistoryRequest

type ClearShareHistoryRequest struct {
	RegisterId           string   `protobuf:"bytes,1,opt,name=register_id,json=registerId,proto3" json:"register_id,omitempty"`
	Height               int32    `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ClearShareHistoryRequest) Descriptor

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

func (*ClearShareHistoryRequest) GetHeight

func (m *ClearShareHistoryRequest) GetHeight() int32

func (*ClearShareHistoryRequest) GetRegisterId

func (m *ClearShareHistoryRequest) GetRegisterId() string

func (*ClearShareHistoryRequest) ProtoMessage

func (*ClearShareHistoryRequest) ProtoMessage()

func (*ClearShareHistoryRequest) Reset

func (m *ClearShareHistoryRequest) Reset()

func (*ClearShareHistoryRequest) String

func (m *ClearShareHistoryRequest) String() string

func (*ClearShareHistoryRequest) XXX_DiscardUnknown

func (m *ClearShareHistoryRequest) XXX_DiscardUnknown()

func (*ClearShareHistoryRequest) XXX_Marshal

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

func (*ClearShareHistoryRequest) XXX_Merge

func (dst *ClearShareHistoryRequest) XXX_Merge(src proto.Message)

func (*ClearShareHistoryRequest) XXX_Size

func (m *ClearShareHistoryRequest) XXX_Size() int

func (*ClearShareHistoryRequest) XXX_Unmarshal

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

type ClearShareHistoryResponse

type ClearShareHistoryResponse struct {
	Result               bool     `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ClearShareHistoryResponse) Descriptor

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

func (*ClearShareHistoryResponse) GetResult

func (m *ClearShareHistoryResponse) GetResult() bool

func (*ClearShareHistoryResponse) ProtoMessage

func (*ClearShareHistoryResponse) ProtoMessage()

func (*ClearShareHistoryResponse) Reset

func (m *ClearShareHistoryResponse) Reset()

func (*ClearShareHistoryResponse) String

func (m *ClearShareHistoryResponse) String() string

func (*ClearShareHistoryResponse) XXX_DiscardUnknown

func (m *ClearShareHistoryResponse) XXX_DiscardUnknown()

func (*ClearShareHistoryResponse) XXX_Marshal

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

func (*ClearShareHistoryResponse) XXX_Merge

func (dst *ClearShareHistoryResponse) XXX_Merge(src proto.Message)

func (*ClearShareHistoryResponse) XXX_Size

func (m *ClearShareHistoryResponse) XXX_Size() int

func (*ClearShareHistoryResponse) XXX_Unmarshal

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

type GetLatestStratumJobRequest

type GetLatestStratumJobRequest struct {
	RegisterId           string   `protobuf:"bytes,1,opt,name=register_id,json=registerId,proto3" json:"register_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetLatestStratumJobRequest) Descriptor

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

func (*GetLatestStratumJobRequest) GetRegisterId

func (m *GetLatestStratumJobRequest) GetRegisterId() string

func (*GetLatestStratumJobRequest) ProtoMessage

func (*GetLatestStratumJobRequest) ProtoMessage()

func (*GetLatestStratumJobRequest) Reset

func (m *GetLatestStratumJobRequest) Reset()

func (*GetLatestStratumJobRequest) String

func (m *GetLatestStratumJobRequest) String() string

func (*GetLatestStratumJobRequest) XXX_DiscardUnknown

func (m *GetLatestStratumJobRequest) XXX_DiscardUnknown()

func (*GetLatestStratumJobRequest) XXX_Marshal

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

func (*GetLatestStratumJobRequest) XXX_Merge

func (dst *GetLatestStratumJobRequest) XXX_Merge(src proto.Message)

func (*GetLatestStratumJobRequest) XXX_Size

func (m *GetLatestStratumJobRequest) XXX_Size() int

func (*GetLatestStratumJobRequest) XXX_Unmarshal

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

type GetLatestStratumJobResponse

type GetLatestStratumJobResponse struct {
	Job                  *StratumJob `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*GetLatestStratumJobResponse) Descriptor

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

func (*GetLatestStratumJobResponse) GetJob

func (*GetLatestStratumJobResponse) ProtoMessage

func (*GetLatestStratumJobResponse) ProtoMessage()

func (*GetLatestStratumJobResponse) Reset

func (m *GetLatestStratumJobResponse) Reset()

func (*GetLatestStratumJobResponse) String

func (m *GetLatestStratumJobResponse) String() string

func (*GetLatestStratumJobResponse) XXX_DiscardUnknown

func (m *GetLatestStratumJobResponse) XXX_DiscardUnknown()

func (*GetLatestStratumJobResponse) XXX_Marshal

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

func (*GetLatestStratumJobResponse) XXX_Merge

func (dst *GetLatestStratumJobResponse) XXX_Merge(src proto.Message)

func (*GetLatestStratumJobResponse) XXX_Size

func (m *GetLatestStratumJobResponse) XXX_Size() int

func (*GetLatestStratumJobResponse) XXX_Unmarshal

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

type RegisterRequest

type RegisterRequest struct {
	Config               *StratumConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
	SysInfo              *SysInfo       `protobuf:"bytes,2,opt,name=sys_info,json=sysInfo,proto3" json:"sys_info,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func (*RegisterRequest) Descriptor

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

func (*RegisterRequest) GetConfig

func (m *RegisterRequest) GetConfig() *StratumConfig

func (*RegisterRequest) GetSysInfo

func (m *RegisterRequest) GetSysInfo() *SysInfo

func (*RegisterRequest) ProtoMessage

func (*RegisterRequest) ProtoMessage()

func (*RegisterRequest) Reset

func (m *RegisterRequest) Reset()

func (*RegisterRequest) String

func (m *RegisterRequest) String() string

func (*RegisterRequest) XXX_DiscardUnknown

func (m *RegisterRequest) XXX_DiscardUnknown()

func (*RegisterRequest) XXX_Marshal

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

func (*RegisterRequest) XXX_Merge

func (dst *RegisterRequest) XXX_Merge(src proto.Message)

func (*RegisterRequest) XXX_Size

func (m *RegisterRequest) XXX_Size() int

func (*RegisterRequest) XXX_Unmarshal

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

type RegisterResponse

type RegisterResponse struct {
	RegisterId           string   `protobuf:"bytes,1,opt,name=register_id,json=registerId,proto3" json:"register_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RegisterResponse) Descriptor

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

func (*RegisterResponse) GetRegisterId

func (m *RegisterResponse) GetRegisterId() string

func (*RegisterResponse) ProtoMessage

func (*RegisterResponse) ProtoMessage()

func (*RegisterResponse) Reset

func (m *RegisterResponse) Reset()

func (*RegisterResponse) String

func (m *RegisterResponse) String() string

func (*RegisterResponse) XXX_DiscardUnknown

func (m *RegisterResponse) XXX_DiscardUnknown()

func (*RegisterResponse) XXX_Marshal

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

func (*RegisterResponse) XXX_Merge

func (dst *RegisterResponse) XXX_Merge(src proto.Message)

func (*RegisterResponse) XXX_Size

func (m *RegisterResponse) XXX_Size() int

func (*RegisterResponse) XXX_Unmarshal

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

type SphereClient

SphereClient is the client API for Sphere service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewSphereClient

func NewSphereClient(cc *grpc.ClientConn) SphereClient

type Sphere_SubscribeClient

type Sphere_SubscribeClient interface {
	Recv() (*GetLatestStratumJobResponse, error)
	grpc.ClientStream
}

type Sphere_SubscribeServer

type Sphere_SubscribeServer interface {
	Send(*GetLatestStratumJobResponse) error
	grpc.ServerStream
}

type StratumConfig

type StratumConfig struct {
	PoolTag              string   `protobuf:"bytes,1,opt,name=pool_tag,json=poolTag,proto3" json:"pool_tag,omitempty"`
	PayoutAddress        string   `protobuf:"bytes,2,opt,name=payout_address,json=payoutAddress,proto3" json:"payout_address,omitempty"`
	CoinType             string   `protobuf:"bytes,3,opt,name=coin_type,json=coinType,proto3" json:"coin_type,omitempty"`
	UsedTestNet          bool     `protobuf:"varint,4,opt,name=used_test_net,json=usedTestNet,proto3" json:"used_test_net,omitempty"`
	ExtraNonce1Length    int32    `protobuf:"varint,5,opt,name=extra_nonce1_length,json=extraNonce1Length,proto3" json:"extra_nonce1_length,omitempty"`
	ExtraNonce2Length    int32    `protobuf:"varint,6,opt,name=extra_nonce2_length,json=extraNonce2Length,proto3" json:"extra_nonce2_length,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*StratumConfig) Descriptor

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

func (*StratumConfig) GetCoinType

func (m *StratumConfig) GetCoinType() string

func (*StratumConfig) GetExtraNonce1Length

func (m *StratumConfig) GetExtraNonce1Length() int32

func (*StratumConfig) GetExtraNonce2Length

func (m *StratumConfig) GetExtraNonce2Length() int32

func (*StratumConfig) GetPayoutAddress

func (m *StratumConfig) GetPayoutAddress() string

func (*StratumConfig) GetPoolTag

func (m *StratumConfig) GetPoolTag() string

func (*StratumConfig) GetUsedTestNet

func (m *StratumConfig) GetUsedTestNet() bool

func (*StratumConfig) ProtoMessage

func (*StratumConfig) ProtoMessage()

func (*StratumConfig) Reset

func (m *StratumConfig) Reset()

func (*StratumConfig) String

func (m *StratumConfig) String() string

func (*StratumConfig) XXX_DiscardUnknown

func (m *StratumConfig) XXX_DiscardUnknown()

func (*StratumConfig) XXX_Marshal

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

func (*StratumConfig) XXX_Merge

func (dst *StratumConfig) XXX_Merge(src proto.Message)

func (*StratumConfig) XXX_Size

func (m *StratumConfig) XXX_Size() int

func (*StratumConfig) XXX_Unmarshal

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

type StratumJob

type StratumJob struct {
	PrevHash             string          `protobuf:"bytes,1,opt,name=prev_hash,json=prevHash,proto3" json:"prev_hash,omitempty"`
	CoinBase1            string          `protobuf:"bytes,2,opt,name=coin_base1,json=coinBase1,proto3" json:"coin_base1,omitempty"`
	CoinBase2            string          `protobuf:"bytes,3,opt,name=coin_base2,json=coinBase2,proto3" json:"coin_base2,omitempty"`
	MerkleBranch         []string        `protobuf:"bytes,4,rep,name=merkle_branch,json=merkleBranch,proto3" json:"merkle_branch,omitempty"`
	Version              string          `protobuf:"bytes,5,opt,name=version,proto3" json:"version,omitempty"`
	NBits                string          `protobuf:"bytes,6,opt,name=n_bits,json=nBits,proto3" json:"n_bits,omitempty"`
	Meta                 *StratumJobMeta `protobuf:"bytes,7,opt,name=meta,proto3" json:"meta,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (*StratumJob) Descriptor

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

func (*StratumJob) GetCoinBase1

func (m *StratumJob) GetCoinBase1() string

func (*StratumJob) GetCoinBase2

func (m *StratumJob) GetCoinBase2() string

func (*StratumJob) GetMerkleBranch

func (m *StratumJob) GetMerkleBranch() []string

func (*StratumJob) GetMeta

func (m *StratumJob) GetMeta() *StratumJobMeta

func (*StratumJob) GetNBits

func (m *StratumJob) GetNBits() string

func (*StratumJob) GetPrevHash

func (m *StratumJob) GetPrevHash() string

func (*StratumJob) GetVersion

func (m *StratumJob) GetVersion() string

func (*StratumJob) ProtoMessage

func (*StratumJob) ProtoMessage()

func (*StratumJob) Reset

func (m *StratumJob) Reset()

func (*StratumJob) String

func (m *StratumJob) String() string

func (*StratumJob) XXX_DiscardUnknown

func (m *StratumJob) XXX_DiscardUnknown()

func (*StratumJob) XXX_Marshal

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

func (*StratumJob) XXX_Merge

func (dst *StratumJob) XXX_Merge(src proto.Message)

func (*StratumJob) XXX_Size

func (m *StratumJob) XXX_Size() int

func (*StratumJob) XXX_Unmarshal

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

type StratumJobMeta

type StratumJobMeta struct {
	Height               int32    `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	MinTimeTs            int32    `protobuf:"varint,2,opt,name=minTimeTs,proto3" json:"minTimeTs,omitempty"`
	CurTimeTs            int32    `protobuf:"varint,3,opt,name=curTimeTs,proto3" json:"curTimeTs,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*StratumJobMeta) Descriptor

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

func (*StratumJobMeta) GetCurTimeTs

func (m *StratumJobMeta) GetCurTimeTs() int32

func (*StratumJobMeta) GetHeight

func (m *StratumJobMeta) GetHeight() int32

func (*StratumJobMeta) GetMinTimeTs

func (m *StratumJobMeta) GetMinTimeTs() int32

func (*StratumJobMeta) ProtoMessage

func (*StratumJobMeta) ProtoMessage()

func (*StratumJobMeta) Reset

func (m *StratumJobMeta) Reset()

func (*StratumJobMeta) String

func (m *StratumJobMeta) String() string

func (*StratumJobMeta) XXX_DiscardUnknown

func (m *StratumJobMeta) XXX_DiscardUnknown()

func (*StratumJobMeta) XXX_Marshal

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

func (*StratumJobMeta) XXX_Merge

func (dst *StratumJobMeta) XXX_Merge(src proto.Message)

func (*StratumJobMeta) XXX_Size

func (m *StratumJobMeta) XXX_Size() int

func (*StratumJobMeta) XXX_Unmarshal

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

type StratumShare

type StratumShare struct {
	Version              string            `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	ExtraNonce1          string            `protobuf:"bytes,2,opt,name=extra_nonce1,json=extraNonce1,proto3" json:"extra_nonce1,omitempty"`
	ExtraNonce2          string            `protobuf:"bytes,3,opt,name=extra_nonce2,json=extraNonce2,proto3" json:"extra_nonce2,omitempty"`
	NTime                string            `protobuf:"bytes,4,opt,name=n_time,json=nTime,proto3" json:"n_time,omitempty"`
	NBits                string            `protobuf:"bytes,5,opt,name=n_bits,json=nBits,proto3" json:"n_bits,omitempty"`
	Nonce                string            `protobuf:"bytes,6,opt,name=nonce,proto3" json:"nonce,omitempty"`
	PrevHash             string            `protobuf:"bytes,7,opt,name=prev_hash,json=prevHash,proto3" json:"prev_hash,omitempty"`
	CoinBase1            string            `protobuf:"bytes,8,opt,name=coin_base1,json=coinBase1,proto3" json:"coin_base1,omitempty"`
	CoinBase2            string            `protobuf:"bytes,9,opt,name=coin_base2,json=coinBase2,proto3" json:"coin_base2,omitempty"`
	Meta                 *StratumShareMeta `protobuf:"bytes,10,opt,name=meta,proto3" json:"meta,omitempty"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*StratumShare) Descriptor

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

func (*StratumShare) GetCoinBase1

func (m *StratumShare) GetCoinBase1() string

func (*StratumShare) GetCoinBase2

func (m *StratumShare) GetCoinBase2() string

func (*StratumShare) GetExtraNonce1

func (m *StratumShare) GetExtraNonce1() string

func (*StratumShare) GetExtraNonce2

func (m *StratumShare) GetExtraNonce2() string

func (*StratumShare) GetMeta

func (m *StratumShare) GetMeta() *StratumShareMeta

func (*StratumShare) GetNBits

func (m *StratumShare) GetNBits() string

func (*StratumShare) GetNTime

func (m *StratumShare) GetNTime() string

func (*StratumShare) GetNonce

func (m *StratumShare) GetNonce() string

func (*StratumShare) GetPrevHash

func (m *StratumShare) GetPrevHash() string

func (*StratumShare) GetVersion

func (m *StratumShare) GetVersion() string

func (*StratumShare) ProtoMessage

func (*StratumShare) ProtoMessage()

func (*StratumShare) Reset

func (m *StratumShare) Reset()

func (*StratumShare) String

func (m *StratumShare) String() string

func (*StratumShare) XXX_DiscardUnknown

func (m *StratumShare) XXX_DiscardUnknown()

func (*StratumShare) XXX_Marshal

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

func (*StratumShare) XXX_Merge

func (dst *StratumShare) XXX_Merge(src proto.Message)

func (*StratumShare) XXX_Size

func (m *StratumShare) XXX_Size() int

func (*StratumShare) XXX_Unmarshal

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

type StratumShareMeta

type StratumShareMeta struct {
	Height               int32    `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	CurTimeTs            int32    `protobuf:"varint,2,opt,name=curTimeTs,proto3" json:"curTimeTs,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*StratumShareMeta) Descriptor

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

func (*StratumShareMeta) GetCurTimeTs

func (m *StratumShareMeta) GetCurTimeTs() int32

func (*StratumShareMeta) GetHeight

func (m *StratumShareMeta) GetHeight() int32

func (*StratumShareMeta) ProtoMessage

func (*StratumShareMeta) ProtoMessage()

func (*StratumShareMeta) Reset

func (m *StratumShareMeta) Reset()

func (*StratumShareMeta) String

func (m *StratumShareMeta) String() string

func (*StratumShareMeta) XXX_DiscardUnknown

func (m *StratumShareMeta) XXX_DiscardUnknown()

func (*StratumShareMeta) XXX_Marshal

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

func (*StratumShareMeta) XXX_Merge

func (dst *StratumShareMeta) XXX_Merge(src proto.Message)

func (*StratumShareMeta) XXX_Size

func (m *StratumShareMeta) XXX_Size() int

func (*StratumShareMeta) XXX_Unmarshal

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

type StratumShareState

type StratumShareState int32
const (
	StratumShareState_SUC_SOLVE_SHARE          StratumShareState = 0
	StratumShareState_SUC_SUBMIT_BLOCK         StratumShareState = 1
	StratumShareState_ERR_DUPLICATE_SHARE      StratumShareState = 2
	StratumShareState_ERR_LOW_DIFFICULTY_SHARE StratumShareState = 3
	StratumShareState_ERR_JOB_NOT_FOUND        StratumShareState = 4
	StratumShareState_ERR_SUBMIT_BLOCK         StratumShareState = 5
)

func (StratumShareState) EnumDescriptor

func (StratumShareState) EnumDescriptor() ([]byte, []int)

func (StratumShareState) String

func (x StratumShareState) String() string

type SubmitShareRequest

type SubmitShareRequest struct {
	RegisterId           string        `protobuf:"bytes,1,opt,name=register_id,json=registerId,proto3" json:"register_id,omitempty"`
	Share                *StratumShare `protobuf:"bytes,2,opt,name=share,proto3" json:"share,omitempty"`
	Difficulty           uint64        `protobuf:"varint,3,opt,name=difficulty,proto3" json:"difficulty,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*SubmitShareRequest) Descriptor

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

func (*SubmitShareRequest) GetDifficulty

func (m *SubmitShareRequest) GetDifficulty() uint64

func (*SubmitShareRequest) GetRegisterId

func (m *SubmitShareRequest) GetRegisterId() string

func (*SubmitShareRequest) GetShare

func (m *SubmitShareRequest) GetShare() *StratumShare

func (*SubmitShareRequest) ProtoMessage

func (*SubmitShareRequest) ProtoMessage()

func (*SubmitShareRequest) Reset

func (m *SubmitShareRequest) Reset()

func (*SubmitShareRequest) String

func (m *SubmitShareRequest) String() string

func (*SubmitShareRequest) XXX_DiscardUnknown

func (m *SubmitShareRequest) XXX_DiscardUnknown()

func (*SubmitShareRequest) XXX_Marshal

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

func (*SubmitShareRequest) XXX_Merge

func (dst *SubmitShareRequest) XXX_Merge(src proto.Message)

func (*SubmitShareRequest) XXX_Size

func (m *SubmitShareRequest) XXX_Size() int

func (*SubmitShareRequest) XXX_Unmarshal

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

type SubmitShareResponse

type SubmitShareResponse struct {
	Result               *SubmitShareResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

func (*SubmitShareResponse) Descriptor

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

func (*SubmitShareResponse) GetResult

func (m *SubmitShareResponse) GetResult() *SubmitShareResult

func (*SubmitShareResponse) ProtoMessage

func (*SubmitShareResponse) ProtoMessage()

func (*SubmitShareResponse) Reset

func (m *SubmitShareResponse) Reset()

func (*SubmitShareResponse) String

func (m *SubmitShareResponse) String() string

func (*SubmitShareResponse) XXX_DiscardUnknown

func (m *SubmitShareResponse) XXX_DiscardUnknown()

func (*SubmitShareResponse) XXX_Marshal

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

func (*SubmitShareResponse) XXX_Merge

func (dst *SubmitShareResponse) XXX_Merge(src proto.Message)

func (*SubmitShareResponse) XXX_Size

func (m *SubmitShareResponse) XXX_Size() int

func (*SubmitShareResponse) XXX_Unmarshal

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

type SubmitShareResult

type SubmitShareResult struct {
	State                StratumShareState `protobuf:"varint,1,opt,name=state,proto3,enum=proto_sphere.StratumShareState" json:"state,omitempty"`
	ComputePower         float64           `protobuf:"fixed64,2,opt,name=compute_power,json=computePower,proto3" json:"compute_power,omitempty"`
	Hash                 string            `protobuf:"bytes,3,opt,name=hash,proto3" json:"hash,omitempty"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*SubmitShareResult) Descriptor

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

func (*SubmitShareResult) GetComputePower

func (m *SubmitShareResult) GetComputePower() float64

func (*SubmitShareResult) GetHash

func (m *SubmitShareResult) GetHash() string

func (*SubmitShareResult) GetState

func (m *SubmitShareResult) GetState() StratumShareState

func (*SubmitShareResult) ProtoMessage

func (*SubmitShareResult) ProtoMessage()

func (*SubmitShareResult) Reset

func (m *SubmitShareResult) Reset()

func (*SubmitShareResult) String

func (m *SubmitShareResult) String() string

func (*SubmitShareResult) XXX_DiscardUnknown

func (m *SubmitShareResult) XXX_DiscardUnknown()

func (*SubmitShareResult) XXX_Marshal

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

func (*SubmitShareResult) XXX_Merge

func (dst *SubmitShareResult) XXX_Merge(src proto.Message)

func (*SubmitShareResult) XXX_Size

func (m *SubmitShareResult) XXX_Size() int

func (*SubmitShareResult) XXX_Unmarshal

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

type SysInfo

type SysInfo struct {
	Hostname             string   `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"`
	Pid                  int32    `protobuf:"varint,2,opt,name=pid,proto3" json:"pid,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SysInfo) Descriptor

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

func (*SysInfo) GetHostname

func (m *SysInfo) GetHostname() string

func (*SysInfo) GetPid

func (m *SysInfo) GetPid() int32

func (*SysInfo) ProtoMessage

func (*SysInfo) ProtoMessage()

func (*SysInfo) Reset

func (m *SysInfo) Reset()

func (*SysInfo) String

func (m *SysInfo) String() string

func (*SysInfo) XXX_DiscardUnknown

func (m *SysInfo) XXX_DiscardUnknown()

func (*SysInfo) XXX_Marshal

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

func (*SysInfo) XXX_Merge

func (dst *SysInfo) XXX_Merge(src proto.Message)

func (*SysInfo) XXX_Size

func (m *SysInfo) XXX_Size() int

func (*SysInfo) XXX_Unmarshal

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

type UnRegisterRequest

type UnRegisterRequest struct {
	RegisterId           string   `protobuf:"bytes,1,opt,name=register_id,json=registerId,proto3" json:"register_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UnRegisterRequest) Descriptor

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

func (*UnRegisterRequest) GetRegisterId

func (m *UnRegisterRequest) GetRegisterId() string

func (*UnRegisterRequest) ProtoMessage

func (*UnRegisterRequest) ProtoMessage()

func (*UnRegisterRequest) Reset

func (m *UnRegisterRequest) Reset()

func (*UnRegisterRequest) String

func (m *UnRegisterRequest) String() string

func (*UnRegisterRequest) XXX_DiscardUnknown

func (m *UnRegisterRequest) XXX_DiscardUnknown()

func (*UnRegisterRequest) XXX_Marshal

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

func (*UnRegisterRequest) XXX_Merge

func (dst *UnRegisterRequest) XXX_Merge(src proto.Message)

func (*UnRegisterRequest) XXX_Size

func (m *UnRegisterRequest) XXX_Size() int

func (*UnRegisterRequest) XXX_Unmarshal

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

type UnRegisterResponse

type UnRegisterResponse struct {
	Result               bool     `protobuf:"varint,2,opt,name=result,proto3" json:"result,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UnRegisterResponse) Descriptor

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

func (*UnRegisterResponse) GetResult

func (m *UnRegisterResponse) GetResult() bool

func (*UnRegisterResponse) ProtoMessage

func (*UnRegisterResponse) ProtoMessage()

func (*UnRegisterResponse) Reset

func (m *UnRegisterResponse) Reset()

func (*UnRegisterResponse) String

func (m *UnRegisterResponse) String() string

func (*UnRegisterResponse) XXX_DiscardUnknown

func (m *UnRegisterResponse) XXX_DiscardUnknown()

func (*UnRegisterResponse) XXX_Marshal

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

func (*UnRegisterResponse) XXX_Merge

func (dst *UnRegisterResponse) XXX_Merge(src proto.Message)

func (*UnRegisterResponse) XXX_Size

func (m *UnRegisterResponse) XXX_Size() int

func (*UnRegisterResponse) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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