server

package
v0.0.0-...-2557dda Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Package server provides general server bootstrapping functionality

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	Echo   *echo.Echo
	Logger *slog.Logger
	Cfg    *config.Config
	DB     *pgxpool.Pool
}

func Initialize

func Initialize(cfg *config.Config) (*Server, error)

func (*Server) ServeStaticFiles

func (s *Server) ServeStaticFiles(url string, folder string, fs embed.FS)

func (*Server) StartServer

func (s *Server) StartServer(ctx context.Context) error

Jump to

Keyboard shortcuts

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