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

app

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package app exposes the application's use-case handlers to input adapters.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	Commands Commands
	Queries  Queries
}

Application groups the use-case handlers exposed by Overmind.

func New

func New(dependencies Dependencies) *Application

New creates the application handlers.

type Commands

type Commands struct {
	UpdateRawNote  *rawedit.UpdateHandler
	UpdatePage     *page.UpdateHandler
	UpdateInbox    *inbox.UpdateHandler
	UpdateBookmark *bookmark.UpdateHandler
	UpdatePerson   *person.UpdateHandler
	UpdateHabit    *habit.UpdateHandler
	DeleteNote     *notes.DeleteHandler
	Reindex        *notes.ReindexHandler
	CreateHabit    *habit.CreateHandler
	CreatePage     *page.CreateHandler
	CreatePerson   *person.CreateHandler
	CreateJournal  *journal.CreateHandler
	UpdateJournal  *journal.UpdateHandler
	CreateInbox    *inbox.CreateHandler
	CreateBookmark *bookmark.CreateHandler
}

Commands contains the application's state-changing handlers.

type Dependencies

type Dependencies struct {
	Index        ports.Index
	RawNoteCodec ports.RawNoteCodec
	NoteStore    ports.NoteStore
	Pages        ports.PageRepository
	Journals     ports.JournalRepository
	Habits       ports.HabitRepository
	Persons      ports.PersonRepository
	Bookmarks    ports.BookmarkRepository
	Inbox        ports.InboxRepository
	IDGenerator  ports.IDGenerator
}

Dependencies contains the ports required by the application.

type Queries

type Queries struct {
	GetRawNote  *rawedit.GetHandler
	GetPage     *page.GetHandler
	GetInbox    *inbox.GetHandler
	GetBookmark *bookmark.GetHandler
	GetPerson   *person.GetHandler
	GetHabit    *habit.GetHandler
	ListNotes   *notes.ListHandler
	GetJournal  *journal.GetHandler
	ListGroups  *person.ListGroupsHandler
}

Queries contains read-only application operations.

Directories

Path Synopsis
Package bookmark creates, loads and updates saved HTTP and HTTPS links.
Package bookmark creates, loads and updates saved HTTP and HTTPS links.
Package habit manages habit documents, goals and descriptive content.
Package habit manages habit documents, goals and descriptive content.
Package inbox manages unstructured notes awaiting further organization.
Package inbox manages unstructured notes awaiting further organization.
Package journal manages dated entries whose date remains fixed during edits.
Package journal manages dated entries whose date remains fixed during edits.
Package notes queries indexed summaries and coordinates deletion and index rebuilding.
Package notes queries indexed summaries and coordinates deletion and index rebuilding.
Package page manages titled documents with optional hierarchical areas.
Package page manages titled documents with optional hierarchical areas.
Package person manages people and lists group names currently assigned to them.
Package person manages people and lists group names currently assigned to them.
Package rawedit loads and updates complete managed AsciiDoc documents.
Package rawedit loads and updates complete managed AsciiDoc documents.

Jump to

Keyboard shortcuts

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