marks

package
v0.23.3 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2026 License: MIT Imports: 9 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 marks keeps the collaboration marks: notes pinned to a part of something, by the owner or the agent, with replies, until resolved.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Publisher

type Publisher interface {
	Publish(topic string, data any)
}

Publisher announces changes. The events bus satisfies it.

type Store

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

Store is the marks, in the core database.

func New

func New(db *sql.DB, pub Publisher) *Store

New returns the store. Its table is created by the core's migrations.

func (*Store) Add

func (s *Store) Add(ctx context.Context, m module.Mark) (module.Mark, error)

Add pins a new mark.

func (*Store) List

func (s *Store) List(ctx context.Context, ref string) ([]module.Mark, error)

List returns the marks on a ref, oldest first; every open mark when ref is "".

func (*Store) Reply

func (s *Store) Reply(ctx context.Context, id string, r module.MarkReply) (module.Mark, error)

Reply adds a note to a mark.

func (*Store) Resolve

func (s *Store) Resolve(ctx context.Context, id string) error

Resolve closes a mark.

Jump to

Keyboard shortcuts

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