Documentation ¶
Index ¶
- type Manager
- func (mam *Manager) AddMiningAgent(ctx context.Context, address common.Address) (err error)
- func (mam *Manager) GetAllMiningAgents(ctx context.Context) (res []common.Address, err error)
- func (mam *Manager) GetCurrentDistribution(ctx context.Context) (distribution map[string]uint64, err error)
- func (mam *Manager) IsMiningAgent(ctx context.Context, address common.Address) (res bool, err error)
- func (mam *Manager) ProposeDistribution(ctx context.Context, req dto.ProposeDistributionRequest) (err error)
- func (mam *Manager) RemoveMiningAgent(ctx context.Context, address common.Address) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewMiningAgentManager ¶
func NewMiningAgentManager(b *bb.Bitbon, encryptor bb.PkEncryptor) *Manager
MiningAgentManager create a new MiningAgentManager instance.
func (*Manager) AddMiningAgent ¶
func (*Manager) GetAllMiningAgents ¶
func (*Manager) GetCurrentDistribution ¶
func (*Manager) IsMiningAgent ¶
func (*Manager) ProposeDistribution ¶
Click to show internal directories.
Click to hide internal directories.