mirror

package
v0.0.0-...-8680d15 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2015 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Info(s string)
	Error(s string)
}

type Mirror

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

func New

func New(addrs []string, path string, updated chan<- string, logger Logger) (*Mirror, error)

func (*Mirror) Get

func (m *Mirror) Get(key string) *Node

type Node

type Node struct {
	Dir   bool
	Value string
	Sub   map[string]struct{}
}

Jump to

Keyboard shortcuts

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