datomic

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TTL = 600
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DInt

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

func New

func New(key string) (*DInt, error)

func (*DInt) Add

func (d *DInt) Add(delta int64) (old uint64, new uint64, err error)

func (*DInt) Clear

func (d *DInt) Clear() error

clear kv in etcd

func (*DInt) Store

func (d *DInt) Store(cond func(old uint64) bool, new uint64) (bool, error)

Store will set 'new' value if 'cond' is satisfied, if cond is true, return (true,err)

Jump to

Keyboard shortcuts

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