storage

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: 7 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

This section is empty.

Types

type Storage

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

func New

func New(c *conf.Config) Storage

type URL

type URL struct {
	ID  string `db:"id"`
	URL string `db:"url"`
}

Jump to

Keyboard shortcuts

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