application

package
v0.0.0-...-a1990c1 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	Start(context.Context) error
}

func New

func New(ctx context.Context, settings config.Config) (Service, error)

New creates a new application service with the given configuration. It runs database migrations, creates a metrics registry, connects to the database, creates a details server client, creates a service, creates an HTTP handler, and creates a server. It returns a Service and an error if any of the steps fail.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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