endpoints

package
v0.0.0-...-890f6be Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeCreateShortURLEndpoint

func MakeCreateShortURLEndpoint(svc biz.IShorteningBiz) endpoint.Endpoint

MakeCreateShortURLEndpoint returns an endpoint via the passed service.

func MakeGetShortURLEndpoint

func MakeGetShortURLEndpoint(svc biz.IShorteningBiz) endpoint.Endpoint

MakeGetShortURLEndpoint returns an endpoint via the passed service.

Types

type CreateShortURLRequest

type CreateShortURLRequest struct {
	URL string `json:"url"`
}

CreateShortURLRequest create short url request struct.

type GetShortURLRequest

type GetShortURLRequest struct {
	URL string `json:"url"`
}

GetShortURLRequest get short url request struct.

Jump to

Keyboard shortcuts

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