domain

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthHandler

type AuthHandler interface {
	Login(w http.ResponseWriter, r *http.Request)
	Register(w http.ResponseWriter, r *http.Request)
}

type AuthMiddleware

type AuthMiddleware interface {
	WithAuth(handler http.HandlerFunc) http.HandlerFunc
}

type DataHandler

type DataHandler interface {
	CreateConnection(http.ResponseWriter, *http.Request)
	SaveData(http.ResponseWriter, *http.Request)
	GetData(http.ResponseWriter, *http.Request)
	GetSum(http.ResponseWriter, *http.Request)
}

type HttpAuthService

type HttpAuthService struct {
	Handlers    AuthHandler
	Middlewares AuthMiddleware
}

func NewAuthService

func NewAuthService(hand AuthHandler, mid AuthMiddleware) *HttpAuthService

type HttpDataService

type HttpDataService struct {
	Handler DataHandler
}

func NewDataService

func NewDataService(handler DataHandler) *HttpDataService

Jump to

Keyboard shortcuts

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