primary

package
v0.0.0-...-700b64f Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2022 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 PrimaryHandler

type PrimaryHandler struct {
	Fs3processor *fs3processor.Fs3RequestProcessor
	PBClient     primarybackup.BackupClient
	Logger       *log.Logger
	fs3.UnimplementedFs3Server
}

func NewPrimaryHandler

func NewPrimaryHandler(logger *log.Logger) *PrimaryHandler

func (*PrimaryHandler) Copy

func (handler *PrimaryHandler) Copy(
	ctx context.Context,
	req *fs3.CopyRequest,
) (reply *fs3.CopyReply, err error)

func (*PrimaryHandler) Describe

func (handler *PrimaryHandler) Describe(
	ctx context.Context,
	req *fs3.DescribeRequest,
) (*fs3.DescribeReply, error)

func (*PrimaryHandler) Get

func (handler *PrimaryHandler) Get(
	ctx context.Context,
	req *fs3.GetRequest,
) (*fs3.GetReply, error)

no need to forward, optimization

func (*PrimaryHandler) Remove

func (handler *PrimaryHandler) Remove(
	ctx context.Context,
	req *fs3.RemoveRequest,
) (reply *fs3.RemoveReply, err error)

func (*PrimaryHandler) VerifyPBClient

func (handler *PrimaryHandler) VerifyPBClient()

before using PBClient, functions should call VerifyPBClient which lazily creates connection to backup

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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