api

package
v0.0.0-...-4a192ad Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: MIT Imports: 10 Imported by: 0

README

API should depend only on the domain logic, not repository

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAPI

func NewAPI(ctx context.Context, opts ApiOpts) *chi.Mux

Types

type ApiOpts

type ApiOpts struct {
	TlsEnabled bool
	Addr       string
	Port       int
	ApiPrefix  string
	ThisURL    string

	SMTPConfig config.SMTPConfig
	URepo      userRepo.UsersRepository
	MRepo      mailRepo.MailVerificationRepository
	Logger     *slog.Logger
}

Directories

Path Synopsis
reg

Jump to

Keyboard shortcuts

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