Documentation ¶
Index ¶
- Variables
- func ACLWriterKey(ownerAddr sdk.AccAddress, topic string, writerAddr sdk.Address) []byte
- func ExportGenesis(ctx sdk.Context, k Keeper) types.GenesisState
- func InitGenesis(ctx sdk.Context, k Keeper, data types.GenesisState)
- func NewQuerier(keeper Keeper) sdk.Querier
- func OwnerKey(ownerAddr sdk.AccAddress) []byte
- func RecordKey(ownerAddr sdk.AccAddress, topic string, offset uint64) []byte
- func TopicKey(ownerAddr sdk.AccAddress, topic string) []byte
- type Keeper
- func (k Keeper) DeleteWriter(ctx sdk.Context, ownerAddr sdk.AccAddress, topic string, ...)
- func (k Keeper) GetOwner(ctx sdk.Context, ownerAddr sdk.AccAddress) types.Owner
- func (k Keeper) GetRecord(ctx sdk.Context, ownerAddr sdk.AccAddress, topic string, offset uint64) types.Record
- func (k Keeper) GetTopic(ctx sdk.Context, ownerAddr sdk.AccAddress, topicName string) types.Topic
- func (k Keeper) GetWriter(ctx sdk.Context, ownerAddr sdk.AccAddress, topic string, ...) types.Writer
- func (k Keeper) HasRecord(ctx sdk.Context, ownerAddr sdk.AccAddress, topic string, offset uint64) bool
- func (k Keeper) HasTopic(ctx sdk.Context, ownerAddr sdk.AccAddress, topicName string) bool
- func (k Keeper) HasWriter(ctx sdk.Context, ownerAddr sdk.AccAddress, topic string, ...) bool
- func (k Keeper) ListOwner(ctx sdk.Context) []sdk.AccAddress
- func (k Keeper) ListTopic(ctx sdk.Context, ownerAddr sdk.AccAddress) []string
- func (k Keeper) ListWriter(ctx sdk.Context, ownerAddr sdk.AccAddress, topic string) []sdk.AccAddress
- func (k Keeper) SetOwner(ctx sdk.Context, ownerAddr sdk.AccAddress, owner types.Owner)
- func (k Keeper) SetRecord(ctx sdk.Context, ownerAddr sdk.AccAddress, topic string, offset uint64, ...)
- func (k Keeper) SetTopic(ctx sdk.Context, ownerAddr sdk.AccAddress, topicName string, topic types.Topic)
- func (k Keeper) SetWriter(ctx sdk.Context, ownerAddr sdk.AccAddress, topic string, ...)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func ACLWriterKey ¶
func ExportGenesis ¶
func ExportGenesis(ctx sdk.Context, k Keeper) types.GenesisState
func InitGenesis ¶
func InitGenesis(ctx sdk.Context, k Keeper, data types.GenesisState)
func NewQuerier ¶
NewQuerier is the module level router for state queries
func OwnerKey ¶
func OwnerKey(ownerAddr sdk.AccAddress) []byte
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
Keeper maintains the link to data storage and exposes getter/setter methods for the various parts of the state machine
func (Keeper) DeleteWriter ¶
func (k Keeper) DeleteWriter(ctx sdk.Context, ownerAddr sdk.AccAddress, topic string, writerAddr sdk.AccAddress)
func (Keeper) GetWriter ¶
func (k Keeper) GetWriter(ctx sdk.Context, ownerAddr sdk.AccAddress, topic string, writerAddr sdk.AccAddress) types.Writer
func (Keeper) HasWriter ¶
func (k Keeper) HasWriter(ctx sdk.Context, ownerAddr sdk.AccAddress, topic string, writerAddr sdk.AccAddress) bool
func (Keeper) ListWriter ¶
func (k Keeper) ListWriter(ctx sdk.Context, ownerAddr sdk.AccAddress, topic string) []sdk.AccAddress
TODO Max Retrieve
Click to show internal directories.
Click to hide internal directories.