app

package
v3.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package app represents the composed REST API and Web application

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	HTTPHandler http.Handler
	DB          *gorm.DB
}

App implements the top level application (REST + HTML).

func NewApp

func NewApp(db *gorm.DB, scheme *runtime.Scheme, webConf v1alpha2.WebApp, log *slog.Logger, version string) (*App, error)

NewApp create a new Telemetry application.

type DatabaseType

type DatabaseType string

DatabaseType is the type of the database being used.

const (
	DatabaseSQLite   DatabaseType = "sqlite"
	DatabasePostgres DatabaseType = "postgres"
)

Database types.

Jump to

Keyboard shortcuts

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