server

package
v0.0.0-...-2ed53ce Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ServerCmd = &cobra.Command{
	Use:   "serve [no options!]",
	Short: "Start application server",
	RunE:  run,
}

Functions

func NewDB

func NewDB(lc fx.Lifecycle, logger *gofx.Logger, cfg *config.Config) *pgxpool.Pool

func NewDBRepo

func NewDBRepo(db *pgxpool.Pool) *dbrepo.Queries

func NewWaCli

func NewWaCli(lc fx.Lifecycle, cfg *config.Config, pool *pgxpool.Pool, ev whatsapp.EventHandler) *whatsapp.Client

func RegisterRouters

func RegisterRouters(
	middleware *Middleware.Handler,
	homepage *Homepage.Handler,
	device *Device.Handler,
	static *Static.Handler,
	exception *Exception.Handler,
	project *Project.Handler,
) *gofx.Router

Types

type CustomValidator

type CustomValidator struct {
	Validator *validator.Validate
}

func (*CustomValidator) Validate

func (cv *CustomValidator) Validate(i any) error

Jump to

Keyboard shortcuts

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