db

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RedisClient *redis.Client

Functions

func Exist

func Exist(path string) (exists bool)

Return existence of path

func GetTime

func GetTime(path string) (timestamp time.Time, err error)

Return creation timestamp by short path

func GetURL

func GetURL(path string) (url string, err error)

Return long url by shorts path

func New

func New() *redis.Client

New redis client

func SetURL

func SetURL(path string, url string) (err error)

Set a path and it's corresponding long url

Types

This section is empty.

Jump to

Keyboard shortcuts

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