redischeckpointer

package
v0.0.0-...-2d4f00f Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checkpointer

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

func New

func New(opt *Options) (*Checkpointer, error)

func (*Checkpointer) Begin

func (r *Checkpointer) Begin() error

func (*Checkpointer) DoneC

func (r *Checkpointer) DoneC() chan<- k.Record

func (*Checkpointer) End

func (r *Checkpointer) End()

func (*Checkpointer) GetStartSequence

func (r *Checkpointer) GetStartSequence(shardID string) string

func (*Checkpointer) RunCheckpointer

func (r *Checkpointer) RunCheckpointer()

func (*Checkpointer) Sync

func (r *Checkpointer) Sync()

type Error

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

func (*Error) Error

func (e *Error) Error() string

func (*Error) Origin

func (e *Error) Origin() error

func (*Error) Severity

func (e *Error) Severity() string

type Options

type Options struct {
	ReadOnly    bool
	SavePeriod  time.Duration
	RedisPool   *redis.Pool
	RedisPrefix string
	ErrHandler  func(k.Error)
}

Jump to

Keyboard shortcuts

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