tracker

package
v0.0.0-...-c4d7034 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	IndexTemplate = template.Must(template.New("index").Parse(indexTemplateData))
)

Functions

func ReadSourcesFromEnv

func ReadSourcesFromEnv(existing *source.Config)

Types

type Config

type Config struct {
	Tracking TrackingConfig
	Sources  source.Config
}

func Load

func Load(path string) (*Config, error)

type IndexTemplateData

type IndexTemplateData struct {
	PushEvents []PushEventsTemplate
}

type PushEventsTemplate

type PushEventsTemplate struct {
	Date    string
	Commits []source.PushEvent
}

type QueueConfig

type QueueConfig struct {
	QueueName        string
	ConnectionString string

	RescanEvery    time.Duration
	WorkerInterval time.Duration
}

type Repository

type Repository struct {
	Source string
	Owner  string
	Name   string
}

func (Repository) ID

func (r Repository) ID() string

type TrackingConfig

type TrackingConfig struct {
	Repositories   []Repository
	OutputFilepath string
}

type Worker

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

func NewWorker

func NewWorker(logger *slog.Logger, conf Config) (*Worker, error)

func (*Worker) Start

func (w *Worker) Start(ctx context.Context) error

Jump to

Keyboard shortcuts

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