Documentation ¶
Index ¶
- Variables
- func ErrorJSON(errorMessage string) string
- func InjectLoggerIntoContext(r *http.Request, entry *slog.Logger) *http.Request
- func LogError(logger *slog.Logger, err error)
- func MustBuildLogger(config Config) *slog.Logger
- func MustGetLogger(r *http.Request) *slog.Logger
- func NewSilentLogger() *slog.Logger
- func RequestBuilder(method string, path string) func(request string) *http.Request
- type Config
- type Mailjet
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoLoggerInContext = errors.New("no logger in context")
View Source
var SESSION_TTL = 5 * 24 * time.Hour
Functions ¶
func InjectLoggerIntoContext ¶
func MustBuildLogger ¶
func NewSilentLogger ¶
Types ¶
type Config ¶
type Config struct { DBHost string DBName string DBPass string DBPort uint DBUser string Domain string Port string GoEnv string RequireVerification bool Mailjet Mailjet VerificationLink string ForgetPasswordLink string Sender string RedisPort uint RedisHost string RedisPassword string RedisDatabase int SessionCookie string }
func BuildConfigFromEnv ¶
func (Config) GetConnectionString ¶
func (Config) HasEmailSetup ¶
Click to show internal directories.
Click to hide internal directories.