shortener

package
v0.0.0-...-7d27a18 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Options(fx.Provide(New))

Module for go fx

Functions

func RandStringBytes

func RandStringBytes(n int) string

Types

type Shortener

type Shortener interface {
	Save(ctx context.Context, url string) (string, error)
	Load(ctx context.Context, key string) (string, error)
}

func New

func New(storage storage.Storage) Shortener

Jump to

Keyboard shortcuts

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