rpcserver

package
v2.1.21 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: Apache-2.0 Imports: 47 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResultSender added in v2.0.6

type ResultSender interface {
	Send(*dfdaemonv1.DownResult) error
}

type Server

type Server interface {
	util.KeepAlive
	ServeDownload(listener net.Listener) error
	ServePeer(listener net.Listener) error
	OnNotify(*config.DynconfigData)
	Stop()
}

func New added in v2.0.1

func New(peerHost *schedulerv1.PeerHost, peerTaskManager peer.TaskManager,
	storageManager storage.Manager, recursiveConcurrent int, cacheRecursiveMetadata time.Duration,
	downloadOpts []grpc.ServerOption, peerOpts []grpc.ServerOption) (Server, error)

Directories

Path Synopsis
Code generated by MockGen.
Code generated by MockGen.

Jump to

Keyboard shortcuts

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