useremitter

package
v0.0.0-...-92ca402 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	// CompetenceUpdate emits an event that intends to trigger the update of the
	// competence specific user metrics for all users that participated in the
	// given market.
	//
	//     inp[0] the claim ID of the settled balance
	//
	CompetenceUpdate(objectid.ID) error

	// IntegritiyUpdate emits an event that intends to trigger the update of the
	// integritiy specific user metrics for all users that participated in the
	// given market.
	//
	//     inp[0] the claim ID of the settled balance
	//
	IntegrityUpdate(objectid.ID) error

	// ReputationSearch emits an event that signals the lookup for privileged
	// voter addresses.
	//
	//     inp[0] the post ID of the dispute that has been expired
	//
	ReputationSearch(objectid.ID) error

	// UserCreate emits an event that signals the creation of a new user object.
	//
	//     inp[0] the user ID of the user that just registered
	//
	UserCreate(objectid.ID) error
}

type Rescue

type Rescue struct {
	// contains filtered or unexported fields
}

func NewRescue

func NewRescue(c RescueConfig) *Rescue

func (*Rescue) CompetenceUpdate

func (r *Rescue) CompetenceUpdate(bal objectid.ID) error

func (*Rescue) IntegrityUpdate

func (r *Rescue) IntegrityUpdate(bal objectid.ID) error

func (*Rescue) ReputationSearch

func (r *Rescue) ReputationSearch(dis objectid.ID) error

func (*Rescue) UserCreate

func (r *Rescue) UserCreate(use objectid.ID) error

type RescueConfig

type RescueConfig struct {
	Log logger.Interface
	Res rescue.Interface
}

Jump to

Keyboard shortcuts

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