inmemory

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChildrenOperation

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

func NewInMemChildrenOperation

func NewInMemChildrenOperation(m *sync.Map, path string) ChildrenOperation

func (ChildrenOperation) Run

func (o ChildrenOperation) Run() ([]string, error)

func (ChildrenOperation) Watch

func (ChildrenOperation) WithLock

type CoordClient

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

func NewInMemCoordClient

func NewInMemCoordClient() *CoordClient

func (*CoordClient) Children

func (*CoordClient) Close

func (c *CoordClient) Close()

func (*CoordClient) Connect

func (c *CoordClient) Connect() error

func (*CoordClient) Create

func (c *CoordClient) Create(path string, value []byte) coordinating.CreateOperation

func (*CoordClient) Delete

func (c *CoordClient) Delete(paths []string) coordinating.DeleteOperation

func (*CoordClient) Exists

func (*CoordClient) Get

func (*CoordClient) IsClosed

func (c *CoordClient) IsClosed() bool

func (*CoordClient) Lock

func (*CoordClient) OptimisticUpdate

func (c *CoordClient) OptimisticUpdate(path string, update func([]byte) []byte) coordinating.OptimisticUpdateOperation

func (*CoordClient) Set

func (c *CoordClient) Set(path string, value []byte) coordinating.SetOperation

type CreateOperation

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

func NewInMemCreateOperation

func NewInMemCreateOperation(m *sync.Map, path string, value []byte) CreateOperation

func (CreateOperation) AsEphemeral

func (CreateOperation) AsSequential

func (o CreateOperation) AsSequential() coordinating.CreateOperation

func (CreateOperation) OnEvent

func (CreateOperation) Run

func (o CreateOperation) Run() error

func (CreateOperation) WithLock

type DeleteOperation

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

func NewInMemDeleteOperation

func NewInMemDeleteOperation(m *sync.Map, paths []string) DeleteOperation

func (DeleteOperation) IgnoreError

func (DeleteOperation) Run

func (o DeleteOperation) Run() error

func (DeleteOperation) WithLock

type ExistsOperation

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

func NewInMemExistsOperation

func NewInMemExistsOperation(m *sync.Map, path string) ExistsOperation

func (ExistsOperation) Run

func (o ExistsOperation) Run() (bool, error)

func (ExistsOperation) Watch

func (ExistsOperation) WithLock

type GetOperation

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

func NewInMemGetOperation

func NewInMemGetOperation(m *sync.Map, path string) GetOperation

func (GetOperation) Run

func (o GetOperation) Run() ([]byte, error)

func (GetOperation) Watch

func (GetOperation) WithLock

type LockOperation

type LockOperation struct {
}

func NewInMemLockOperation

func NewInMemLockOperation() LockOperation

func (LockOperation) Lock

func (o LockOperation) Lock() error

func (LockOperation) Unlock

func (o LockOperation) Unlock() error

type OptimisticUpdateOperation

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

func NewInMemOptimisticUpdateOperation

func NewInMemOptimisticUpdateOperation(m *sync.Map, path string, update func([]byte) []byte) OptimisticUpdateOperation

func (OptimisticUpdateOperation) Run

type SetOperation

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

func NewInMemSetOperation

func NewInMemSetOperation(m *sync.Map, path string, value []byte) SetOperation

func (SetOperation) Run

func (o SetOperation) Run() error

func (SetOperation) WithLock

Jump to

Keyboard shortcuts

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