Versions in this module Expand all Collapse all v1 v1.2.0 Oct 27, 2026 v1.1.0 Oct 24, 2026 Changes in this version + const MaxBatch + const MinWindow + func Merge(rows []*usagev1.UsageSummaryRow, byDay bool) []*usagev1.UsageSummaryRow + func ParseDuration(s string) (time.Duration, error) + func USD(nanousd int64) float64 + type Client struct + func New(o Options) (*Client, error) + func (c *Client) ByMeta(ctx context.Context, req *usagev1.GetUsageByMetaRequest) (*usagev1.GetUsageByMetaResponse, error) + func (c *Client) Close() error + func (c *Client) Record(ctx context.Context, events ...*usagev1.UsageEvent) (created, duplicates int, err error) + func (c *Client) Service() usagev1.UsageServiceClient + func (c *Client) Summary(ctx context.Context, req *usagev1.GetUsageSummaryRequest) (rows []*usagev1.UsageSummaryRow, truncated bool, err error) + type Options struct + Addr string + DialOptions []grpc.DialOption + TLS bool + TLSConfig *tls.Config + Token string