handler

package
v0.0.0-...-a5060b6 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

func NewHandler

func NewHandler(dbConn *pgxpool.Pool) *Handler

func (*Handler) BookingsBookingIDGet

func (h *Handler) BookingsBookingIDGet(ctx context.Context, params api.BookingsBookingIDGetParams) (api.BookingsBookingIDGetRes, error)

func (*Handler) BookingsBookingIDPut

func (h *Handler) BookingsBookingIDPut(ctx context.Context, params api.BookingsBookingIDPutParams) (api.BookingsBookingIDPutRes, error)

func (*Handler) BookingsGet

func (h *Handler) BookingsGet(ctx context.Context, params api.BookingsGetParams) ([]api.Booking, error)

func (*Handler) BookingsPost

func (h *Handler) BookingsPost(ctx context.Context, req *api.NewBooking) (*api.Booking, error)

func (*Handler) NewError

func (h *Handler) NewError(ctx context.Context, err error) *api.ErrorStatusCode

func (*Handler) PingGet

func (h *Handler) PingGet(ctx context.Context) (*api.PingGetOK, error)

func (*Handler) UsersLoginPost

func (h *Handler) UsersLoginPost(ctx context.Context, req *api.LoginUser) (api.UsersLoginPostRes, error)

func (*Handler) UsersPost

func (h *Handler) UsersPost(ctx context.Context, req *api.NewUser) (*api.User, error)

func (*Handler) UsersUserIDDelete

func (h *Handler) UsersUserIDDelete(ctx context.Context, params api.UsersUserIDDeleteParams) (api.UsersUserIDDeleteRes, error)

func (*Handler) UsersUserIDGet

func (h *Handler) UsersUserIDGet(ctx context.Context, params api.UsersUserIDGetParams) (api.UsersUserIDGetRes, error)

type SecurityHandler

type SecurityHandler struct{}

func NewSecurityHandler

func NewSecurityHandler() *SecurityHandler

func (*SecurityHandler) HandleBearerAuth

func (s *SecurityHandler) HandleBearerAuth(ctx context.Context, operationName string, t api.BearerAuth) (context.Context, error)

Jump to

Keyboard shortcuts

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