Help us shape the future of Go! Take the 2026 Go Developer Survey

subscription

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package subscription is the seam between the injection sink and a person's captured Claude subscription token: the sink resolves a subscription sentinel through a Provider, and the token lives only in proxy memory.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider interface {
	Current(ctx context.Context) (Token, error)
	// Peek returns the stored token for a status surface: no cache fill, and
	// unlike Current it does not reject an expired token.
	Peek() (Token, error)
}

Provider yields a person's current Claude subscription access token.

type Token

type Token struct {
	Value     string
	ExpiresAt time.Time
}

Token is a live subscription access token and its expiry.

Jump to

Keyboard shortcuts

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