shortlink

package
v0.3.20 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	Shorten(ctx context.Context, req *ServiceRequest) *ServiceResponse
}

Service defines the short link generation service interface.

type ServiceRequest

type ServiceRequest struct {
	URL string `json:"url,omitempty"`
}

ServiceRequest represents the service short link generation inputs.

type ServiceResponse

type ServiceResponse struct {
	URL       string `json:"url,omitempty"`
	ShortLink string `json:"shortLink,omitempty"`
}

ServiceResponse represents the short link generation service outputs.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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