Documentation ¶
Index ¶
- type Consumer
- type DaoProvider
- type DelegationDetails
- type Delegations
- type History
- type Proposal
- type Publisher
- type Repo
- func (r *Repo) CallInTx(cb func(tx *gorm.DB) error) error
- func (r *Repo) CreateHistory(tx *gorm.DB, dd History) error
- func (r *Repo) CreateSummary(sm Summary) error
- func (r *Repo) FindDelegator(daoID, author string) (*Summary, error)
- func (r *Repo) GetSummaryBlockTimestamp(tx *gorm.DB, addressFrom, daoID string) (int, error)
- func (r *Repo) RemoveSummary(tx *gorm.DB, addressFrom, daoID string) error
- func (r *Repo) UpdateSummaryExpiration(tx *gorm.DB, addressFrom, daoID string, expiration, blockTimestamp int) error
- type Service
- type Summary
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Consumer ¶
type Consumer struct {
// contains filtered or unexported fields
}
func NewConsumer ¶
type DelegationDetails ¶
type Delegations ¶
type Delegations struct { Details []DelegationDetails Expiration int }
type History ¶
type History struct { Action string AddressFrom string OriginalSpaceID string ChainID string BlockNumber int BlockTimestamp int Delegations Delegations `gorm:"-"` Payload json.RawMessage }
History storing delegate actions history
type Repo ¶
type Repo struct {
// contains filtered or unexported fields
}
func (*Repo) CreateHistory ¶
CreateHistory creates one history info
func (*Repo) CreateSummary ¶
CreateSummary creates one summary info
func (*Repo) FindDelegator ¶ added in v0.2.4
func (*Repo) GetSummaryBlockTimestamp ¶
func (*Repo) RemoveSummary ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(repo *Repo, dp DaoProvider, p Publisher) *Service
Click to show internal directories.
Click to hide internal directories.