Documentation ¶
Index ¶
- func LaunchServer(cfg *configuration.AppConfiguration, logger *log.Logger) error
- func NewRouter(ctx context.Context, cfg *configuration.AppConfiguration, logger *log.Logger) *routing.Router
- func NewSessionRepository(ctx context.Context, cfg *configuration.AppConfiguration) (domain.SessionRepository, error)
- func NewSessionService(r domain.SessionRepository, cfg *configuration.AppConfiguration) (*service.SessionService, error)
- func NewUserRepository(ctx context.Context, cfg *configuration.AppConfiguration, logger *log.Logger) (domain.Repository, error)
- func NewUserService(r domain.Repository, logger *log.Logger) (*service.UserService, error)
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 NewSessionRepository ¶
func NewSessionRepository(ctx context.Context, cfg *configuration.AppConfiguration) (domain.SessionRepository, error)
func NewSessionService ¶
func NewSessionService(r domain.SessionRepository, cfg *configuration.AppConfiguration) (*service.SessionService, error)
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.
Click to show internal directories.
Click to hide internal directories.