source

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const SourceConfigName = "Config"
View Source
const SourcePubSubName = "PubSub"
View Source
const SourceYamlName = "Yaml"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

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

func NewConfig

func NewConfig(options *ConfigOptions, observability *common.Observability) *Config

func (*Config) Load

func (cs *Config) Load() (*common.SourceEndpointResult, error)

func (*Config) Name

func (cs *Config) Name() string

func (*Config) Start

func (cs *Config) Start(ctx context.Context) error

type ConfigFile

type ConfigFile struct {
	Endpoints []*common.SourceEndpoint
}

type ConfigOptions

type ConfigOptions struct {
	Path string
}

type PubSub

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

func NewPubSub

func NewPubSub(options *PubSubOptions, observability *common.Observability, ctx context.Context) *PubSub

func (*PubSub) Load

func (ps *PubSub) Load() (*common.SourceEndpointResult, error)

func (*PubSub) Name

func (ps *PubSub) Name() string

func (*PubSub) Start

func (ps *PubSub) Start(ctx context.Context) error

type PubSubOptions

type PubSubOptions struct {
	Credentials  string
	Project      string
	Topic        string
	Subscription string
	AckDeadline  int
	Retention    int
	ConfigFiles  string
	Replacements string
}

type Yaml added in v1.0.0

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

Yaml implements common.SourceDefaultInterface. It reads the V3 YAML configuration file and returns structured detector and observer configs.

func NewYaml added in v1.0.0

func NewYaml(options *YamlOptions, observability *common.Observability) *Yaml

func (*Yaml) Load added in v1.0.0

func (y *Yaml) Load() (*common.SourceDefaultResult, error)

func (*Yaml) Name added in v1.0.0

func (y *Yaml) Name() string

type YamlOptions added in v1.0.0

type YamlOptions struct {
	Path string
}

Jump to

Keyboard shortcuts

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