impl

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoKey = errors.New("(impl) no such key")
View Source
var ErrNoProto = errors.New("no proto")

Functions

func Copy

func Copy(a, b Impl) error

Types

type Impl

type Impl interface {
	Keys() ([]string, error)
	Get(k string, v interface{}) error
	Set(k string, v interface{}) error
	Del(k string) error
	Close() error
}

type Opts

type Opts map[string]string

func ParseOpts

func ParseOpts(uri string) (string, string, Opts, error)

func ParseOptsURL

func ParseOptsURL(u *url.URL) (string, string, Opts, error)

func (Opts) Frag

func (o Opts) Frag(def string) string

func (Opts) Get

func (o Opts) Get(key, def string) string

func (Opts) GetAny

func (o Opts) GetAny(keys []string, def string) string

func (Opts) Pass

func (o Opts) Pass(def string) string

func (Opts) Path

func (o Opts) Path(def string) string

func (Opts) Port

func (o Opts) Port(def uint) uint

func (Opts) User

func (o Opts) User(def string) string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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