Versions in this module Expand all Collapse all v0 v0.1.0 Jul 8, 2015 Changes in this version + func CheckIfAvailable(head *Sequence, ordinal int) (int, int, error) + func GetFirstAvailable(head *Sequence) (int, int, error) + type Handle struct + func NewHandle(app string, ds datastore.DataStore, id string, numElements uint32) (*Handle, error) + func (h *Handle) Bits() uint32 + func (h *Handle) CheckIfAvailable(ordinal int) (int, int, error) + func (h *Handle) Destroy() + func (h *Handle) Exists() bool + func (h *Handle) FromByteArray(ba []byte) error + func (h *Handle) GetFirstAvailable() (int, int, error) + func (h *Handle) Index() uint64 + func (h *Handle) Key() []string + func (h *Handle) KeyPrefix() []string + func (h *Handle) PushReservation(bytePos, bitPos int, release bool) error + func (h *Handle) SetIndex(index uint64) + func (h *Handle) SetValue(value []byte) error + func (h *Handle) ToByteArray() ([]byte, error) + func (h *Handle) Unselected() uint32 + func (h *Handle) Value() []byte + type Sequence struct + Block uint32 + Count uint32 + Next *Sequence + func NewSequence(numElements uint32) *Sequence + func PushReservation(bytePos, bitPos int, head *Sequence, release bool) *Sequence + func (s *Sequence) Equal(o *Sequence) bool + func (s *Sequence) FromByteArray(data []byte) error + func (s *Sequence) GetAvailableBit() (bytePos, bitPos int) + func (s *Sequence) GetCopy() *Sequence + func (s *Sequence) String() string + func (s *Sequence) ToByteArray() ([]byte, error)