events_db

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package events_db provides database storage (events only) for package model

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sqlite

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

func NewSqlite

func NewSqlite(ctx context.Context, dbPath string) (*Sqlite, error)

func (*Sqlite) CreateDebugSession

func (s *Sqlite) CreateDebugSession(ctx context.Context, debugSessionKey string) error

func (*Sqlite) DeleteDebugSession

func (s *Sqlite) DeleteDebugSession(ctx context.Context, debugSessionKey string) error

func (*Sqlite) QueryDebugSessions

func (s *Sqlite) QueryDebugSessions(ctx context.Context, limit int, offset int) (*model.DebugSessionsPage, error)

func (*Sqlite) QueryEvents

func (s *Sqlite) QueryEvents(ctx context.Context, debugSessionKey string, kind *string, limit int, offset int) (*model.EventsPage, error)

func (*Sqlite) WriteEvent

func (s *Sqlite) WriteEvent(ctx context.Context, debugSessionKey string, kind string, data json.RawMessage) error

Jump to

Keyboard shortcuts

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