Documentation ¶
Index ¶
- Constants
- type FixationStore
- func (fs *FixationStore) AppendEntry(ctx sdk.Context, index string, block uint64, entryData codec.ProtoMarshaler) error
- func (fs *FixationStore) FindEntry(ctx sdk.Context, index string, block uint64, entryData codec.ProtoMarshaler) bool
- func (fs FixationStore) GetAllEntryIndices(ctx sdk.Context) []string
- func (fs *FixationStore) GetEntry(ctx sdk.Context, index string, entryData codec.ProtoMarshaler) bool
- func (fs *FixationStore) ModifyEntry(ctx sdk.Context, index string, block uint64, entryData codec.ProtoMarshaler) error
- func (fs *FixationStore) PutEntry(ctx sdk.Context, index string, block uint64)
Constants ¶
View Source
const ( ASCII_MIN = 32 // min visible ascii ASCII_MAX = 126 // max visible ascii ASCII_DEL = 127 // ascii for DEL )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FixationStore ¶
type FixationStore struct {
// contains filtered or unexported fields
}
func NewFixationStore ¶
func NewFixationStore(storeKey sdk.StoreKey, cdc codec.BinaryCodec, prefix string) *FixationStore
NewFixationStore returns a new FixationStore object
func (*FixationStore) AppendEntry ¶
func (fs *FixationStore) AppendEntry( ctx sdk.Context, index string, block uint64, entryData codec.ProtoMarshaler, ) error
AppendEntry adds a new entry to the store
func (*FixationStore) FindEntry ¶
func (fs *FixationStore) FindEntry(ctx sdk.Context, index string, block uint64, entryData codec.ProtoMarshaler) bool
FindEntry returns the entry by index and block without changing the refcount
func (FixationStore) GetAllEntryIndices ¶
func (fs FixationStore) GetAllEntryIndices(ctx sdk.Context) []string
GetAllEntryIndex returns all Entry indices
func (*FixationStore) GetEntry ¶
func (fs *FixationStore) GetEntry(ctx sdk.Context, index string, entryData codec.ProtoMarshaler) bool
GetEntry returns the latest entry by index and increments the refcount
func (*FixationStore) ModifyEntry ¶
func (fs *FixationStore) ModifyEntry(ctx sdk.Context, index string, block uint64, entryData codec.ProtoMarshaler) error
ModifyEntry modifies an existing entry in the store
Click to show internal directories.
Click to hide internal directories.