sequence

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sequence

type Sequence struct {
	Epoch uint64
	C     uint64
}

func CurSequence

func CurSequence(ctx context.Context, e *etcd.Store, key string) (*Sequence, bool, error)

func IncSequence

func IncSequence(ctx context.Context, e *etcd.Store, key string) (*Sequence, error)

func Parse

func Parse(s string) (*Sequence, error)

func (*Sequence) EqualEpoch

func (s *Sequence) EqualEpoch(s2 *Sequence) bool

func (*Sequence) Reverse

func (s *Sequence) Reverse() *Sequence

func (*Sequence) String

func (s *Sequence) String() string

Jump to

Keyboard shortcuts

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