timeline

package
v0.474.2 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2025 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(ctx context.Context, config Config) error

Types

type Config

type Config struct {
	Bind              *url.URL       `help:"Socket to bind to." default:"http://127.0.0.1:8894" env:"FTL_BIND"`
	EventLogRetention *time.Duration `help:"Delete call logs after this time period. 0 to disable" env:"FTL_EVENT_LOG_RETENTION" default:"24h"`
}

func (*Config) SetDefaults

func (c *Config) SetDefaults()

type Metrics

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

func (*Metrics) Dropped

func (m *Metrics) Dropped(ctx context.Context)

func (*Metrics) Failed

func (m *Metrics) Failed(ctx context.Context, count int)

func (*Metrics) Inserted

func (m *Metrics) Inserted(ctx context.Context, count int)

type TimelineFilter

type TimelineFilter func(event *timelinepb.Event) bool

func FilterCall

func FilterCall(filters []*timelinepb.TimelineQuery_CallFilter) TimelineFilter

FilterCall filters call events between the given modules.

Takes a list of filters, with each call event needing to match at least one filter.

func FilterChangesets added in v0.464.0

func FilterChangesets(filters []*timelinepb.TimelineQuery_ChangesetFilter) TimelineFilter

func FilterIDRange

func FilterIDRange(filter *timelinepb.TimelineQuery_IDFilter) TimelineFilter

FilterIDRange filters events between the given IDs.

func FilterTimeRange

func FilterTimeRange(filter *timelinepb.TimelineQuery_TimeFilter) TimelineFilter

FilterTimeRange filters events between the given times, inclusive.

Jump to

Keyboard shortcuts

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