bootstrap

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2025 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CloserGroupApp           = "app"
	CloserGroupConnections   = "connections"
	CloserGroupGlobalContext = "global context"
)
View Source
const (
	HighPriority = iota
	MediumPriority
	LowPriority
)
View Source
const (
	ShutdownTimeoutInSeconds = 5
)

Variables

This section is empty.

Functions

func InitBoardService

func InitBoardService(
	ctx context.Context,
	app *App,
	pool *pgxpool.Pool,
) error

func InitCloser

func InitCloser()

func InitGlobalContext

func InitGlobalContext() (context.Context, error)

func InitPostgresPool

func InitPostgresPool(
	ctx context.Context,
	connectionString string,
) (*pgxpool.Pool, error)

func InitTaskService

func InitTaskService(
	ctx context.Context,
	app *App,
	pool *pgxpool.Pool,
) error

func InitTopicService

func InitTopicService(
	ctx context.Context,
	app *App,
	pool *pgxpool.Pool,
) error

Types

type App

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

func InitApp

func InitApp(cfg *config.Config) *App

func (*App) Run

func (app *App) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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