api

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

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

func NewAPI

func NewAPI(config *viper.Viper, logger *logger.Logger, buildInfo BuildInfo) *API

func (*API) EnablePrometheus

func (api *API) EnablePrometheus()

func (*API) Listen

func (api *API) Listen()

func (*API) Motd

func (api *API) Motd()

type BuildInfo

type BuildInfo struct {
	Version  string
	Commit   string
	Repo     string
	Compiler string
}

type ErrorResponse

type ErrorResponse struct {
	Error string `json:"error"`
}

Jump to

Keyboard shortcuts

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