local

package
v0.0.0-...-c78c501 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLocalRepository

func NewLocalRepository() (shortner.RedirectRepository, error)

Types

type LocalRepository

type LocalRepository struct {
	// contains filtered or unexported fields
}

func (*LocalRepository) Find

func (r *LocalRepository) Find(code string) (*shortner.Redirect, error)

func (*LocalRepository) Store

func (r *LocalRepository) Store(redirect *shortner.Redirect) error

Jump to

Keyboard shortcuts

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