system

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: May 24, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BYOKSystemBaseURLsResponse added in v0.0.2

type BYOKSystemBaseURLsResponse struct {
	URLs []string `json:"urls"`
}

BYOKSystemBaseURLsResponse lists code-pinned default BaseURL prefixes for BYOK. The admin Settings page renders these as "read-only system recommended" alongside the editable byok_base_url_allowlist setting (admin extra). Both are union-merged at validation time (see private_channel.validateBaseURLAllowlist).

type CleanupPreviewRequest

type CleanupPreviewRequest struct {
	Target     string `form:"target" binding:"required,oneof=traces logs hourly_buckets"`
	RetainDays int    `form:"retain_days" binding:"required,min=1"`
}

type CleanupPreviewResponse

type CleanupPreviewResponse struct {
	Target     string `json:"target"`
	RetainDays int    `json:"retain_days"`
	Total      int64  `json:"total"`
	ToDelete   int64  `json:"to_delete"`
}

type CleanupRequest

type CleanupRequest struct {
	Target     string `json:"target" binding:"required,oneof=traces logs hourly_buckets"`
	RetainDays int    `json:"retain_days" binding:"required,min=1"`
}

type CleanupResponse

type CleanupResponse struct {
	Deleted int64 `json:"deleted"`
}

type GetSettingsRequest

type GetSettingsRequest struct{}

type Handler

type Handler struct {
	ConnectedCount func() int
}

func (*Handler) BYOKSystemBaseURLs added in v0.0.2

func (h *Handler) BYOKSystemBaseURLs(_ *app.Context, _ api.EmptyRequest) (BYOKSystemBaseURLsResponse, error)

BYOKSystemBaseURLs returns the code-pinned system default BYOK base URLs. Pure read; no DB access. Mutating this list requires editing internal/consts/byok.go and re-deploying.

func (*Handler) Cleanup

func (h *Handler) Cleanup(c *app.Context, req CleanupRequest) (CleanupResponse, error)

func (*Handler) CleanupPreview

func (h *Handler) CleanupPreview(c *app.Context, req CleanupPreviewRequest) (CleanupPreviewResponse, error)

func (*Handler) GetSettings

func (h *Handler) GetSettings(c *app.Context, _ GetSettingsRequest) (SettingsResponse, error)

func (*Handler) Stats

func (h *Handler) Stats(c *app.Context, _ StatsRequest) (StatsResponse, error)

func (*Handler) UpdateSettings

func (h *Handler) UpdateSettings(c *app.Context, req UpdateSettingsRequest) (SettingsResponse, error)

type SettingsResponse

type SettingsResponse struct {
	Settings map[string]string `json:"settings"`
}

type StatsRequest

type StatsRequest struct{}

type StatsResponse

type StatsResponse struct {
	Tables []TableStats `json:"tables"`
	System SystemInfo   `json:"system"`
}

type SystemInfo

type SystemInfo struct {
	Version      string `json:"version"`
	GoVersion    string `json:"go_version"`
	StartTime    int64  `json:"start_time"`
	UptimeSec    int64  `json:"uptime_sec"`
	MemoryAlloc  uint64 `json:"memory_alloc"`
	MemorySys    uint64 `json:"memory_sys"`
	NumGC        uint32 `json:"num_gc"`
	NumGoroutine int    `json:"num_goroutine"`
	OnlineAgents int    `json:"online_agents"`
}

type TableStats

type TableStats struct {
	Name  string `json:"name"`
	Count int64  `json:"count"`
}

type UpdateSettingsRequest

type UpdateSettingsRequest struct {
	Settings map[string]string `json:"settings" binding:"required"`
}

Jump to

Keyboard shortcuts

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