client

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 7 Imported by: 16

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoostCpuLimit

func BoostCpuLimit(client *srpc.Client) error

func CallFetch added in v0.3.2

func CallFetch(client *srpc.Client, request sub.FetchRequest,
	reply *sub.FetchResponse) error

func CallPoll

func CallPoll(client *srpc.Client, request sub.PollRequest,
	reply *sub.PollResponse) error

func CallUpdate

func CallUpdate(client *srpc.Client, request sub.UpdateRequest,
	reply *sub.UpdateResponse) error

func Cleanup

func Cleanup(client *srpc.Client, hashes []hash.Hash) error

func Fetch

func Fetch(client *srpc.Client, serverAddress string,
	hashes []hash.Hash) error

func GetConfiguration

func GetConfiguration(client *srpc.Client) (sub.Configuration, error)

func GetFiles

func GetFiles(client *srpc.Client, filenames []string,
	readerFunc func(reader io.Reader, size uint64) error) error

func SetConfiguration

func SetConfiguration(client *srpc.Client, config sub.Configuration) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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