Documentation ¶
Index ¶
- Variables
- func RegisterSphereServer(s *grpc.Server, srv SphereServer)
- type ClearShareHistoryRequest
- func (*ClearShareHistoryRequest) Descriptor() ([]byte, []int)
- func (m *ClearShareHistoryRequest) GetHeight() int32
- func (m *ClearShareHistoryRequest) GetRegisterId() string
- func (*ClearShareHistoryRequest) ProtoMessage()
- func (m *ClearShareHistoryRequest) Reset()
- func (m *ClearShareHistoryRequest) String() string
- func (m *ClearShareHistoryRequest) XXX_DiscardUnknown()
- func (m *ClearShareHistoryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ClearShareHistoryRequest) XXX_Merge(src proto.Message)
- func (m *ClearShareHistoryRequest) XXX_Size() int
- func (m *ClearShareHistoryRequest) XXX_Unmarshal(b []byte) error
- type ClearShareHistoryResponse
- func (*ClearShareHistoryResponse) Descriptor() ([]byte, []int)
- func (m *ClearShareHistoryResponse) GetResult() bool
- func (*ClearShareHistoryResponse) ProtoMessage()
- func (m *ClearShareHistoryResponse) Reset()
- func (m *ClearShareHistoryResponse) String() string
- func (m *ClearShareHistoryResponse) XXX_DiscardUnknown()
- func (m *ClearShareHistoryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ClearShareHistoryResponse) XXX_Merge(src proto.Message)
- func (m *ClearShareHistoryResponse) XXX_Size() int
- func (m *ClearShareHistoryResponse) XXX_Unmarshal(b []byte) error
- type GetLatestStratumJobRequest
- func (*GetLatestStratumJobRequest) Descriptor() ([]byte, []int)
- func (m *GetLatestStratumJobRequest) GetRegisterId() string
- func (*GetLatestStratumJobRequest) ProtoMessage()
- func (m *GetLatestStratumJobRequest) Reset()
- func (m *GetLatestStratumJobRequest) String() string
- func (m *GetLatestStratumJobRequest) XXX_DiscardUnknown()
- func (m *GetLatestStratumJobRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GetLatestStratumJobRequest) XXX_Merge(src proto.Message)
- func (m *GetLatestStratumJobRequest) XXX_Size() int
- func (m *GetLatestStratumJobRequest) XXX_Unmarshal(b []byte) error
- type GetLatestStratumJobResponse
- func (*GetLatestStratumJobResponse) Descriptor() ([]byte, []int)
- func (m *GetLatestStratumJobResponse) GetJob() *StratumJob
- func (*GetLatestStratumJobResponse) ProtoMessage()
- func (m *GetLatestStratumJobResponse) Reset()
- func (m *GetLatestStratumJobResponse) String() string
- func (m *GetLatestStratumJobResponse) XXX_DiscardUnknown()
- func (m *GetLatestStratumJobResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GetLatestStratumJobResponse) XXX_Merge(src proto.Message)
- func (m *GetLatestStratumJobResponse) XXX_Size() int
- func (m *GetLatestStratumJobResponse) XXX_Unmarshal(b []byte) error
- type RegisterRequest
- func (*RegisterRequest) Descriptor() ([]byte, []int)
- func (m *RegisterRequest) GetConfig() *StratumConfig
- func (m *RegisterRequest) GetSysInfo() *SysInfo
- func (*RegisterRequest) ProtoMessage()
- func (m *RegisterRequest) Reset()
- func (m *RegisterRequest) String() string
- func (m *RegisterRequest) XXX_DiscardUnknown()
- func (m *RegisterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *RegisterRequest) XXX_Merge(src proto.Message)
- func (m *RegisterRequest) XXX_Size() int
- func (m *RegisterRequest) XXX_Unmarshal(b []byte) error
- type RegisterResponse
- func (*RegisterResponse) Descriptor() ([]byte, []int)
- func (m *RegisterResponse) GetRegisterId() string
- func (*RegisterResponse) ProtoMessage()
- func (m *RegisterResponse) Reset()
- func (m *RegisterResponse) String() string
- func (m *RegisterResponse) XXX_DiscardUnknown()
- func (m *RegisterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *RegisterResponse) XXX_Merge(src proto.Message)
- func (m *RegisterResponse) XXX_Size() int
- func (m *RegisterResponse) XXX_Unmarshal(b []byte) error
- type SphereClient
- type SphereServer
- type Sphere_SubscribeClient
- type Sphere_SubscribeServer
- type StratumConfig
- func (*StratumConfig) Descriptor() ([]byte, []int)
- func (m *StratumConfig) GetCoinType() string
- func (m *StratumConfig) GetExtraNonce1Length() int32
- func (m *StratumConfig) GetExtraNonce2Length() int32
- func (m *StratumConfig) GetPayoutAddress() string
- func (m *StratumConfig) GetPoolTag() string
- func (m *StratumConfig) GetUsedTestNet() bool
- func (*StratumConfig) ProtoMessage()
- func (m *StratumConfig) Reset()
- func (m *StratumConfig) String() string
- func (m *StratumConfig) XXX_DiscardUnknown()
- func (m *StratumConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *StratumConfig) XXX_Merge(src proto.Message)
- func (m *StratumConfig) XXX_Size() int
- func (m *StratumConfig) XXX_Unmarshal(b []byte) error
- type StratumJob
- func (*StratumJob) Descriptor() ([]byte, []int)
- func (m *StratumJob) GetCoinBase1() string
- func (m *StratumJob) GetCoinBase2() string
- func (m *StratumJob) GetMerkleBranch() []string
- func (m *StratumJob) GetMeta() *StratumJobMeta
- func (m *StratumJob) GetNBits() string
- func (m *StratumJob) GetPrevHash() string
- func (m *StratumJob) GetVersion() string
- func (*StratumJob) ProtoMessage()
- func (m *StratumJob) Reset()
- func (m *StratumJob) String() string
- func (m *StratumJob) XXX_DiscardUnknown()
- func (m *StratumJob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *StratumJob) XXX_Merge(src proto.Message)
- func (m *StratumJob) XXX_Size() int
- func (m *StratumJob) XXX_Unmarshal(b []byte) error
- type StratumJobMeta
- func (*StratumJobMeta) Descriptor() ([]byte, []int)
- func (m *StratumJobMeta) GetCurTimeTs() int32
- func (m *StratumJobMeta) GetHeight() int32
- func (m *StratumJobMeta) GetMinTimeTs() int32
- func (*StratumJobMeta) ProtoMessage()
- func (m *StratumJobMeta) Reset()
- func (m *StratumJobMeta) String() string
- func (m *StratumJobMeta) XXX_DiscardUnknown()
- func (m *StratumJobMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *StratumJobMeta) XXX_Merge(src proto.Message)
- func (m *StratumJobMeta) XXX_Size() int
- func (m *StratumJobMeta) XXX_Unmarshal(b []byte) error
- type StratumShare
- func (*StratumShare) Descriptor() ([]byte, []int)
- func (m *StratumShare) GetCoinBase1() string
- func (m *StratumShare) GetCoinBase2() string
- func (m *StratumShare) GetExtraNonce1() string
- func (m *StratumShare) GetExtraNonce2() string
- func (m *StratumShare) GetMeta() *StratumShareMeta
- func (m *StratumShare) GetNBits() string
- func (m *StratumShare) GetNTime() string
- func (m *StratumShare) GetNonce() string
- func (m *StratumShare) GetPrevHash() string
- func (m *StratumShare) GetVersion() string
- func (*StratumShare) ProtoMessage()
- func (m *StratumShare) Reset()
- func (m *StratumShare) String() string
- func (m *StratumShare) XXX_DiscardUnknown()
- func (m *StratumShare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *StratumShare) XXX_Merge(src proto.Message)
- func (m *StratumShare) XXX_Size() int
- func (m *StratumShare) XXX_Unmarshal(b []byte) error
- type StratumShareMeta
- func (*StratumShareMeta) Descriptor() ([]byte, []int)
- func (m *StratumShareMeta) GetCurTimeTs() int32
- func (m *StratumShareMeta) GetHeight() int32
- func (*StratumShareMeta) ProtoMessage()
- func (m *StratumShareMeta) Reset()
- func (m *StratumShareMeta) String() string
- func (m *StratumShareMeta) XXX_DiscardUnknown()
- func (m *StratumShareMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *StratumShareMeta) XXX_Merge(src proto.Message)
- func (m *StratumShareMeta) XXX_Size() int
- func (m *StratumShareMeta) XXX_Unmarshal(b []byte) error
- type StratumShareState
- type SubmitShareRequest
- func (*SubmitShareRequest) Descriptor() ([]byte, []int)
- func (m *SubmitShareRequest) GetDifficulty() uint64
- func (m *SubmitShareRequest) GetRegisterId() string
- func (m *SubmitShareRequest) GetShare() *StratumShare
- func (*SubmitShareRequest) ProtoMessage()
- func (m *SubmitShareRequest) Reset()
- func (m *SubmitShareRequest) String() string
- func (m *SubmitShareRequest) XXX_DiscardUnknown()
- func (m *SubmitShareRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *SubmitShareRequest) XXX_Merge(src proto.Message)
- func (m *SubmitShareRequest) XXX_Size() int
- func (m *SubmitShareRequest) XXX_Unmarshal(b []byte) error
- type SubmitShareResponse
- func (*SubmitShareResponse) Descriptor() ([]byte, []int)
- func (m *SubmitShareResponse) GetResult() *SubmitShareResult
- func (*SubmitShareResponse) ProtoMessage()
- func (m *SubmitShareResponse) Reset()
- func (m *SubmitShareResponse) String() string
- func (m *SubmitShareResponse) XXX_DiscardUnknown()
- func (m *SubmitShareResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *SubmitShareResponse) XXX_Merge(src proto.Message)
- func (m *SubmitShareResponse) XXX_Size() int
- func (m *SubmitShareResponse) XXX_Unmarshal(b []byte) error
- type SubmitShareResult
- func (*SubmitShareResult) Descriptor() ([]byte, []int)
- func (m *SubmitShareResult) GetComputePower() float64
- func (m *SubmitShareResult) GetHash() string
- func (m *SubmitShareResult) GetState() StratumShareState
- func (*SubmitShareResult) ProtoMessage()
- func (m *SubmitShareResult) Reset()
- func (m *SubmitShareResult) String() string
- func (m *SubmitShareResult) XXX_DiscardUnknown()
- func (m *SubmitShareResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *SubmitShareResult) XXX_Merge(src proto.Message)
- func (m *SubmitShareResult) XXX_Size() int
- func (m *SubmitShareResult) XXX_Unmarshal(b []byte) error
- type SysInfo
- func (*SysInfo) Descriptor() ([]byte, []int)
- func (m *SysInfo) GetHostname() string
- func (m *SysInfo) GetPid() int32
- func (*SysInfo) ProtoMessage()
- func (m *SysInfo) Reset()
- func (m *SysInfo) String() string
- func (m *SysInfo) XXX_DiscardUnknown()
- func (m *SysInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *SysInfo) XXX_Merge(src proto.Message)
- func (m *SysInfo) XXX_Size() int
- func (m *SysInfo) XXX_Unmarshal(b []byte) error
- type UnRegisterRequest
- func (*UnRegisterRequest) Descriptor() ([]byte, []int)
- func (m *UnRegisterRequest) GetRegisterId() string
- func (*UnRegisterRequest) ProtoMessage()
- func (m *UnRegisterRequest) Reset()
- func (m *UnRegisterRequest) String() string
- func (m *UnRegisterRequest) XXX_DiscardUnknown()
- func (m *UnRegisterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *UnRegisterRequest) XXX_Merge(src proto.Message)
- func (m *UnRegisterRequest) XXX_Size() int
- func (m *UnRegisterRequest) XXX_Unmarshal(b []byte) error
- type UnRegisterResponse
- func (*UnRegisterResponse) Descriptor() ([]byte, []int)
- func (m *UnRegisterResponse) GetResult() bool
- func (*UnRegisterResponse) ProtoMessage()
- func (m *UnRegisterResponse) Reset()
- func (m *UnRegisterResponse) String() string
- func (m *UnRegisterResponse) XXX_DiscardUnknown()
- func (m *UnRegisterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *UnRegisterResponse) XXX_Merge(src proto.Message)
- func (m *UnRegisterResponse) XXX_Size() int
- func (m *UnRegisterResponse) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
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
"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 {}
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 {}
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 (m *GetLatestStratumJobResponse) GetJob() *StratumJob
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 ¶
type SphereClient interface { Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterResponse, error) GetLatestStratumJob(ctx context.Context, in *GetLatestStratumJobRequest, opts ...grpc.CallOption) (*GetLatestStratumJobResponse, error) Subscribe(ctx context.Context, in *GetLatestStratumJobRequest, opts ...grpc.CallOption) (Sphere_SubscribeClient, error) UnRegister(ctx context.Context, in *UnRegisterRequest, opts ...grpc.CallOption) (*UnRegisterResponse, error) }
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 SphereServer ¶
type SphereServer interface { Register(context.Context, *RegisterRequest) (*RegisterResponse, error) GetLatestStratumJob(context.Context, *GetLatestStratumJobRequest) (*GetLatestStratumJobResponse, error) Subscribe(*GetLatestStratumJobRequest, Sphere_SubscribeServer) error UnRegister(context.Context, *UnRegisterRequest) (*UnRegisterResponse, error) }
SphereServer is the server API for Sphere service.
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 {}
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 {}
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 ()
func (StratumShareState) EnumDescriptor ¶
func (StratumShareState) EnumDescriptor() ([]byte, []int)
func (StratumShareState) String ¶
func (x StratumShareState) String() string
type SubmitShareRequest ¶
type SubmitShareRequest struct {}
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 {}
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 {}
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) GetHostname ¶
func (*SysInfo) ProtoMessage ¶
func (*SysInfo) ProtoMessage()
func (*SysInfo) XXX_DiscardUnknown ¶
func (m *SysInfo) XXX_DiscardUnknown()
func (*SysInfo) XXX_Marshal ¶
func (*SysInfo) XXX_Unmarshal ¶
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
Click to show internal directories.
Click to hide internal directories.