pkg

package
v0.0.0-...-01159b3 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: MIT Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MigrationsFS embed.FS
View Source
var ServerSet = wire.NewSet(AppSet)

Functions

func RunMigrate

func RunMigrate(connectionStr string)

Types

type Migrator

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

func MustGetNewMigrator

func MustGetNewMigrator(sqlFiles embed.FS, dirName string) *Migrator

func (*Migrator) ApplyMigrations

func (m *Migrator) ApplyMigrations(db *sql.DB) error

type Server

type Server struct {
	App        *fiber.App
	Bot        *telegram.TelegramListener
	PubAdapter *publisher.EventPublisherAdapter
	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)

func (*Server) Shutdown

func (srv *Server) Shutdown()

Jump to

Keyboard shortcuts

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