Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CtxStore ¶
type CtxStore interface {
TxStore
WithReadTx(fn func(TxReadStore) error) error
WithWriteTx(fn func(TxWriteStore) error) error
WithTx(fn func(TxStore) error) error
}
CtxStore is a context-aware blob store
type TxReadStore ¶
type TxReadStore interface {
RIDs() ([]resource.RID, error)
GetCharacterCard(rid resource.RID, version timestamp.Nano) (*png.CharacterCard, error)
GetRawCard(rid resource.RID, version timestamp.Nano) (*png.RawCard, error)
GetRawCardBytes(rid resource.RID, version timestamp.Nano) ([]byte, error)
GetSheet(rid resource.RID, version timestamp.Nano) (*character.Sheet, error)
GetSheetBytes(rid resource.RID, version timestamp.Nano) ([]byte, error)
Thumbnail(rid resource.RID) (image.Image, error)
ThumbnailBytes(rid resource.RID) ([]byte, error)
Versions(rid resource.RID) []timestamp.Nano
VersionExists(rid resource.RID, version timestamp.Nano) (bool, error)
}
TxReadStore provides read operations for blobs
type TxStore ¶
type TxStore interface {
TxReadStore
TxWriteStore
Put(rid resource.RID, version timestamp.Nano, characterCard *png.CharacterCard) error
}
TxStore combines read and write operations with Put
Click to show internal directories.
Click to hide internal directories.