handler

package
v0.0.0-...-e10dee8 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 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 LinkHandler

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

func NewLinkHandler

func NewLinkHandler(usecase LinkUsecase) *LinkHandler
func (h *LinkHandler) CreateLink(ctx *gin.Context)
func (h *LinkHandler) GetLink(ctx *gin.Context)

type LinkUsecase

type LinkUsecase interface {
	GetFullLink(ctx context.Context, token string) (string, error)
	CreateShortLink(ctx context.Context, linkRequest *dto.CreateLinkRequest) (*model.Link, error)
}

Directories

Path Synopsis
Package mock_handler is a generated GoMock package.
Package mock_handler is a generated GoMock package.

Jump to

Keyboard shortcuts

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