Skip to content

Linger is An Open-Source Personal Agent That Runs Fully on Your PC. We aim to break Big Tech’s grip on AI by bringing powerful local AI to everyday computers through efficient model–harness co-design, so everyone can run their own.

397 B
Raw Blame
package agentauth

import (
	"context"

	"github.com/jackc/pgx/v5"
)

// Authorizer resolves an Agent credential for one operation, optionally in
// the caller's transaction. Service implements it.
type Authorizer interface {
	Authorize(ctx context.Context, token, action string) (Authorization, error)
	AuthorizeInTx(ctx context.Context, tx pgx.Tx, token, action string) (Authorization, error)
}