store

package
v0.0.0-...-d1393d0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BucketAccounts       = "accounts"
	BucketClaudeAccounts = "claude_accounts"
	BucketAPIKeys        = "apikeys"
	BucketUsage          = "usage"
	BucketSettings       = "settings"
	BucketPins           = "pins"
)

Variables

View Source
var ErrNotFound = errors.New("store: not found")

Functions

This section is empty.

Types

type Store

type Store struct {
	// contains filtered or unexported fields
}

func Open

func Open(path string) (*Store, error)

func (*Store) Close

func (s *Store) Close() error

func (*Store) DB

func (s *Store) DB() *bbolt.DB

func (*Store) Delete

func (s *Store) Delete(bucket, key string) error

func (*Store) ForEach

func (s *Store) ForEach(bucket string, fn func(key, value []byte) error) error

func (*Store) Get

func (s *Store) Get(bucket, key string) ([]byte, error)

func (*Store) Put

func (s *Store) Put(bucket, key string, value []byte) error

Jump to

Keyboard shortcuts

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