Documentation
¶
Index ¶
- func Read(s ReadOnlyStore, decoder Decoder, options ...store.ReaderOption) (store.Version, error)
- func ReadLatest(s ReadOnlyStore, decoder Decoder) (store.Version, error)
- func Write(s WriteOnlyStore, encoder Encoder, options ...store.WriterOption) error
- type Decoder
- type Encoder
- type ReadOnlyStore
- type WriteOnlyStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Read ¶
func Read(s ReadOnlyStore, decoder Decoder, options ...store.ReaderOption) (store.Version, error)
func ReadLatest ¶
func ReadLatest(s ReadOnlyStore, decoder Decoder) (store.Version, error)
ReadLatest reads latest version or fallback to previous one when decoder returned error
func Write ¶
func Write(s WriteOnlyStore, encoder Encoder, options ...store.WriterOption) error
Types ¶
type ReadOnlyStore ¶
type WriteOnlyStore ¶
type WriteOnlyStore interface {
Writer(...store.WriterOption) (store.Writer, error)
}
Click to show internal directories.
Click to hide internal directories.