mocks

package
v5.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProxySegmentStorageMock

type ProxySegmentStorageMock struct {
	ChangesSinceCall     func(name string, since int64) (*dtos.SegmentChangesDTO, error)
	SegmentsForCall      func(key string) ([]string, error)
	CountRemovedKeysCall func(segmentName string) int
}

func (*ProxySegmentStorageMock) ChangesSince

func (p *ProxySegmentStorageMock) ChangesSince(name string, since int64) (*dtos.SegmentChangesDTO, error)

func (*ProxySegmentStorageMock) CountRemovedKeys

func (p *ProxySegmentStorageMock) CountRemovedKeys(segmentName string) int

func (*ProxySegmentStorageMock) SegmentsFor

func (p *ProxySegmentStorageMock) SegmentsFor(key string) ([]string, error)

type ProxySplitStorageMock

type ProxySplitStorageMock struct {
	ChangesSinceCall    func(since int64) (*dtos.SplitChangesDTO, error)
	RegisterOlderCnCall func(payload *dtos.SplitChangesDTO)
}

func (*ProxySplitStorageMock) ChangesSince

func (p *ProxySplitStorageMock) ChangesSince(since int64) (*dtos.SplitChangesDTO, error)

func (*ProxySplitStorageMock) RegisterOlderCn

func (p *ProxySplitStorageMock) RegisterOlderCn(payload *dtos.SplitChangesDTO)

Jump to

Keyboard shortcuts

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