Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultWebServiceURL = "http://localhost:8080" DefaultHTTPTimeOutDuration = 5 * time.Minute )
Variables ¶
View Source
var ReleaseVersion = "None"
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
WebServiceURL string
HTTPTimeout time.Duration
APIVersion bkdata.APIVersion
}
Config is used to configure the bookKeeper admin client
type Ledger ¶
type Ledger interface {
// Delete the specified ledger
Delete(int64) error
// List all the ledgers and get the metadata
List(bool) (map[int64]string, error)
// Get the metadata of a ledger
Get(int64) (map[int64]bkdata.LedgerMetadata, error)
// Read a range of entries from a ledger
Read(int64, int64, int64) (map[string]string, error)
}
Click to show internal directories.
Click to hide internal directories.