redisurl

package module
v0.0.0-...-86d77c4 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2014 License: MIT Imports: 3 Imported by: 2

README

redisurl

Parses a redis url and returns a struct with the result

url = redisurl.Parse("redis://username:s3cr37@somewhere:6380/9")
// url.Port
// 6380
// url.Database
// 9
// url.Host
// somewhere
// url.Password
// s3cr37

You can also use .Url to get a Redis compatible string.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Url

type Url struct {
	Password string
	Host     string
	Port     int
	Database int
	Url      string
}

func Parse

func Parse(redisurl string) *Url

Jump to

Keyboard shortcuts

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