rest

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRouter

func NewRouter(server *SyncServer) *mux.Router

NewRouter creates and configures a mux router

func Server

func Server(port string, filePath string, syncFileOps SyncFileOperations) error

func TestServer

func TestServer(port string, filePath string, timeout int)

TestServer daemon serves only one connection for each test then exits

Types

type SyncFileOperations

type SyncFileOperations interface {
	UpdateSyncFileProgress(size int64)
}

type SyncFileStub

type SyncFileStub struct{}

func (*SyncFileStub) UpdateSyncFileProgress

func (f *SyncFileStub) UpdateSyncFileProgress(size int64)

type SyncServer

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

Jump to

Keyboard shortcuts

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