db

package
v0.0.0-...-45f7050 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pool

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

func New

func New() *Pool

func (*Pool) GetConn

func (p *Pool) GetConn() redis.Conn

func (*Pool) InsertRecord

func (p *Pool) InsertRecord(status model.URLStatus) error

func (*Pool) LookupRecord

func (p *Pool) LookupRecord(URL string) (model.URLStatus, error)

func (*Pool) Start

func (p *Pool) Start(protocol, ip, port string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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