filters

package
v0.0.0-...-c77c525 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2023 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 `schema:"limit"`
	Offset uint64 `schema:"offset"`
}

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 Transactions

type Transactions struct {
	Height  uint64 `schema:"height"`
	Address string `schema:"address"`
	Limit   uint64 `schema:"limit"`
	Offset  uint64 `schema:"offset"`
}

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
y or Y : Canonical URL