backendcomponent

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const AppID = "sqlite"

Variables

This section is empty.

Functions

This section is empty.

Types

type AppManifest

type AppManifest struct {
	AppID        string
	Name         string
	Description  string
	Required     bool
	Capabilities []string
}

type Component

type Component interface {
	Manifest() AppManifest
	MountRoutes(mux *http.ServeMux) error
	Init(ctx context.Context) error
	Start(ctx context.Context) error
	Stop(ctx context.Context) error
	Health(ctx context.Context) error
}

type Options

type Options struct {
	Runtime              *sqliteapp.Runtime
	Logger               *log.Logger
	MaxPayloadBytes      int
	StatementAllowlist   []string
	StatementDenylist    []string
	RedactedColumns      []string
	RateLimitRequests    int
	RateLimitWindow      time.Duration
	EnableAuditLogEvents bool
}

type SQLiteBackendComponent

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

func NewSQLiteBackendComponent

func NewSQLiteBackendComponent(opts Options) (*SQLiteBackendComponent, error)

func (*SQLiteBackendComponent) Health

func (*SQLiteBackendComponent) Init

func (*SQLiteBackendComponent) Manifest

func (m *SQLiteBackendComponent) Manifest() AppManifest

func (*SQLiteBackendComponent) MountRoutes

func (m *SQLiteBackendComponent) MountRoutes(mux *http.ServeMux) error

func (*SQLiteBackendComponent) Start

func (*SQLiteBackendComponent) Stop

Jump to

Keyboard shortcuts

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