server

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2026 License: BSD-3-Clause Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ROUTE_AUTHPF     = "/api/v1/authpf/activate"
	ROUTE_AUTHPF_ALL = "/api/v1/authpf/all"
	ROUTE_LOGIN      = "/login"
)
View Source
var (
	Version = "dev"
)

Global variables

Functions

This section is empty.

Types

type Server

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

func NewServer

func NewServer() *Server

func (*Server) Bootstrap

func (s *Server) Bootstrap() (err error)

bootstrap initializes the application: flags, config, JWT secret, SSL validation, and logger

func (*Server) SetupServer

func (s *Server) SetupServer(e *echo.Echo) error

setupServer configures the Echo server with middleware and routes

func (*Server) Start

func (s *Server) Start()

func (*Server) StartServerWithGracefulShutdown

func (s *Server) StartServerWithGracefulShutdown(e *echo.Echo)

Start Graceful Server

type VersionInfo

type VersionInfo struct {
	ServerVersion string `json:"server_version"`
	APIVersion    string `json:"api_version"`
}

func GetVersionInfo

func GetVersionInfo() VersionInfo

Jump to

Keyboard shortcuts

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