handler

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2021 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(s micro.Service, c *dig.Container) error

Types

type ActionHandler

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

CityHandler ...

func NewActionHandler

func NewActionHandler(
	action service.ActionService,
) *ActionHandler

NewCityHandler ...

func (*ActionHandler) Create

Create ...

func (*ActionHandler) Delete

func (h *ActionHandler) Delete(ctx context.Context, req *pb_action.DeleteRequest, rsp *empty.Empty) error

Delete ...

func (*ActionHandler) Get

Get ...

func (*ActionHandler) Paginate

Paginate ...

func (*ActionHandler) Update

Update ...

type BrandHandler

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

CityHandler ...

func NewBrandHandler

func NewBrandHandler(
	brand service.BrandService,
) *BrandHandler

NewCityHandler ...

func (*BrandHandler) Create

func (h *BrandHandler) Create(ctx context.Context, req *pb_brand.Request, rsp *pb_brand.Response) error

Create ...

func (*BrandHandler) Delete

func (h *BrandHandler) Delete(ctx context.Context, req *pb_brand.DeleteRequest, rsp *empty.Empty) error

Delete ...

func (*BrandHandler) Get

Get ...

func (*BrandHandler) Paginate

Paginate ...

func (*BrandHandler) Update

func (h *BrandHandler) Update(ctx context.Context, req *pb_brand.Request, rsp *pb_brand.Response) error

Update ...

type CollectionHandler

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

CityHandler ...

func NewCollectionHandler

func NewCollectionHandler(
	collection service.CollectionService,
) *CollectionHandler

NewCityHandler ...

func (*CollectionHandler) Create

Create ...

func (*CollectionHandler) Delete

Delete ...

func (*CollectionHandler) Get

Get ...

func (*CollectionHandler) Paginate

Paginate ...

func (*CollectionHandler) Update

Update ...

type FaqHandler

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

CityHandler ...

func NewFaqHandler

func NewFaqHandler(
	faq service.FaqService,
) *FaqHandler

NewCityHandler ...

func (*FaqHandler) Create

func (h *FaqHandler) Create(ctx context.Context, req *pb_faq.Request, rsp *pb_faq.Response) error

Create ...

func (*FaqHandler) Delete

func (h *FaqHandler) Delete(ctx context.Context, req *pb_faq.DeleteRequest, rsp *empty.Empty) error

Delete ...

func (*FaqHandler) Get

func (h *FaqHandler) Get(ctx context.Context, req *pb_faq.GetRequest, rsp *pb_faq.Response) error

Get ...

func (*FaqHandler) Paginate

Paginate ...

func (*FaqHandler) Update

func (h *FaqHandler) Update(ctx context.Context, req *pb_faq.Request, rsp *pb_faq.Response) error

Update ...

type GalleryHandler

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

CityHandler ...

func NewGalleryHandler

func NewGalleryHandler(
	gallery service.GalleryService,
) *GalleryHandler

NewCityHandler ...

func (*GalleryHandler) Create

Create ...

func (*GalleryHandler) Delete

Delete ...

func (*GalleryHandler) Get

Get ...

func (*GalleryHandler) Paginate

Paginate ...

func (*GalleryHandler) Update

Update ...

type NewsHandler

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

CityHandler ...

func NewNewsHandler

func NewNewsHandler(
	news service.NewsService,
) *NewsHandler

NewCityHandler ...

func (*NewsHandler) Create

func (h *NewsHandler) Create(ctx context.Context, req *pb_news.Request, rsp *pb_news.Response) error

Create ...

func (*NewsHandler) Delete

func (h *NewsHandler) Delete(ctx context.Context, req *pb_news.DeleteRequest, rsp *empty.Empty) error

Delete ...

func (*NewsHandler) Get

Get ...

func (*NewsHandler) Paginate

Paginate ...

func (*NewsHandler) Update

func (h *NewsHandler) Update(ctx context.Context, req *pb_news.Request, rsp *pb_news.Response) error

Update ...

type PromotionHandler

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

CityHandler ...

func NewPromotionHandler

func NewPromotionHandler(
	promotion service.PromotionService,
) *PromotionHandler

NewCityHandler ...

func (*PromotionHandler) Create

Create ...

func (*PromotionHandler) Delete

Delete ...

func (*PromotionHandler) Get

Get ...

func (*PromotionHandler) Paginate

Paginate ...

func (*PromotionHandler) Update

Update ...

type SliderHandler

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

CityHandler ...

func NewSliderHandler

func NewSliderHandler(
	slider service.SliderService,
) *SliderHandler

NewCityHandler ...

func (*SliderHandler) Create

Create ...

func (*SliderHandler) Delete

func (h *SliderHandler) Delete(ctx context.Context, req *pb_slider.DeleteRequest, rsp *empty.Empty) error

Delete ...

func (*SliderHandler) Get

Get ...

func (*SliderHandler) Paginate

Paginate ...

func (*SliderHandler) Update

Update ...

Jump to

Keyboard shortcuts

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