dao

package
v0.0.0-...-743e168 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoEnvelope = errors.New("Specified envelope does not exist.")

Functions

func DecrMoneyFromEnvelopeHset

func DecrMoneyFromEnvelopeHset(key string, decr float64) error

func GetEnvelopMembers

func GetEnvelopMembers(key string) (float64, int, error)

func InitEnvelopeHset

func InitEnvelopeHset(key string, money float64, divides int, expsec int) error

Types

type DistributeLock

type DistributeLock struct {
	Key int64
	// contains filtered or unexported fields
}

func TryLock

func TryLock(id util.ObjectId) (*DistributeLock, error)

func (*DistributeLock) IsStillValid

func (self *DistributeLock) IsStillValid() bool

func (*DistributeLock) Release

func (self *DistributeLock) Release()

Jump to

Keyboard shortcuts

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