Documentation ¶
Overview ¶
Package logging implements a store that delegates everything to a nested store, logging operations as they happen.
Index ¶
- type Store
- func (s *Store) AnchorMapRef(ctx context.Context) (bs.Ref, error)
- func (s *Store) Get(ctx context.Context, ref bs.Ref) (bs.Blob, error)
- func (s *Store) ListRefs(ctx context.Context, start bs.Ref, f func(bs.Ref) error) error
- func (s *Store) Put(ctx context.Context, b bs.Blob) (bs.Ref, bool, error)
- func (s *Store) UpdateAnchorMap(ctx context.Context, f anchor.UpdateFunc) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is the type of a logging wrapper around a given bs.Store. The nested store may optionally be an anchor.Store too.
func New ¶
New produces a new Store that embeds a given bs.Store, which is optionally also an anchor.Store.
func (*Store) AnchorMapRef ¶
AnchorMapRef implements anchor.Getter. If the nested store is not an anchor.Store, this returns anchor.ErrNotAnchorStore.
func (*Store) UpdateAnchorMap ¶
UpdateAnchorMap implements anchor.Store. If the nested store is not an anchor.Store, this returns anchor.ErrNotAnchorStore.
Click to show internal directories.
Click to hide internal directories.