Documentation
¶
Index ¶
- func NewConnector() credit.Connector
- type Connector
- func (c *Connector) CreateFeature(ctx context.Context, namespace string, feature credit.Feature) (credit.Feature, error)
- func (c *Connector) CreateGrant(ctx context.Context, namespace string, grant credit.Grant) (credit.Grant, error)
- func (c *Connector) CreateLedger(ctx context.Context, namespace string, ledger credit.Ledger) (credit.Ledger, error)
- func (c *Connector) DeleteFeature(ctx context.Context, namespace string, featureID ulid.ULID) error
- func (c *Connector) GetBalance(ctx context.Context, namespace string, ledgerID ulid.ULID, cutline time.Time) (credit.Balance, error)
- func (c *Connector) GetFeature(ctx context.Context, namespace string, featureID ulid.ULID) (credit.Feature, error)
- func (c *Connector) GetGrant(ctx context.Context, namespace string, id ulid.ULID) (credit.Grant, error)
- func (c *Connector) GetHighWatermark(ctx context.Context, namespace string, ledgerID ulid.ULID) (credit.HighWatermark, error)
- func (c *Connector) GetHistory(ctx context.Context, namespace string, ledgerID ulid.ULID, from time.Time, ...) (credit.LedgerEntryList, error)
- func (c *Connector) ListFeatures(ctx context.Context, namespace string, params credit.ListFeaturesParams) ([]credit.Feature, error)
- func (c *Connector) ListGrants(ctx context.Context, namespace string, params credit.ListGrantsParams) ([]credit.Grant, error)
- func (c *Connector) ListLedgers(ctx context.Context, namespace string, params credit.ListLedgersParams) ([]credit.Ledger, error)
- func (c *Connector) Reset(ctx context.Context, namespace string, reset credit.Reset) (credit.Reset, []credit.Grant, error)
- func (c *Connector) VoidGrant(ctx context.Context, namespace string, grant credit.Grant) (credit.Grant, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConnector ¶
Types ¶
type Connector ¶
type Connector struct{}
func (*Connector) CreateFeature ¶
func (c *Connector) CreateFeature(ctx context.Context, namespace string, feature credit.Feature) (credit.Feature, error)
Feature
func (*Connector) CreateGrant ¶
func (c *Connector) CreateGrant(ctx context.Context, namespace string, grant credit.Grant) (credit.Grant, error)
Grant
func (*Connector) CreateLedger ¶
func (c *Connector) CreateLedger(ctx context.Context, namespace string, ledger credit.Ledger) (credit.Ledger, error)
Ledger
func (*Connector) DeleteFeature ¶
func (*Connector) GetBalance ¶
func (c *Connector) GetBalance(ctx context.Context, namespace string, ledgerID ulid.ULID, cutline time.Time) (credit.Balance, error)
Credit
func (*Connector) GetFeature ¶
func (*Connector) GetHighWatermark ¶
func (*Connector) GetHistory ¶
func (*Connector) ListFeatures ¶
func (*Connector) ListGrants ¶
func (*Connector) ListLedgers ¶
Click to show internal directories.
Click to hide internal directories.