usecase

package
v0.0.0-...-0efd02e Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateURLToken

func GenerateURLToken(n int, src rand.Source) string

GenerateURLToken generates random base64URL string by given length taken from https://stackoverflow.com/a/31832326

func NewURLUsecase

func NewURLUsecase(u domain.URLRepository, timeout time.Duration, tracer trace.Tracer, urlExpiration int) domain.URLUsecase

NewURLUsecase will create new an urlUsecase object representation of url.Usecase interface

Types

This section is empty.

Jump to

Keyboard shortcuts

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