Documentation ¶
Index ¶
- Variables
- type Broker
- type Engine
- func (e *Engine) AssignDeriveKey(ctx context.Context, party types.PartyID, derivedKey string)
- func (e *Engine) CheckDerivedKeyOwnership(party types.PartyID, derivedKey string) bool
- func (e *Engine) CheckSufficientBalanceToUpdateProfile(party types.PartyID, balance *num.Uint) error
- func (e *Engine) OnMinBalanceForUpdatePartyProfileUpdated(_ context.Context, min *num.Uint) error
- func (e *Engine) RelatedKeys(key string) (*types.PartyID, []string)
- func (e *Engine) UpdateProfile(ctx context.Context, partyID types.PartyID, cmd *commandspb.UpdatePartyProfile) error
- type SnapshottedEngine
- func (e *SnapshottedEngine) GetState(k string) ([]byte, []types.StateProvider, error)
- func (e *SnapshottedEngine) Keys() []string
- func (e *SnapshottedEngine) LoadState(_ context.Context, p *types.Payload) ([]types.StateProvider, error)
- func (e *SnapshottedEngine) Namespace() types.SnapshotNamespace
- func (e *SnapshottedEngine) StopSnapshots()
- func (e *SnapshottedEngine) Stopped() bool
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrAliasIsReserved = errors.New("this alias is reserved") ReservedPartyAliases = []string{"network"} )
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
func (*Engine) AssignDeriveKey ¶ added in v0.77.0
func (*Engine) CheckDerivedKeyOwnership ¶ added in v0.77.0
func (*Engine) CheckSufficientBalanceToUpdateProfile ¶
func (*Engine) OnMinBalanceForUpdatePartyProfileUpdated ¶
func (*Engine) RelatedKeys ¶ added in v0.77.0
RelatedKeys returns all keys related to the specified key. If a derived key is provided, it returns all other derived keys and the party key. If a party key is provided, it returns all derived keys and the party key itself. The keys will be in an indeterminate order.
func (*Engine) UpdateProfile ¶
func (e *Engine) UpdateProfile(ctx context.Context, partyID types.PartyID, cmd *commandspb.UpdatePartyProfile) error
type SnapshottedEngine ¶
type SnapshottedEngine struct { *Engine // contains filtered or unexported fields }
func NewSnapshottedEngine ¶
func NewSnapshottedEngine(broker Broker) *SnapshottedEngine
func (*SnapshottedEngine) GetState ¶
func (e *SnapshottedEngine) GetState(k string) ([]byte, []types.StateProvider, error)
func (*SnapshottedEngine) Keys ¶
func (e *SnapshottedEngine) Keys() []string
func (*SnapshottedEngine) LoadState ¶
func (e *SnapshottedEngine) LoadState(_ context.Context, p *types.Payload) ([]types.StateProvider, error)
func (*SnapshottedEngine) Namespace ¶
func (e *SnapshottedEngine) Namespace() types.SnapshotNamespace
func (*SnapshottedEngine) StopSnapshots ¶
func (e *SnapshottedEngine) StopSnapshots()
func (*SnapshottedEngine) Stopped ¶
func (e *SnapshottedEngine) Stopped() bool
Click to show internal directories.
Click to hide internal directories.