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

control

package
v0.68.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package control is control.db: accounts, API tokens, sessions, share links, and the mail outbox. It implements the core store ports.

Index

Constants

View Source
const FileName = "control.db"

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

func Open

func Open(ctx context.Context, dataDir string) (*Store, error)

Open opens or creates <dataDir>/control.db and applies pending migrations. The server and the admin commands both open it; WAL and busy_timeout make them wait on each other instead of failing.

func (*Store) Accounts

func (s *Store) Accounts() core.AccountStore

func (*Store) Close

func (s *Store) Close() error

func (*Store) Codes

func (s *Store) Codes() core.CodeStore

func (*Store) Outbox

func (s *Store) Outbox() core.OutboxStore

func (*Store) Sessions

func (s *Store) Sessions() core.SessionStore

func (*Store) Shares

func (s *Store) Shares() core.ShareStore

func (*Store) Tokens

func (s *Store) Tokens() core.TokenStore

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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