store_memory_yaml

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 23, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStore

func NewStore(yamlstore eosc.IStore) (eosc.IStore, error)

func Register

func Register()

Types

type Factory

type Factory struct {
}

func (*Factory) Create

func (f *Factory) Create(params map[string]string) (eosc.IStore, error)

type Store

type Store struct {
	// contains filtered or unexported fields
}

func (*Store) AddListen

func (s *Store) AddListen(h eosc.IStoreEventHandler) error

func (*Store) All

func (s *Store) All() []eosc.StoreValue

func (*Store) Del

func (s *Store) Del(id string) error

func (*Store) Get

func (s *Store) Get(id string) (eosc.StoreValue, bool)

func (*Store) GetListener

func (s *Store) GetListener() eosc.IStoreListener

func (*Store) Initialization

func (s *Store) Initialization() error

func (*Store) ReadLock

func (s *Store) ReadLock(ctx context.Context) (bool, error)

func (*Store) ReadOnly

func (s *Store) ReadOnly() bool

func (*Store) ReadUnLock

func (s *Store) ReadUnLock() error

func (*Store) Set

func (s *Store) Set(v eosc.StoreValue) error

func (*Store) TryLock

func (s *Store) TryLock(ctx context.Context, expire int) (bool, error)

func (*Store) UnLock

func (s *Store) UnLock() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL