mocks

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	InsertFn func(ctx context.Context, schemaName string) (*schemalog.LogEntry, error)
	FetchFn  func(ctx context.Context, schemaName string, ackedOnly bool) (*schemalog.LogEntry, error)
	AckFn    func(ctx context.Context, le *schemalog.LogEntry) error
	CloseFn  func() error
	// contains filtered or unexported fields
}

func (*Store) Ack

func (m *Store) Ack(ctx context.Context, le *schemalog.LogEntry) error

func (*Store) Close

func (m *Store) Close() error

func (*Store) Fetch

func (m *Store) Fetch(ctx context.Context, schemaName string, ackedOnly bool) (*schemalog.LogEntry, error)

func (*Store) GetAckCalls

func (m *Store) GetAckCalls() uint64

func (*Store) GetFetchCalls

func (m *Store) GetFetchCalls() uint64

func (*Store) GetInsertCalls added in v0.3.0

func (m *Store) GetInsertCalls() uint64

func (*Store) Insert added in v0.3.0

func (m *Store) Insert(ctx context.Context, schemaName string) (*schemalog.LogEntry, error)

Jump to

Keyboard shortcuts

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