accounts

package
v1.68.2 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: BSD-3-Clause Imports: 10 Imported by: 4

Documentation

Overview

Package accounts 实现了挖矿监控账户相关的功能

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SyncBlock

func SyncBlock(host string)

SyncBlock 同步区块

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) Descriptor() ([]byte, []int)

func (*Account) GetAddr

func (m *Account) GetAddr() string

func (*Account) GetBalance

func (m *Account) GetBalance() string

func (*Account) GetFrozen

func (m *Account) GetFrozen() string

func (*Account) ProtoMessage

func (*Account) ProtoMessage()

func (*Account) Reset

func (m *Account) Reset()

func (*Account) String

func (m *Account) String() string

func (*Account) XXX_DiscardUnknown added in v1.65.3

func (m *Account) XXX_DiscardUnknown()

func (*Account) XXX_Marshal added in v1.65.3

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

func (*Account) XXX_Merge added in v1.65.3

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

func (*Account) XXX_Size added in v1.65.3

func (m *Account) XXX_Size() int

func (*Account) XXX_Unmarshal added in v1.65.3

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

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) Descriptor() ([]byte, []int)

func (*Accounts) GetAccounts

func (m *Accounts) GetAccounts() []*Account

func (*Accounts) ProtoMessage

func (*Accounts) ProtoMessage()

func (*Accounts) Reset

func (m *Accounts) Reset()

func (*Accounts) String

func (m *Accounts) String() string

func (*Accounts) XXX_DiscardUnknown added in v1.65.3

func (m *Accounts) XXX_DiscardUnknown()

func (*Accounts) XXX_Marshal added in v1.65.3

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

func (*Accounts) XXX_Merge added in v1.65.3

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

func (*Accounts) XXX_Size added in v1.65.3

func (m *Accounts) XXX_Size() int

func (*Accounts) XXX_Unmarshal added in v1.65.3

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

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"`
	Chain33Host          string   `protobuf:"bytes,5,opt,name=chain33host,proto3" json:"chain33host,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) Descriptor() ([]byte, []int)

func (*Config) GetChain33Host

func (m *Config) GetChain33Host() string

func (*Config) GetCoinPrecision added in v1.65.3

func (m *Config) GetCoinPrecision() int64

func (*Config) GetDataDir

func (m *Config) GetDataDir() string

func (*Config) GetJrpcBindAddr

func (m *Config) GetJrpcBindAddr() string

func (*Config) GetMinerAddr

func (m *Config) GetMinerAddr() []string

func (*Config) GetWhitelist

func (m *Config) GetWhitelist() []string

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) Reset

func (m *Config) Reset()

func (*Config) String

func (m *Config) String() string

func (*Config) XXX_DiscardUnknown added in v1.65.3

func (m *Config) XXX_DiscardUnknown()

func (*Config) XXX_Marshal added in v1.65.3

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

func (*Config) XXX_Merge added in v1.65.3

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

func (*Config) XXX_Size added in v1.65.3

func (m *Config) XXX_Size() int

func (*Config) XXX_Unmarshal added in v1.65.3

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

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 added in v1.65.3

func (m *MinerAccount) XXX_DiscardUnknown()

func (*MinerAccount) XXX_Marshal added in v1.65.3

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

func (*MinerAccount) XXX_Merge added in v1.65.3

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

func (*MinerAccount) XXX_Size added in v1.65.3

func (m *MinerAccount) XXX_Size() int

func (*MinerAccount) XXX_Unmarshal added in v1.65.3

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 added in v1.65.3

func (m *MinerAccounts) XXX_DiscardUnknown()

func (*MinerAccounts) XXX_Marshal added in v1.65.3

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

func (*MinerAccounts) XXX_Merge added in v1.65.3

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

func (*MinerAccounts) XXX_Size added in v1.65.3

func (m *MinerAccounts) XXX_Size() int

func (*MinerAccounts) XXX_Unmarshal added in v1.65.3

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

type ShowMinerAccount

type ShowMinerAccount struct {
	DataDir       string
	Addrs         []string
	CoinPrecision int64
}

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

type TimeAt

type TimeAt struct {
	// YYYY-mm-dd-HH
	TimeAt string   `json:"timeAt,omitempty"`
	Addrs  []string `json:"addrs,omitempty"`
}

TimeAt time

Jump to

Keyboard shortcuts

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