server

package
v0.0.0-...-33e5404 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Repository

func Repository(db *sqlx.DB) *repository

nolint

func Usecase

func Usecase(
	repo *repository,
) *usecase

nolint

Types

type App

type App struct {
	Logger  *logrus.Logger
	Metrics *metrics.Store
	// contains filtered or unexported fields
}

func New

func New(logger *logrus.Logger, metrics *metrics.Store, usecase *usecase, repo *repository) *App

func (*App) RegisterRoutes

func (a *App) RegisterRoutes(r chi.Router)

func (*App) RunHTTPServer

func (a *App) RunHTTPServer(ctx context.Context, g *errgroup.Group, appPort uint, router http.Handler)

Jump to

Keyboard shortcuts

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