http

package
v0.0.0-...-1fa16a9 Latest Latest
Warning

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

Go to latest
Published: May 26, 2023 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpServer

type HttpServer interface {
	Start(context.Context)
	Shutdown(ctx context.Context) error
}

func NewHttpServer

func NewHttpServer(
	logger common.Logger,
	settings settings.Settings,
	getChallenge *usecases.GetChallenge,
	signin *usecases.Signin,
	authenticate *usecases.Authenticate,
	rateLimit *usecases.RateLimit,
	createThread *usecases.CreateThread,
	getThread *usecases.GetThread,
	getThreads *usecases.GetThreads,
	deleteThread *usecases.DeleteThread,
	createVote *usecases.CreateVote,
	createComment *usecases.CreateComment,
	getComments *usecases.GetComments,
	deleteComment *usecases.DeleteComment,
	uploadImage *usecases.UploadImage,
	getUser *usecases.GetUser) HttpServer

Jump to

Keyboard shortcuts

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