schema

package
v1.6.8 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: Apache-2.0 Imports: 3 Imported by: 0 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

Index

Constants

View Source
const (
	EventName     = "event"
	EventShutdown = "shutdown"
)

The events of a stream of the broadcaster's events: each event, and that the server is stopping, before the stream ends, so a client knows it ended as there will be no more events

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Action EventAction     `json:"action" help:"How it changed, which is create, update or delete" example:"create"`
	Schema string          `json:"schema,omitempty" help:"Schema of the table which changed" example:"llm"`
	Table  string          `json:"table,omitempty" help:"Table which changed" example:"provider"`
	Row    string          `json:"row,omitempty" help:"Row, or rows, which changed, such as by an identifier" example:"ollama"`
	Data   json.RawMessage `json:"data,omitempty" help:"What the table says of the change, such as a row's new serial"`
}

Event is a change: how it changed, which is its action, what changed, which is a table of a schema, and which row, or rows, changed, when it says, such as by an identifier which the rows share, and what the table says of the change, such as a row's new serial, when it says anything

func (Event) String

func (e Event) String() string

type EventAction

type EventAction string

EventAction is how something changed: it was created, updated or deleted

const (
	EventCreate EventAction = "create" // Created
	EventUpdate EventAction = "update" // Updated
	EventDelete EventAction = "delete" // Deleted
)

func (EventAction) String

func (a EventAction) String() string

func (*EventAction) UnmarshalJSON

func (a *EventAction) UnmarshalJSON(data []byte) error

UnmarshalJSON decodes an action, which must be one of the actions

Jump to

Keyboard shortcuts

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