handlers

package
v0.0.0-...-0361e45 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCommonContext

func AddCommonContext(ctx context.Context) func(next http.Handler) http.Handler

Types

type BalanceHandler

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

func NewBalanceHandler

func NewBalanceHandler(manager repository.Repository) *BalanceHandler

func (*BalanceHandler) Balance

func (bh *BalanceHandler) Balance(res http.ResponseWriter, req *http.Request)

type CheckAuthenticationHandler

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

func NewCheckAuthenticationHandler

func NewCheckAuthenticationHandler(manager repository.Repository, session storage.SessionManager) *CheckAuthenticationHandler

func (*CheckAuthenticationHandler) Check

type OrderHandler

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

func NewOrderHandler

func NewOrderHandler(manager repository.Repository, orderService *orderService.OrderService, jobService *job.JobService, accrualService *accrual.AccrualService) *OrderHandler

func (*OrderHandler) OrderList

func (o *OrderHandler) OrderList(res http.ResponseWriter, req *http.Request)

func (*OrderHandler) UploadingOrder

func (o *OrderHandler) UploadingOrder(res http.ResponseWriter, req *http.Request)

type RegistrationHandler

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

func NewRegistrationHandler

func NewRegistrationHandler(manager repository.Repository, session storage.SessionManager) *RegistrationHandler

func (*RegistrationHandler) Authentication

func (r *RegistrationHandler) Authentication(res http.ResponseWriter, req *http.Request)

func (*RegistrationHandler) Registration

func (r *RegistrationHandler) Registration(res http.ResponseWriter, req *http.Request)

type TransactionHandler

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

func NewTransactionHandler

func NewTransactionHandler(db storage.DBQuery) *TransactionHandler

func (*TransactionHandler) Transaction

func (th *TransactionHandler) Transaction(next http.Handler) http.Handler

type WithdrawHandler

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

func NewWithdrawHandler

func NewWithdrawHandler(manager repository.Repository, orderService *orderService.OrderService) *WithdrawHandler

func (*WithdrawHandler) Withdraw

func (wh *WithdrawHandler) Withdraw(res http.ResponseWriter, req *http.Request)

func (*WithdrawHandler) WithdrawalsList

func (wh *WithdrawHandler) WithdrawalsList(res http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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