server

package
v0.0.0-...-9021772 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2019 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateLocalFileMetaResponse

func CreateLocalFileMetaResponse(path string, ignores []string) (*protocol.SyncResponse, error)

Types

type ServiceProvider

type ServiceProvider struct{}

func (*ServiceProvider) Boot

func (s *ServiceProvider) Boot(app *glacier.Glacier)

func (*ServiceProvider) Daemon

func (s *ServiceProvider) Daemon(ctx context.Context, app *glacier.Glacier)

func (*ServiceProvider) Register

func (s *ServiceProvider) Register(app *container.Container)

type SyncServer

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

SyncServer is a implement for Server side GRPC

func NewSyncServer

func NewSyncServer(bufferSize int64, statusStore storage.JobStatusStore) *SyncServer

NewSyncServer create a new SyncServer

func (*SyncServer) RelayInfo

RelayInfo 检查是否同步任务有更新

func (*SyncServer) SyncFile

Download 文件下载服务

func (*SyncServer) SyncMeta

Sync 文件元信息同步

Jump to

Keyboard shortcuts

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