presentation

package
v0.0.0-...-ad95247 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2025 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssetsHandler

type AssetsHandler struct {
	FS fs.FS
}

func NewAssetsHandler

func NewAssetsHandler(assetsFS fs.FS) (*AssetsHandler, error)

func (AssetsHandler) Endpoints

func (h AssetsHandler) Endpoints() []api.Endpoint

type FilesHandler

type FilesHandler struct {
	FileEntriesRepo ports.FileEntriesRepository
	UserReadRepo    ports.UserReadRepository
}

func NewFilesHandler

func NewFilesHandler(
	fileEntriesRepo ports.FileEntriesRepository,
	userReadRepo ports.UserReadRepository,
) *FilesHandler

func (FilesHandler) Endpoints

func (h FilesHandler) Endpoints() []api.Endpoint

func (FilesHandler) ViewFileList

func (h FilesHandler) ViewFileList(writer http.ResponseWriter, req *http.Request)

type RootHandler

type RootHandler struct {
}

func NewRootHandler

func NewRootHandler() *RootHandler

func (RootHandler) Endpoints

func (h RootHandler) Endpoints() []api.Endpoint

func (RootHandler) HandleIndex

func (h RootHandler) HandleIndex(w http.ResponseWriter, req *http.Request)

type UserHandler

type UserHandler struct {
	Registration ports.UserRegistration
	Auth         ports.UserAuthenticator
	TokenBuilder ports.SessionTokenBuilder
	CookieConfig config.CookieConfig
}

func NewUserHandler

func NewUserHandler(
	registration ports.UserRegistration,
	auth ports.UserAuthenticator,
	tokenBuilder ports.SessionTokenBuilder,
	cookieConfig config.CookieConfig,
) *UserHandler

func (UserHandler) Endpoints

func (h UserHandler) Endpoints() []api.Endpoint

func (UserHandler) LoginUser

func (h UserHandler) LoginUser(w http.ResponseWriter, req *http.Request)

func (UserHandler) LogoutUser

func (h UserHandler) LogoutUser(w http.ResponseWriter, req *http.Request)

func (UserHandler) RegisterUser

func (h UserHandler) RegisterUser(w http.ResponseWriter, req *http.Request)

func (UserHandler) ViewLogin

func (h UserHandler) ViewLogin(w http.ResponseWriter, req *http.Request)

func (UserHandler) ViewRegistration

func (h UserHandler) ViewRegistration(w http.ResponseWriter, req *http.Request)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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