v2

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2026 License: AGPL-3.0 Imports: 4 Imported by: ? 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 v2 defines version 2 of the persisted voice activity records, independent of the session protocol. Each file holds the records of one session in <minute>-<session>.jsonl. A completed session's file is archived as <minute>-<session>.jsonl.zst.

Index

Constants

This section is empty.

Variables

View Source
var Storage = apispec.Storage{
	Format: apispec.JSON,
	Types:  []reflect.Type{reflect.TypeFor[Record]()},
}

Storage is the schema specification of the activity log; each JSON Lines row is a Record.

Immutable

Functions

This section is empty.

Types

type Record

type Record struct {
	Timestamp apidto.Time    `json:"ts"`
	Source    Source         `json:"src"`
	Protocol  string         `json:"protocol"`
	Kind      string         `json:"kind"`
	Message   jsontext.Value `json:"msg"`
}

Record is one JSONL activity entry. Message retains the complete opaque protocol message.

Protocol names the gateway contract of Message, such as "v2".

type Source

type Source string

Source identifies which side of the session emitted an activity message.

const (
	// SourceClient identifies activity from the client.
	SourceClient Source = "client"
	// SourceGateway identifies activity from the gateway.
	SourceGateway Source = "gateway"
)

Jump to

Keyboard shortcuts

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