Versions in this module Expand all Collapse all v0 v0.0.1 Nov 25, 2022 Changes in this version + var ErrMissingPrepareRange = errors.New("PrepareRange must be called before any other operations") + var ErrPrepareRangeNotReady = errors.New("PrepareRange operation is not yet complete") + func Handler(api CaptiveCoreAPI) http.Handler + type CaptiveCoreAPI struct + func NewCaptiveCoreAPI(core ledgerbackend.LedgerBackend, log *log.Entry) CaptiveCoreAPI + func (c *CaptiveCoreAPI) GetLatestLedgerSequence(ctx context.Context) (ledgerbackend.LatestLedgerSequenceResponse, error) + func (c *CaptiveCoreAPI) GetLedger(ctx context.Context, sequence uint32) (ledgerbackend.LedgerResponse, error) + func (c *CaptiveCoreAPI) PrepareRange(ctx context.Context, ledgerRange ledgerbackend.Range) (ledgerbackend.PrepareRangeResponse, error) + func (c *CaptiveCoreAPI) Shutdown() + type GetLedgerRequest struct + Sequence uint32