repository

package
v0.0.0-...-b17f1b0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Redirect

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

Redirect is an implementation of shortener.RedirectRepository

func NewRedirect

func NewRedirect(redisURL string) (*Redirect, error)

NewRedirect will create an implementation of shortener.RedirectRepository

func (*Redirect) Find

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

Find returns a pointer for shortener.Redirect

func (*Redirect) Store

func (r *Redirect) Store(redirect *shortener.Redirect) error

Store receives a pointer of shortener.Redirect and store in redis

Jump to

Keyboard shortcuts

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