internal

package
v0.0.0-...-3c7fcfe Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrRouteNotFound = errors.New("route not found")

Functions

This section is empty.

Types

type Route

type Route struct {
	URL  string    `json:"url"`
	Time time.Time `json:"time"`
}

Route is the value part of a shortcut.

func (*Route) Read

func (o *Route) Read(r io.Reader) error

Deserialize this Route from the given Reader.

func (*Route) Write

func (o *Route) Write(w io.Writer) error

Serialize this Route into the given Writer.

type RouteIterator

type RouteIterator interface {
	Valid() bool
	Next() bool
	Seek(string) bool
	Error() error
	Name() string
	Route() *Route
	Release()
}

RouteIterator allows iteration of the named routes in the store.

Jump to

Keyboard shortcuts

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