Documentation
¶
Index ¶
- Constants
- func NewQuerier(keeper Keeper) sdk.Querier
- type Keeper
- func (k Keeper) GetKeys(ctx sdk.Context, path string) types.Keys
- func (k Keeper) GetMailbox(ctx sdk.Context, peer string) types.Storage
- func (k Keeper) GetPeersIterator(ctx sdk.Context) sdk.Iterator
- func (k Keeper) GetStorage(ctx sdk.Context, path string) types.Storage
- func (k Keeper) SetMailbox(ctx sdk.Context, peer string, mailbox types.Storage)
- func (k Keeper) SetStorage(ctx sdk.Context, path string, storage types.Storage)
Constants ¶
View Source
const ( QueryMailbox = "mailbox" QueryStorage = "storage" QueryKeys = "keys" )
query endpoints supported by the swingset Querier
Variables ¶
This section is empty.
Functions ¶
func NewQuerier ¶
NewQuerier is the module level router for state queries
Types ¶
type Keeper ¶
Keeper maintains the link to data storage and exposes getter/setter methods for the various parts of the state machine
func (Keeper) GetMailbox ¶
Gets the entire mailbox struct for a peer
func (Keeper) GetPeersIterator ¶
Get an iterator over all peers in which the keys are the peers and the values are the mailbox
func (Keeper) GetStorage ¶
Gets generic storage
func (Keeper) SetMailbox ¶
Sets the entire mailbox struct for a peer
Click to show internal directories.
Click to hide internal directories.