Documentation ¶
Index ¶
- Constants
- Variables
- func BeginBlocker(ctx sdk.Context, keeper Keeper)
- func GetChannelKey(channelID uint64) []byte
- func GetSubscriptionKey(subscriber sdk.AccAddress, channel uint64) []byte
- func InitGenesis(ctx sdk.Context, keeper Keeper, data GenesisState)
- func NewHandler(k Keeper) sdk.Handler
- func NewQuerier(k Keeper, cdc *codec.Codec) sdk.Querier
- type GenesisState
- type Keeper
- func (k Keeper) GetChannel(ctx sdk.Context, channelID uint64) types.Channel
- func (k Keeper) GetSubscription(ctx sdk.Context, subscriber sdk.AccAddress, channelID uint64) types.Subscription
- func (k Keeper) HasChannel(ctx sdk.Context, channelID uint64) bool
- func (k Keeper) HasSubscription(ctx sdk.Context, subscriber sdk.AccAddress, channelID uint64) bool
- func (k Keeper) IterateChannels(ctx sdk.Context, fn func(index int64, ch types.Channel) (stop bool))
- func (k Keeper) IterateSubscriptions(ctx sdk.Context, fn func(index int64, sub types.Subscription) (stop bool))
- func (k Keeper) SetChannel(ctx sdk.Context, channel types.Channel)
- func (k *Keeper) SetPaymentHooks(hooks PaymentHooks)
- func (k Keeper) SetSubscription(ctx sdk.Context, sub types.Subscription)
- type PaymentHook
- type PaymentHooks
- type QuerySubscriptionParams
Constants ¶
View Source
const (
QuerySubscription = "subscription"
)
Variables ¶
View Source
var ( ModuleName = types.ModuleName StoreKey = types.StoreKey RouterKey = types.RouterKey QuerierRoute = types.QuerierRoute RegisterCodec = types.RegisterCodec )
View Source
var ( ChannelKey = []byte{0x00} SubscriptionKey = []byte{0x10} )
Functions ¶
func BeginBlocker ¶
func GetChannelKey ¶
func GetSubscriptionKey ¶
func GetSubscriptionKey(subscriber sdk.AccAddress, channel uint64) []byte
func InitGenesis ¶
func InitGenesis(ctx sdk.Context, keeper Keeper, data GenesisState)
func NewHandler ¶
Types ¶
type GenesisState ¶
func DefaultGenesisState ¶
func DefaultGenesisState() GenesisState
func ExportGenesis ¶
func ExportGenesis(ctx sdk.Context, keeper Keeper) GenesisState
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func (Keeper) GetChannel ¶
func (Keeper) GetSubscription ¶
func (k Keeper) GetSubscription(ctx sdk.Context, subscriber sdk.AccAddress, channelID uint64) types.Subscription
func (Keeper) HasSubscription ¶
func (Keeper) IterateChannels ¶
func (Keeper) IterateSubscriptions ¶
func (*Keeper) SetPaymentHooks ¶
func (k *Keeper) SetPaymentHooks(hooks PaymentHooks)
func (Keeper) SetSubscription ¶
func (k Keeper) SetSubscription(ctx sdk.Context, sub types.Subscription)
type PaymentHook ¶
type PaymentHooks ¶
type PaymentHooks []PaymentHook
type QuerySubscriptionParams ¶
type QuerySubscriptionParams struct { Subscriber sdk.AccAddress `json:"subscriber"` ChannelID uint64 `json:"channel_id"` }
Click to show internal directories.
Click to hide internal directories.