database

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrKeyNotFound = fmt.Errorf("key not in database")

Functions

This section is empty.

Types

type Database

type Database interface {
	SaveCredential(ctx context.Context, key string, credential string, ttl time.Duration) error
	GetCredential(ctx context.Context, key string) (*string, error)
	DeleteCredential(ctx context.Context, key string) (bool, error)
}

Jump to

Keyboard shortcuts

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