server

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server represents the HTTP server and its dependencies

func New

func New(db *gorm.DB, cfg *config.Config, embeddedFS embed.FS) (*Server, error)

New creates a new server instance

func (*Server) InitDevDB

func (s *Server) InitDevDB() error

InitDevDB initializes the development database with test data

func (*Server) Run

func (s *Server) Run() error

Run starts the HTTP server

Jump to

Keyboard shortcuts

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