filters

package
Version: v0.0.0-...-16e8e7a Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2021 License: Apache-2.0 Imports: 5 Imported by: 6

Documentation

Index

Constants

View Source
const (
	AggByHour  = "hour"
	AggByDay   = "day"
	AggByWeek  = "week"
	AggByMonth = "month"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Accounts

type Accounts struct {
	LtTotalAmount decimal.Decimal
	GtTotalAmount decimal.Decimal
}

type ActiveAccounts

type ActiveAccounts struct {
	From time.Time
	To   time.Time
}

type Agg

type Agg struct {
	By   string       `schema:"by"`
	From dmodels.Time `schema:"from"`
	To   dmodels.Time `schema:"to"`
}

func (*Agg) AggFunc

func (agg *Agg) AggFunc() string

func (*Agg) BuildQuery

func (agg *Agg) BuildQuery(aggValue string, timeColumn string, table string) squirrel.SelectBuilder

func (*Agg) Validate

func (agg *Agg) Validate() error

type BalanceUpdates

type BalanceUpdates struct {
	Limit  uint64
	Offset uint64
}

type Blocks

type Blocks struct {
	Limit  uint64
	Offset uint64
}

type BlocksProposed

type BlocksProposed struct {
	Proposers []string
}

type DelegationsAgg

type DelegationsAgg struct {
	Agg
	Validators []string `schema:"validators"`
}

type Delegators

type Delegators struct {
	TimeRange
	Validators []string `schema:"validators"`
}

type HistoricalState

type HistoricalState struct {
	Limit  uint64
	Offset uint64
}

type HistoryProposals

type HistoryProposals struct {
	ID     []uint64
	Limit  uint64
	Offset uint64
}

type MissedBlocks

type MissedBlocks struct {
	Validators []string
}

type ProposalDeposits

type ProposalDeposits struct {
	ProposalID []uint64 `schema:"proposal_id"`
}

type ProposalVotes

type ProposalVotes struct {
	ProposalID uint64   `schema:"proposal_id"`
	Voters     []string `schema:"voters"`
	Limit      uint64   `schema:"limit"`
	Offset     uint64   `schema:"offset"`
}

type Proposals

type Proposals struct {
	ID     []uint64 `schema:"id"`
	Limit  uint64   `schema:"limit"`
	Offset uint64   `schema:"offset"`
}

type Stats

type Stats struct {
	Titles []string     `schema:"-"`
	To     dmodels.Time `schema:"to"`
	From   dmodels.Time `schema:"-"`
}

type TimeRange

type TimeRange struct {
	From dmodels.Time `schema:"from"`
	To   dmodels.Time `schema:"to"`
}

func (*TimeRange) Query

func (filter *TimeRange) Query(timeColumn string, q squirrel.SelectBuilder) squirrel.SelectBuilder

type ValidatorDelegators

type ValidatorDelegators struct {
	Validator string `json:"-"`
	Limit     uint64 `schema:"limit"`
	Offset    uint64 `schema:"offset"`
}

type VotingPower

type VotingPower struct {
	TimeRange
	Delegators []string
	Validators []string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL