Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultAPIVersion = "v1"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIVersion ¶
type APIVersion int
const (
V1 APIVersion = iota
)
func (APIVersion) String ¶
func (v APIVersion) String() string
type BookieSocketAddress ¶
type BookieType ¶ added in v0.3.0
type BookieType string
func ParseBookieType ¶ added in v0.3.0
func ParseBookieType(t string) (BookieType, error)
func (BookieType) String ¶ added in v0.3.0
func (t BookieType) String() string
type DecommissionRequest ¶ added in v0.3.0
type DecommissionRequest struct {
BookieSrc string `json:"bookie_src"`
}
type GCStatus ¶ added in v0.3.0
type GCStatus struct { // whether the GC thread is in force GC ForceCompacting bool `json:"forceCompacting"` // whether the GC thread is in major compacting MajorCompacting bool `json:"majorCompacting"` //whether the GC thread is in minor compacting MinorCompacting bool `json:"minorCompacting"` LastMajorCompactionTime int64 `json:"lastMajorCompactionTime"` LastMinorCompactionTime int64 `json:"lastMinorCompactionTime"` MajorCompactionCounter int64 `json:"majorCompactionCounter"` MinorCompactionCounter int64 `json:"minorCompactionCounter"` }
type LedgerMetadata ¶
type LedgerMetadata struct { StoreCtime bool `json:"storeCtime"` HasPassword bool `json:"hasPassword"` MetadataFormatVersion int `json:"metadataFormatVersion"` Ensemble int `json:"ensembleSize"` WriteQuorum int `json:"writeQuorumSize"` AckQuorum int `json:"ackQuorumSize"` Length int64 `json:"length"` LastEntryID int64 `json:"lastEntryId"` Ctime int64 `json:"ctime"` CToken int64 `json:"cToken"` State string `json:"state"` DigestType string `json:"digestType"` Ensembles map[int64][]BookieSocketAddress `json:"allEnsembles"` CurrentEnsemble []BookieSocketAddress `json:"currentEnsemble"` Password []byte `json:"password"` CustomMetadata map[string][]byte `json:"customMetadata"` }
type LostBookieRecoverDelayRequest ¶ added in v0.3.0
type LostBookieRecoverDelayRequest struct {
DelaySeconds int `json:"delay_seconds"`
}
type RecoveryRequest ¶ added in v0.3.0
Click to show internal directories.
Click to hide internal directories.