app

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: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(cfg *config.Config)

@title Go ShortLinkAPI @version 1.0 @description Golang REST API for creating, handling short links. @contact.name Grigory Kovalenko @contact.url https://github.com/CodeMaster482 @contact.email grigorikovalenko@gmail.com @BasePath /

Types

type LinkRepository

type LinkRepository interface {
	GetLink(ctx context.Context, token string) (*model.Link, error)
	StoreLink(ctx context.Context, link *model.Link) error
	StartRecalculation(interval time.Duration, deleted chan []string)
}

Jump to

Keyboard shortcuts

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