package
Version:
v0.0.0-...-3133c99
Opens a new window with list of versions in this module.
Published: Jun 4, 2024
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Config struct {
Address string `yaml:"address"`
Port int `yaml:"port" validate:"required"`
}
Config contains configuration options for the Server.
type Dependencies struct {
UsersRepo usersRepo `validate:"required"`
}
Config contains all dependencies needed by business logic.
Server implements application HTTP server.
Business logic is implemented in server endpoint functions.
New creates new HTTP server for the microservice.
Serve starts serving endpoints. Handles graceful shutdown.
Blocking.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.