source

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2025 License: MIT Imports: 19 Imported by: 1 module, 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 SourceConfigName = "Config"
View Source
const SourcePubSubName = "PubSub"

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.SourceResult, 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.SourceResult, 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
}

Jump to

Keyboard shortcuts

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