Documentation
¶
Index ¶
Constants ¶
View Source
const ( MetadataTerm = "term" MetadataNamespace = "namespace" MetadataShardId = "shard-id" DefaultNamespace = "default" DefaultPublicPort = 6648 DefaultInternalPort = 6649 DefaultMetricsPort = 8080 MaxSessionTimeout = 5 * time.Minute MinSessionTimeout = 2 * time.Second )
View Source
const ( CodeNotInitialized codes.Code = 100 CodeInvalidTerm codes.Code = 101 CodeInvalidStatus codes.Code = 102 CodeCancelled codes.Code = 103 CodeAlreadyClosed codes.Code = 104 CodeLeaderAlreadyConnected codes.Code = 105 CodeNodeIsNotLeader codes.Code = 106 CodeNodeIsNotFollower codes.Code = 107 CodeSessionNotFound codes.Code = 108 CodeInvalidSessionTimeout codes.Code = 109 CodeNamespaceNotFound codes.Code = 110 CodeNotificationsNotEnabled codes.Code = 111 )
View Source
const InternalKeyPrefix = "__oxia/"
InternalKeyPrefix is the prefix of keys used by oxia.
Variables ¶
View Source
var ( ErrNotInitialized = status.Error(CodeNotInitialized, "oxia: server not initialized yet") ErrCancelled = status.Error(CodeCancelled, "oxia: operation was cancelled") ErrInvalidTerm = status.Error(CodeInvalidTerm, "oxia: invalid term") ErrInvalidStatus = status.Error(CodeInvalidStatus, "oxia: invalid status") ErrLeaderAlreadyConnected = status.Error(CodeLeaderAlreadyConnected, "oxia: leader is already connected") ErrAlreadyClosed = status.Error(CodeAlreadyClosed, "oxia: resource is already closed") ErrNodeIsNotLeader = status.Error(CodeNodeIsNotLeader, "oxia: node is not leader for shard") ErrNodeIsNotFollower = status.Error(CodeNodeIsNotFollower, "oxia: node is not follower for shard") ErrSessionNotFound = status.Error(CodeSessionNotFound, "oxia: session not found") ErrInvalidSessionTimeout = status.Error(CodeInvalidSessionTimeout, "oxia: invalid session timeout") ErrNamespaceNotFound = status.Error(CodeNamespaceNotFound, "oxia: namespace not found") ErrNotificationsNotEnabled = status.Error(CodeNotificationsNotEnabled, "oxia: notifications not enabled on namespace") )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.