Documentation ¶
Overview ¶
Package accounts 实现了挖矿监控账户相关的功能
Index ¶
- func SyncBlock(host string)
- type Account
- func (*Account) Descriptor() ([]byte, []int)
- func (m *Account) GetAddr() string
- func (m *Account) GetBalance() string
- func (m *Account) GetFrozen() string
- func (*Account) ProtoMessage()
- func (m *Account) Reset()
- func (m *Account) String() string
- func (m *Account) XXX_DiscardUnknown()
- func (m *Account) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Account) XXX_Merge(src proto.Message)
- func (m *Account) XXX_Size() int
- func (m *Account) XXX_Unmarshal(b []byte) error
- type Accounts
- func (*Accounts) Descriptor() ([]byte, []int)
- func (m *Accounts) GetAccounts() []*Account
- func (*Accounts) ProtoMessage()
- func (m *Accounts) Reset()
- func (m *Accounts) String() string
- func (m *Accounts) XXX_DiscardUnknown()
- func (m *Accounts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Accounts) XXX_Merge(src proto.Message)
- func (m *Accounts) XXX_Size() int
- func (m *Accounts) XXX_Unmarshal(b []byte) error
- type Config
- func (*Config) Descriptor() ([]byte, []int)
- func (m *Config) GetChainHost() string
- func (m *Config) GetCoinPrecision() int64
- func (m *Config) GetDataDir() string
- func (m *Config) GetJrpcBindAddr() string
- func (m *Config) GetMinerAddr() []string
- func (m *Config) GetWhitelist() []string
- func (*Config) ProtoMessage()
- func (m *Config) Reset()
- func (m *Config) String() string
- func (m *Config) XXX_DiscardUnknown()
- func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Config) XXX_Merge(src proto.Message)
- func (m *Config) XXX_Size() int
- func (m *Config) XXX_Unmarshal(b []byte) error
- type MinerAccount
- func (*MinerAccount) Descriptor() ([]byte, []int)
- func (m *MinerAccount) GetAddr() string
- func (m *MinerAccount) GetExpectIncrease() string
- func (m *MinerAccount) GetExpectMinerBlocks() string
- func (m *MinerAccount) GetFrozen() string
- func (m *MinerAccount) GetIncrease() string
- func (m *MinerAccount) GetMinerBtyDuring() string
- func (m *MinerAccount) GetTotal() string
- func (*MinerAccount) ProtoMessage()
- func (m *MinerAccount) Reset()
- func (m *MinerAccount) String() string
- func (m *MinerAccount) XXX_DiscardUnknown()
- func (m *MinerAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MinerAccount) XXX_Merge(src proto.Message)
- func (m *MinerAccount) XXX_Size() int
- func (m *MinerAccount) XXX_Unmarshal(b []byte) error
- type MinerAccounts
- func (*MinerAccounts) Descriptor() ([]byte, []int)
- func (m *MinerAccounts) GetBlocks() int64
- func (m *MinerAccounts) GetExpectBlocks() int64
- func (m *MinerAccounts) GetExpectTotalIncrease() string
- func (m *MinerAccounts) GetMinerAccounts() []*MinerAccount
- func (m *MinerAccounts) GetSeconds() int64
- func (m *MinerAccounts) GetTotalIncrease() string
- func (*MinerAccounts) ProtoMessage()
- func (m *MinerAccounts) Reset()
- func (m *MinerAccounts) String() string
- func (m *MinerAccounts) XXX_DiscardUnknown()
- func (m *MinerAccounts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MinerAccounts) XXX_Merge(src proto.Message)
- func (m *MinerAccounts) XXX_Size() int
- func (m *MinerAccounts) XXX_Unmarshal(b []byte) error
- type ShowMinerAccount
- type TimeAt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Account ¶
type Account struct { Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` Frozen string `protobuf:"bytes,2,opt,name=frozen,proto3" json:"frozen,omitempty"` Balance string `protobuf:"bytes,3,opt,name=balance,proto3" json:"balance,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Account) Descriptor ¶
func (*Account) GetBalance ¶
func (*Account) ProtoMessage ¶
func (*Account) ProtoMessage()
func (*Account) XXX_DiscardUnknown ¶
func (m *Account) XXX_DiscardUnknown()
func (*Account) XXX_Marshal ¶
func (*Account) XXX_Unmarshal ¶
type Accounts ¶
type Accounts struct { Accounts []*Account `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Accounts) Descriptor ¶
func (*Accounts) GetAccounts ¶
func (*Accounts) ProtoMessage ¶
func (*Accounts) ProtoMessage()
func (*Accounts) XXX_DiscardUnknown ¶
func (m *Accounts) XXX_DiscardUnknown()
func (*Accounts) XXX_Marshal ¶
func (*Accounts) XXX_Unmarshal ¶
type Config ¶
type Config struct { Whitelist []string `protobuf:"bytes,1,rep,name=whitelist,proto3" json:"whitelist,omitempty"` JrpcBindAddr string `protobuf:"bytes,2,opt,name=jrpcBindAddr,proto3" json:"jrpcBindAddr,omitempty"` DataDir string `protobuf:"bytes,3,opt,name=dataDir,proto3" json:"dataDir,omitempty"` MinerAddr []string `protobuf:"bytes,4,rep,name=minerAddr,proto3" json:"minerAddr,omitempty"` ChainHost string `protobuf:"bytes,5,opt,name=chainhost,proto3" json:"chainhost,omitempty"` CoinPrecision int64 `protobuf:"varint,6,opt,name=coinPrecision,proto3" json:"coinPrecision,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Config) Descriptor ¶
func (*Config) GetChainHost ¶
func (*Config) GetCoinPrecision ¶
func (*Config) GetDataDir ¶
func (*Config) GetJrpcBindAddr ¶
func (*Config) GetMinerAddr ¶
func (*Config) GetWhitelist ¶
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) XXX_DiscardUnknown ¶
func (m *Config) XXX_DiscardUnknown()
func (*Config) XXX_Marshal ¶
func (*Config) XXX_Unmarshal ¶
type MinerAccount ¶
type MinerAccount struct { Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` Total string `protobuf:"bytes,2,opt,name=total,proto3" json:"total,omitempty"` Increase string `protobuf:"bytes,3,opt,name=increase,proto3" json:"increase,omitempty"` Frozen string `protobuf:"bytes,4,opt,name=frozen,proto3" json:"frozen,omitempty"` ExpectIncrease string `protobuf:"bytes,5,opt,name=expectIncrease,proto3" json:"expectIncrease,omitempty"` MinerBtyDuring string `protobuf:"bytes,6,opt,name=minerBtyDuring,proto3" json:"minerBtyDuring,omitempty"` ExpectMinerBlocks string `protobuf:"bytes,7,opt,name=expectMinerBlocks,proto3" json:"expectMinerBlocks,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MinerAccount) Descriptor ¶
func (*MinerAccount) Descriptor() ([]byte, []int)
func (*MinerAccount) GetAddr ¶
func (m *MinerAccount) GetAddr() string
func (*MinerAccount) GetExpectIncrease ¶
func (m *MinerAccount) GetExpectIncrease() string
func (*MinerAccount) GetExpectMinerBlocks ¶
func (m *MinerAccount) GetExpectMinerBlocks() string
func (*MinerAccount) GetFrozen ¶
func (m *MinerAccount) GetFrozen() string
func (*MinerAccount) GetIncrease ¶
func (m *MinerAccount) GetIncrease() string
func (*MinerAccount) GetMinerBtyDuring ¶
func (m *MinerAccount) GetMinerBtyDuring() string
func (*MinerAccount) GetTotal ¶
func (m *MinerAccount) GetTotal() string
func (*MinerAccount) ProtoMessage ¶
func (*MinerAccount) ProtoMessage()
func (*MinerAccount) Reset ¶
func (m *MinerAccount) Reset()
func (*MinerAccount) String ¶
func (m *MinerAccount) String() string
func (*MinerAccount) XXX_DiscardUnknown ¶
func (m *MinerAccount) XXX_DiscardUnknown()
func (*MinerAccount) XXX_Marshal ¶
func (m *MinerAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MinerAccount) XXX_Merge ¶
func (m *MinerAccount) XXX_Merge(src proto.Message)
func (*MinerAccount) XXX_Size ¶
func (m *MinerAccount) XXX_Size() int
func (*MinerAccount) XXX_Unmarshal ¶
func (m *MinerAccount) XXX_Unmarshal(b []byte) error
type MinerAccounts ¶
type MinerAccounts struct { MinerAccounts []*MinerAccount `protobuf:"bytes,1,rep,name=minerAccounts,proto3" json:"minerAccounts,omitempty"` Seconds int64 `protobuf:"varint,2,opt,name=seconds,proto3" json:"seconds,omitempty"` TotalIncrease string `protobuf:"bytes,3,opt,name=totalIncrease,proto3" json:"totalIncrease,omitempty"` Blocks int64 `protobuf:"varint,4,opt,name=blocks,proto3" json:"blocks,omitempty"` ExpectBlocks int64 `protobuf:"varint,5,opt,name=expectBlocks,proto3" json:"expectBlocks,omitempty"` ExpectTotalIncrease string `protobuf:"bytes,6,opt,name=expectTotalIncrease,proto3" json:"expectTotalIncrease,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MinerAccounts) Descriptor ¶
func (*MinerAccounts) Descriptor() ([]byte, []int)
func (*MinerAccounts) GetBlocks ¶
func (m *MinerAccounts) GetBlocks() int64
func (*MinerAccounts) GetExpectBlocks ¶
func (m *MinerAccounts) GetExpectBlocks() int64
func (*MinerAccounts) GetExpectTotalIncrease ¶
func (m *MinerAccounts) GetExpectTotalIncrease() string
func (*MinerAccounts) GetMinerAccounts ¶
func (m *MinerAccounts) GetMinerAccounts() []*MinerAccount
func (*MinerAccounts) GetSeconds ¶
func (m *MinerAccounts) GetSeconds() int64
func (*MinerAccounts) GetTotalIncrease ¶
func (m *MinerAccounts) GetTotalIncrease() string
func (*MinerAccounts) ProtoMessage ¶
func (*MinerAccounts) ProtoMessage()
func (*MinerAccounts) Reset ¶
func (m *MinerAccounts) Reset()
func (*MinerAccounts) String ¶
func (m *MinerAccounts) String() string
func (*MinerAccounts) XXX_DiscardUnknown ¶
func (m *MinerAccounts) XXX_DiscardUnknown()
func (*MinerAccounts) XXX_Marshal ¶
func (m *MinerAccounts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MinerAccounts) XXX_Merge ¶
func (m *MinerAccounts) XXX_Merge(src proto.Message)
func (*MinerAccounts) XXX_Size ¶
func (m *MinerAccounts) XXX_Size() int
func (*MinerAccounts) XXX_Unmarshal ¶
func (m *MinerAccounts) XXX_Unmarshal(b []byte) error
type ShowMinerAccount ¶
ShowMinerAccount 挖矿账户
func (*ShowMinerAccount) Echo ¶
func (*ShowMinerAccount) Echo(in *string, out *interface{}) error
Echo 打印
func (*ShowMinerAccount) Get ¶
func (show *ShowMinerAccount) Get(in *TimeAt, out *interface{}) error
Get get
Click to show internal directories.
Click to hide internal directories.