api

package
Version: v0.0.0-...-b9fc4cf Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2019 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGitHandler

func NewGitHandler(
	path string,
	rdb Storage,
	node raft.Node,
	logger logging.Logger,
) *httpGitAPI

func NewHandler

func NewHandler(db Storage, raft raft.Node) http.Handler

serveHttpKVAPI starts a key-value server with a GET/PUT API and listens.

Types

type Service

type Service int
const (
	Service_Invalid Service = iota
	Service_UploadPack
	Service_ReceivePack
)

type Storage

type Storage interface {
	Snapshot() (pb.Snapshot, error)
	GetAllRefs() (map[string]refs.Hash, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL