notificationapp

package
v0.0.0-...-0f16109 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

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

func Setup

func Setup(cfg Config, logger *slog.Logger, trap <-chan os.Signal, re *redis.Adapter, pg *postgres.Database) (
	Application, service.Service)

func (Application) Start

func (a Application) Start()

func (Application) Stop

func (a Application) Stop(ctx context.Context) bool

func (Application) StopHTTPServer

func (a Application) StopHTTPServer(ctx context.Context, wg *sync.WaitGroup)

type Config

type Config struct {
	ShutdownTimeout  time.Duration     `koanf:"shutdown_timeout"`
	ClientHTTPServer httpserver.Config `koanf:"client_http_server"`
	AdminHTTPServer  httpserver.Config `koanf:"admin_http_server"`
	Logger           logger.Config     `koanf:"logger"`
	Postgres         postgres.Config   `koanf:"postgres"`
	Notification     service.Config    `koanf:"notification"`
	Redis            redis.Config      `koanf:"redis"`
	Websocket        websocket.Config  `koanf:"websocket"`
	GetUserIDURL     string            `koanf:"get_user_id_url"`
}

Directories

Path Synopsis
delivery
Package docs Code generated by swaggo/swag.
Package docs Code generated by swaggo/swag.
repository

Jump to

Keyboard shortcuts

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