Discover Packages
github.com/suburbanpit/robot
spoken
package
Version:
v0.0.0-...-2e5d07d
Opens a new window with list of versions in this module.
Published: May 18, 2025
License: GPL-3.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Jump to ...
Documentation
Index
Constants
Variables
Functions
Types
type History
Open(ctx, db)
(h) Record(ctx, tag, msg, trace, tm, cost, orig, emote, effect)
(h) Since(ctx, tag, tm)
(h) Trace(ctx, tag, msg)
Source Files
Documentation
Documentation
¶
type History
func (h *History) Record(ctx context.Context, tag, msg string, trace []string, tm time.Time, ...) error
func (h *History) Since(ctx context.Context, tag string, tm time.Time) iter.Seq2[string, error]
func (h *History) Trace(ctx context.Context, tag, msg string) ([]string, time.Time, error)
History records messages generated by robot.
Open opens an existing history in a DB.
Record records a message with its trace and metadata.
AllSince provides an iterator over all trace IDs since the given time.
Trace obtains the trace and time of the most recent instance of a message.
If the message has not been recorded, the results are empty with a nil error.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.