server

package
v0.0.0-...-855d15e Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2025 License: MIT Imports: 12 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 {
	Port      string `json:"port"`
	DBString  string `json:"dbString"`
	ApiPath   string `json:"apiPath"`
	WebPath   string `json:"webPath"`
	JwtSecret string `json:"jwtSecret"`
	Env       string `json:"env"`
}

type Server

type Server struct {
	App        *fiber.App
	Config     *Config
	DB         *sqlx.DB
	Logger     *slog.Logger
	Translator *ut.Translator
	Validate   *validator.Validate
}
var AppServer *Server

func New

func New(app *fiber.App, config *Config, logger *slog.Logger) *Server

func (*Server) Configure

func (s *Server) Configure()

func (*Server) Start

func (s *Server) Start() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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