app

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2026 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRouter

func NewRouter(container *Container) http.Handler

Types

type Container

type Container struct {
	DB          *pgxpool.Pool
	RedisClient redis.Client
	Logger      *zerolog.Logger

	Scheduler  *scheduler.Scheduler
	Executor   *executor.Executor
	ResultPro  *result.ResultProcessor
	AlertSvc   *alert.AlertService
	JobChan    chan scheduler.JobPayload
	ResultChan chan executor.HTTPResult
	AlertChan  chan alert.AlertEvent
	// contains filtered or unexported fields
}

func NewContainer

func NewContainer(ctx context.Context, cfg *config.Config, logger *zerolog.Logger, db *pgxpool.Pool) (*Container, error)

func (*Container) Shutdown

func (c *Container) Shutdown() error

Jump to

Keyboard shortcuts

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