server

package
v0.0.0-...-720803e Latest Latest
Warning

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

Go to latest
Published: May 23, 2013 License: Zlib Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DIR = iota
	REPO
	FILE
)
View Source
const (
	RepoDirName = ".hg"
)

Variables

This section is empty.

Functions

func AcceptConnections

func AcceptConnections(c *config.Config)

Start the server, does not return.

func SetLoggers

func SetLoggers(err, auth, authFail *log.Logger)

Types

type Node

type Node struct {
	Name     string
	Type     int
	FullPath string
	Children []*Node
}
var Root Node

type Request

type Request struct {
	Cmd  string
	Args map[string]string
}

func (*Request) Get

func (r *Request) Get(param string, reply *Response) (string, bool)

type Response

type Response struct {
	Ok    bool
	Error string
}

Jump to

Keyboard shortcuts

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