notes

package
v0.0.0-...-64e7420 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() *manager

New creates a new instance of the notes manager

Types

type Manager

type Manager interface {
	// AddNoteToOrder adds a note to an order
	AddNoteToOrder(orderID, note string) error
	// GetNotesFromOrder returns all notes from an order
	GetNotesFromOrder(orderID string) ([]Note, error)
}

type Note

type Note struct {
	Text string
	Date time.Time
}

Jump to

Keyboard shortcuts

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