Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
LinkerUseCase LinkerUseCase.LinkerUseCase
}
func MakeHandler ¶
func MakeHandler(linker LinkerUseCase.LinkerUseCase) Handler
func (Handler) Count ¶
Count godoc @Summary Count @Description getting counting by bash @Tags linker @Produce application/json @Param hash path string true "hash to be counted" @Success 200 {object} webUtils.Success @Failure 404 {object} webUtils.Error "Not found" @Router /count/{hash} [get]
func (Handler) Create ¶
Create godoc @Summary Create @Description creating hash by url or return existing hash @Tags linker @Accept application/json @Produce application/json @Param Url body linkerProto.UrlWrapper true "url to hash" @Success 200 {object} webUtils.Success @Failure 400 {object} webUtils.Error "Data is invalid" @Router / [post]