bkdata

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2019 License: Apache-2.0 Imports: 0 Imported by: 0

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 BookieSocketAddress struct {
	Port     int    `json:"port"`
	HostName string `json:"hostname"`
}

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL