engine

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2026 License: MIT Imports: 19 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package engine implements the notesd API domains over the store and the vaults' actors (docs/design/overview.md).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

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

Engine owns the domain services.

func New

func New(db *store.DB, vaults *vault.Manager, h *hub.Hub, s *syncer.Syncer) *Engine

New returns an Engine over db, whose vaults the manager runs; it must have started. h serves the hub and log domains and s the sync domain (docs/specs/sync-protocol.md); either may be nil, and its domains then answer unavailable.

func (*Engine) Hub

func (e *Engine) Hub() api.HubService

Hub implements the hub domain.

func (*Engine) Log

func (e *Engine) Log() api.LogService

Log implements the log domain.

func (*Engine) Notes

func (e *Engine) Notes() api.NoteService

Notes implements the note domain.

func (*Engine) Sync

func (e *Engine) Sync() api.SyncService

Sync implements the sync domain.

func (*Engine) Vaults

func (e *Engine) Vaults() api.VaultService

Vaults implements the vault domain.

Jump to

Keyboard shortcuts

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