v1

package
v0.0.0-...-070ce36 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2023 License: MIT Imports: 7 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(uc HandlerUseCase) *Handler

func (*Handler) CreateAd

func (h *Handler) CreateAd(w http.ResponseWriter, r *http.Request)

func (*Handler) GetAd

func (h *Handler) GetAd(w http.ResponseWriter, r *http.Request)

func (*Handler) GetAllAds

func (h *Handler) GetAllAds(w http.ResponseWriter, r *http.Request)

type HandlerUseCase

type HandlerUseCase interface {
	CreateAd(ctx context.Context, a entity.Ad) (uint64, error)
	GetAllAds(ctx context.Context, qc entity.QueryCredentials) ([]entity.Ad, error)
	GetAd(ctx context.Context, a entity.Ad) (entity.Ad, error)
}

Jump to

Keyboard shortcuts

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