pkg

package
v0.0.0-...-c327406 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2024 License: MIT Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

AppSet link main app deps

View Source
var ServerSet = wire.NewSet(AppSet)

Functions

This section is empty.

Types

type Server

type Server struct {
	App       *fiber.App
	WS        *ws.Hub
	Cron      *services.CronService
	Mongo     *mongo.Connection
	AppConfig *configs.AppConfig
}

Server represents the main server configuration.

func NewServer

func NewServer() (*Server, error)

func (*Server) Run

func (srv *Server) Run(ctx context.Context)

Run start service with deps

func (*Server) Shutdown

func (srv *Server) Shutdown(ctx context.Context)

Shutdown graceful shutdown

Jump to

Keyboard shortcuts

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