web

package
v0.0.0-...-9841d36 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2021 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LaunchServer

func LaunchServer(cfg *configuration.AppConfiguration, logger *log.Logger) error

LaunchServer starts a web server and propagates shutdown context.

func NewRouter

func NewRouter(ctx context.Context, cfg *configuration.AppConfiguration, logger *log.Logger) *routing.Router

NewRouter creates a mux with mounted routes and instantiates respective dependencies.

func NewUserRepository

func NewUserRepository(ctx context.Context, cfg *configuration.AppConfiguration, logger *log.Logger) (domain.Repository, error)

func NewUserService

func NewUserService(r domain.Repository, logger *log.Logger) (*service.UserService, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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