Documentation ¶
Index ¶
- type Keeper
- func (k Keeper) GetActiveSession(ctx sdk.Context, s uint64, n hub.NodeAddress, a sdk.AccAddress) (session types.Session, found bool)
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) GetSession(ctx sdk.Context, id uint64) (session types.Session, found bool)
- func (k Keeper) GetSessions(ctx sdk.Context) (items types.Sessions)
- func (k Keeper) GetSessionsCount(ctx sdk.Context) (count uint64)
- func (k Keeper) GetSubscription(ctx sdk.Context, id uint64) (subscription.Subscription, bool)
- func (k Keeper) HasNodeForPlan(ctx sdk.Context, id uint64, address hub.NodeAddress) bool
- func (k Keeper) HasSubscriptionForAddress(ctx sdk.Context, address sdk.AccAddress, id uint64) bool
- func (k Keeper) HasSubscriptionForNode(ctx sdk.Context, address hub.NodeAddress, id uint64) bool
- func (k Keeper) InactiveDuration(ctx sdk.Context) (duration time.Duration)
- func (k Keeper) IterateSessions(ctx sdk.Context, f func(index int, item types.Session) (stop bool))
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) SetActiveSession(ctx sdk.Context, s uint64, n hub.NodeAddress, a sdk.AccAddress, id uint64)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetSession(ctx sdk.Context, session types.Session)
- func (k Keeper) SetSessionsCount(ctx sdk.Context, count uint64)
- func (k Keeper) SetSubscription(ctx sdk.Context, subscription subscription.Subscription)
- func (k Keeper) Store(ctx sdk.Context) sdk.KVStore
- func (k *Keeper) WithPlanKeeper(keeper expected.PlanKeeper)
- func (k *Keeper) WithSubscriptionKeeper(keeper expected.SubscriptionKeeper)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func (Keeper) GetActiveSession ¶
func (Keeper) GetSession ¶
func (Keeper) GetSubscription ¶
func (k Keeper) GetSubscription(ctx sdk.Context, id uint64) (subscription.Subscription, bool)
func (Keeper) HasNodeForPlan ¶
func (Keeper) HasSubscriptionForAddress ¶
func (Keeper) HasSubscriptionForNode ¶
func (Keeper) InactiveDuration ¶
func (Keeper) IterateSessions ¶
func (Keeper) SetActiveSession ¶
func (k Keeper) SetActiveSession(ctx sdk.Context, s uint64, n hub.NodeAddress, a sdk.AccAddress, id uint64)
func (Keeper) SetSubscription ¶
func (k Keeper) SetSubscription(ctx sdk.Context, subscription subscription.Subscription)
func (*Keeper) WithPlanKeeper ¶
func (k *Keeper) WithPlanKeeper(keeper expected.PlanKeeper)
func (*Keeper) WithSubscriptionKeeper ¶
func (k *Keeper) WithSubscriptionKeeper(keeper expected.SubscriptionKeeper)
Click to show internal directories.
Click to hide internal directories.