application

package
v0.36.4 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const ApplicationName = "metadata"

ApplicationName is used as a default for logging very early errors when the configuration isn't read yet.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application interface {
	IsApplication() bool

	// Run runs the application, including setup and teardown phase
	//
	// returns the exit code - we do not call os.Exit inside
	Run() int
}

Application is the central singleton representing the entire application.

type Server

type Server interface {
	IsServer() bool

	Setup() error

	WireUp(ctx context.Context)

	Run() error
}

Jump to

Keyboard shortcuts

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