httpi

package
v0.0.0-...-b56a858 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FinishBatch

type FinishBatch interface {
	FinishBatch() error
}

type Server

type Server struct {
	Node string
	DBN  string
	Vec  replicator.TimeVec
	Log  replicator.LocalUpdateLog
	Api  api.StorageFacade
}

func (*Server) Register

func (s *Server) Register(r *httprouter.Router)

type StartBatch

type StartBatch interface {
	StartBatch() api.StorageFacade
}

type Syncer

type Syncer struct {
	DBN    string
	Shared *http.Client
	Vec    replicator.TimeVec
	Api    api.StorageFacade
}

func (*Syncer) GetVersion

func (s *Syncer) GetVersion(node, addr string) (*time.Time, error)

func (*Syncer) SyncWith

func (s *Syncer) SyncWith(node, addr string, remote *time.Time) error

Jump to

Keyboard shortcuts

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