Documentation ¶
Index ¶
Constants ¶
View Source
const ( // AppID is the unique application identifier. AppID uint8 = 0x06 // AppName is the ABCI application name. AppName string = "200_scheduler" )
Variables ¶
View Source
var ( // EventType is the ABCI event type for scheduler events. EventType = api.EventTypeForApp(AppName) // QueryApp is a query for filtering events processed by the // scheduler application. QueryApp = api.QueryForApp(AppName) )
Functions ¶
Types ¶
type Query ¶
type Query interface { Validators(context.Context) ([]*scheduler.Validator, error) AllCommittees(context.Context) ([]*scheduler.Committee, error) KindsCommittees(context.Context, []scheduler.CommitteeKind) ([]*scheduler.Committee, error) Genesis(context.Context) (*scheduler.Genesis, error) ConsensusParameters(context.Context) (*scheduler.ConsensusParameters, error) }
Query is the scheduler query interface.
type QueryFactory ¶
type QueryFactory struct {
// contains filtered or unexported fields
}
QueryFactory is the scheduler query factory.
func NewQueryFactory ¶
func NewQueryFactory(state abciAPI.ApplicationQueryState) *QueryFactory
NewQueryFactory returns a new QueryFactory backed by the given state instance.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.