Documentation ¶
Index ¶
- Constants
- func NewQuerier(keeper Keeper) sdk.Querier
- type Keeper
- func (k Keeper) GetHeartbeat(ctx sdk.Context, nodeid string) time.Time
- func (k Keeper) GetMember(ctx sdk.Context, nodeid string) (types.Member, error)
- func (k Keeper) GetMembersIterator(ctx sdk.Context) sdk.Iterator
- func (k Keeper) GetOwner(ctx sdk.Context, nodeid string) sdk.AccAddress
- func (k Keeper) HasOwner(ctx sdk.Context, nodeid string) bool
- func (k Keeper) IsNodePresent(ctx sdk.Context, nodeid string) bool
- func (k Keeper) RemoveMember(ctx sdk.Context, nodeid string)
- func (k Keeper) SetHeartbeat(ctx sdk.Context, nodeid string, heartbeat time.Time)
- func (k Keeper) SetMember(ctx sdk.Context, nodeid string, member types.Member)
- func (k Keeper) SetOwner(ctx sdk.Context, nodeid string, owner sdk.AccAddress)
Constants ¶
View Source
const ( QueryMember = "member" QueryNodeIDs = "nodeids" )
query endpoints supported by the nameservice Querier
Variables ¶
This section is empty.
Functions ¶
func NewQuerier ¶
NewQuerier is the module level router for state queries
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
Keeper maintains the link to storage and exposes getter/setter methods for the various parts of the state machine
func (Keeper) GetHeartbeat ¶
GetHeartbeat - get the current owner of a name
func (Keeper) GetMembersIterator ¶
Get an iterator over all names in which the keys are the nodeids and the values are the Members
func (Keeper) IsNodePresent ¶
Check if the node id is present in the store or not
func (Keeper) RemoveMember ¶
Deletes the entire Member metadata struct for a name
func (Keeper) SetHeartbeat ¶
SetHeartbeat - sets the current owner of a name
Click to show internal directories.
Click to hide internal directories.