Documentation ¶
Index ¶
Constants ¶
View Source
const ( MinClusterID = ClusterID(1) MaxClusterID = ClusterID(math.MaxInt32) )
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 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 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.