system

package
v0.0.0-...-ab17b8d Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package system provides the system information and health check endpoints.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Name string `json:"name"`
}

App represents the application name

type Info

type Info struct {
	Version  string   `json:"version"`
	App      App      `json:"app"`
	Settings Settings `json:"settings"`
}

Info represents the system information

type Manager

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

Manager represents the system manager

func NewManager

func NewManager(logger *logrus.Logger, systemInfo Info) *Manager

NewManager creates a new system manager

func (*Manager) RegisterRoutes

func (m *Manager) RegisterRoutes(r chi.Router)

RegisterRoutes registers the search routes

type Settings

type Settings struct {
	AuthEnabled    bool     `json:"auth_enabled"`
	OAuthProviders []string `json:"oauth_providers"`
}

Settings represents the application settings

Jump to

Keyboard shortcuts

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