backends

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package backends provides optional remote sync layers. Default is local SQLite only — backends are never required.

Index

Constants

This section is empty.

Variables

View Source
var ErrNotImplemented = errors.New("backend not implemented yet")

Functions

func Registry

func Registry() map[string]Backend

Types

type Backend

type Backend interface {
	ID() string
	DisplayName() string
	Init() error
	Auth() error
	Sync() error
	Pull() error
	Push() error
}

func List

func List() []Backend

func Resolve

func Resolve(id string) (Backend, error)

type Firebase

type Firebase struct{}

func (Firebase) Auth

func (Firebase) Auth() error

func (Firebase) DisplayName

func (Firebase) DisplayName() string

func (Firebase) ID

func (Firebase) ID() string

func (Firebase) Init

func (Firebase) Init() error

func (Firebase) Pull

func (Firebase) Pull() error

func (Firebase) Push

func (Firebase) Push() error

func (Firebase) Sync

func (Firebase) Sync() error

type InsForge

type InsForge struct{}

func (InsForge) Auth

func (InsForge) Auth() error

func (InsForge) DisplayName

func (InsForge) DisplayName() string

func (InsForge) ID

func (InsForge) ID() string

func (InsForge) Init

func (InsForge) Init() error

func (InsForge) Pull

func (InsForge) Pull() error

func (InsForge) Push

func (InsForge) Push() error

func (InsForge) Sync

func (InsForge) Sync() error

type Local

type Local struct{}

func (Local) Auth

func (Local) Auth() error

func (Local) DisplayName

func (Local) DisplayName() string

func (Local) ID

func (Local) ID() string

func (Local) Init

func (Local) Init() error

func (Local) Pull

func (Local) Pull() error

func (Local) Push

func (Local) Push() error

func (Local) Sync

func (Local) Sync() error

type Supabase

type Supabase struct{}

func (Supabase) Auth

func (Supabase) Auth() error

func (Supabase) DisplayName

func (Supabase) DisplayName() string

func (Supabase) ID

func (Supabase) ID() string

func (Supabase) Init

func (Supabase) Init() error

func (Supabase) Pull

func (Supabase) Pull() error

func (Supabase) Push

func (Supabase) Push() error

func (Supabase) Sync

func (Supabase) Sync() error

Jump to

Keyboard shortcuts

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