delivery

package
v0.0.0-...-2fe0e47 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	// contains filtered or unexported fields
}

func GetApi

func GetApi(c *usecase.Core, l *slog.Logger) *API

func (*API) AuthAccept

func (a *API) AuthAccept(w http.ResponseWriter, r *http.Request)

func (*API) ChangeUserRole

func (a *API) ChangeUserRole(w http.ResponseWriter, r *http.Request)

func (*API) GetCsrfToken

func (a *API) GetCsrfToken(w http.ResponseWriter, r *http.Request)

func (*API) GetUsers

func (a *API) GetUsers(w http.ResponseWriter, r *http.Request)

func (*API) IsSubcribed

func (a *API) IsSubcribed(w http.ResponseWriter, r *http.Request)

func (*API) ListenAndServe

func (a *API) ListenAndServe() error

func (*API) LogoutSession

func (a *API) LogoutSession(w http.ResponseWriter, r *http.Request)

func (*API) Profile

func (a *API) Profile(w http.ResponseWriter, r *http.Request)

func (*API) Signin

func (a *API) Signin(w http.ResponseWriter, r *http.Request)

func (*API) Signup

func (a *API) Signup(w http.ResponseWriter, r *http.Request)

func (*API) SubcribePush

func (a *API) SubcribePush(w http.ResponseWriter, r *http.Request)

type IApi

type IApi interface {
	SendResponse(w http.ResponseWriter, response requests.Response)
	Signin(w http.ResponseWriter, r *http.Request)
	SigninResponse(w http.ResponseWriter, r *http.Request)
	Signup(w http.ResponseWriter, r *http.Request)
	LogoutSession(w http.ResponseWriter, r *http.Request)
	AuthAccept(w http.ResponseWriter, r *http.Request)
}

Jump to

Keyboard shortcuts

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