Documentation ¶
Index ¶
Constants ¶
View Source
const ( InvalidVersion = Version(0) MinVersion = Version(1) MaxVersion = Version(math.MaxUint64) )
View Source
const ( InvalidNodeID = NodeID(0) MinNodeID = NodeID(1) MaxNodeID = NodeID(math.MaxUint64) )
View Source
const MaxLogStreamID = LogStreamID(math.MaxInt32)
View Source
const MinLogStreamID = LogStreamID(1)
View Source
const MinStorageNodeID = StorageNodeID(1)
View Source
const MinTopicID = TopicID(1)
Variables ¶
View Source
var GLSNLen = binary.Size(InvalidGLSN)
View Source
var LLSNLen = binary.Size(InvalidLLSN)
View Source
var VersionLen = binary.Size(InvalidVersion)
Functions ¶
This section is empty.
Types ¶
type AtomicGLSN ¶
type AtomicGLSN uint64
func (*AtomicGLSN) Add ¶
func (glsn *AtomicGLSN) Add(delta uint64) GLSN
func (*AtomicGLSN) CompareAndSwap ¶
func (glsn *AtomicGLSN) CompareAndSwap(old, new GLSN) (swapped bool)
func (*AtomicGLSN) Load ¶
func (glsn *AtomicGLSN) Load() GLSN
func (*AtomicGLSN) Store ¶
func (glsn *AtomicGLSN) Store(val GLSN)
type AtomicLLSN ¶
type AtomicLLSN uint64
func (*AtomicLLSN) Add ¶
func (llsn *AtomicLLSN) Add(delta uint64) LLSN
func (*AtomicLLSN) CompareAndSwap ¶
func (llsn *AtomicLLSN) CompareAndSwap(old, new LLSN) (swapped bool)
func (*AtomicLLSN) Load ¶
func (llsn *AtomicLLSN) Load() LLSN
func (*AtomicLLSN) Store ¶
func (llsn *AtomicLLSN) Store(val LLSN)
type AtomicVersion ¶
type AtomicVersion uint64
func (*AtomicVersion) Add ¶
func (ver *AtomicVersion) Add(delta uint64) Version
func (*AtomicVersion) CompareAndSwap ¶
func (ver *AtomicVersion) CompareAndSwap(old, new Version) (swapped bool)
func (*AtomicVersion) Load ¶
func (ver *AtomicVersion) Load() Version
func (*AtomicVersion) Store ¶
func (ver *AtomicVersion) Store(val Version)
type LogStreamID ¶
type LogStreamID int32
func ParseLogStreamID ¶
func ParseLogStreamID(s string) (LogStreamID, error)
func (LogStreamID) Invalid ¶
func (lsid LogStreamID) Invalid() bool
func (LogStreamID) String ¶
func (lsid LogStreamID) String() string
type NodeID ¶
type NodeID uint64
func NewNodeIDFromURL ¶
type StorageNodeID ¶
type StorageNodeID int32
func ParseStorageNodeID ¶
func ParseStorageNodeID(s string) (StorageNodeID, error)
func (StorageNodeID) Invalid ¶
func (snid StorageNodeID) Invalid() bool
func (StorageNodeID) String ¶
func (snid StorageNodeID) String() string
Click to show internal directories.
Click to hide internal directories.