server

package
v0.0.0-...-9d8f3ed Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2023 License: GPL-3.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Version       string
	BuildDate     string
	GinMode       string
	TLSProxy      bool
	GZIPExtension bool
	Debug         bool
	Domain        string
	TrustedProxy  string
	StaticContent embed.FS
}

type Load

type Load struct {
	Status string
	Value  float64
}

type Node

type Node struct {
	Name     string
	Services []Service
	Loads    []Load
}

type Server

type Server struct {
	Router *gin.Engine
	// contains filtered or unexported fields
}

Server passes stuff around. Like database connections etc

func NewServer

func NewServer(config Config) (Server, error)

type Service

type Service struct {
	Name    string
	Status  string
	Message string
}

Jump to

Keyboard shortcuts

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