Documentation
¶
Overview ¶
Package apisurface lists the Go API that AuthKit v1 covers (docs/stability.md), one feature per line: every exported constant, variable, function, type, field (with its struct tag) and method of the covered packages. api/go.txt holds the list; go generate ./internal/httpapi rewrites it and TestGoAPISurface fails when it is stale.
Index ¶
Constants ¶
View Source
const ( // Module is AuthKit's module path. Module = "github.com/open-rails/authkit" // File is where the list lives, relative to the repository. File = "api/go.txt" )
Variables ¶
View Source
var ErrStale = errors.New(File + " is stale: run go generate ./internal/httpapi")
ErrStale reports a stale api/go.txt.
View Source
var Packages = []string{
"", "adapters/fiber", "adapters/gin", "adapters/twilio", "authtest",
"devicekey", "iam", "keys", "provider", "verify",
}
Packages are the covered packages, relative to Module.
Functions ¶
This section is empty.
Types ¶
type Surface ¶
type Surface struct {
// Features is one sorted line per exported feature.
Features []string
// Leaks are internal types the covered API reaches without a covered
// package naming them by an alias.
Leaks []string
}
Surface is the covered API.
Click to show internal directories.
Click to hide internal directories.