store

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package store is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DAGResultStore

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

func NewDAGResultStore

func NewDAGResultStore() *DAGResultStore

func (*DAGResultStore) ClearJobSnapshot

func (s *DAGResultStore) ClearJobSnapshot(job workerpool.Job)

func (*DAGResultStore) Get

func (s *DAGResultStore) Get(key string) (any, bool)

func (*DAGResultStore) GetSnapshotInProgress

func (s *DAGResultStore) GetSnapshotInProgress() map[string]*Snapshot

func (*DAGResultStore) Set

func (s *DAGResultStore) Set(key string, value any)

func (*DAGResultStore) SetJobSnapshot

func (s *DAGResultStore) SetJobSnapshot(job workerpool.Job, id int)

type MockStore

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

MockStore is a mock of Store interface.

func NewMockStore

func NewMockStore(ctrl *gomock.Controller) *MockStore

NewMockStore creates a new mock instance.

func (*MockStore) ClearJobSnapshot

func (m *MockStore) ClearJobSnapshot(arg0 workerpool.Job)

ClearJobSnapshot mocks base method.

func (*MockStore) EXPECT

func (m *MockStore) EXPECT() *MockStoreMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockStore) Get

func (m *MockStore) Get(key string) (any, bool)

Get mocks base method.

func (*MockStore) GetSnapshotInProgress

func (m *MockStore) GetSnapshotInProgress() map[string]*Snapshot

GetSnapshotInProgress mocks base method.

func (*MockStore) Set

func (m *MockStore) Set(key string, value any)

Set mocks base method.

func (*MockStore) SetJobSnapshot

func (m *MockStore) SetJobSnapshot(arg0 workerpool.Job, arg1 int)

SetJobSnapshot mocks base method.

type MockStoreMockRecorder

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

MockStoreMockRecorder is the mock recorder for MockStore.

func (*MockStoreMockRecorder) ClearJobSnapshot

func (mr *MockStoreMockRecorder) ClearJobSnapshot(arg0 any) *gomock.Call

ClearJobSnapshot indicates an expected call of ClearJobSnapshot.

func (*MockStoreMockRecorder) Get

func (mr *MockStoreMockRecorder) Get(key any) *gomock.Call

Get indicates an expected call of Get.

func (*MockStoreMockRecorder) GetSnapshotInProgress

func (mr *MockStoreMockRecorder) GetSnapshotInProgress() *gomock.Call

GetSnapshotInProgress indicates an expected call of GetSnapshotInProgress.

func (*MockStoreMockRecorder) Set

func (mr *MockStoreMockRecorder) Set(key, value any) *gomock.Call

Set indicates an expected call of Set.

func (*MockStoreMockRecorder) SetJobSnapshot

func (mr *MockStoreMockRecorder) SetJobSnapshot(arg0, arg1 any) *gomock.Call

SetJobSnapshot indicates an expected call of SetJobSnapshot.

type Snapshot

type Snapshot struct {
	WorkerID int
	Job      workerpool.Job
}

type Store

type Store interface {
	Set(key string, value any)
	Get(key string) (any, bool)
	SetJobSnapshot(workerpool.Job, int)
	ClearJobSnapshot(workerpool.Job)
	GetSnapshotInProgress() map[string]*Snapshot
}

Store thread safe key value store

Jump to

Keyboard shortcuts

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