sequence

package
Version: v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2021 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

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto