processor

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CurrentTimeChecker

type CurrentTimeChecker interface {
	Now() time.Time
}

type MockTime added in v1.1.0

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

func NewMockTime added in v1.1.0

func NewMockTime(time time.Time) MockTime

func (MockTime) Now added in v1.1.0

func (m MockTime) Now() time.Time

type Processor

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

func (*Processor) Boot

func (p *Processor) Boot(ctx context.Context, dispatcher dispatcher.Dispatcher, dataStorage *storage.PqStorage, cluster *raft.Raft, channel channel.Channel) error

func (*Processor) Process

func (p *Processor) Process() error

func (*Processor) SetTime added in v1.1.0

func (p *Processor) SetTime(time CurrentTimeChecker)

func (*Processor) Stop added in v1.5.0

func (p *Processor) Stop() error

type RealTime

type RealTime struct {
}

func (RealTime) Now

func (RealTime) Now() time.Time

Jump to

Keyboard shortcuts

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