client

package
v0.1.1-fix-5 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type P2PClient

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

P2PClient is a p2p server gRPC service client wrapper

func NewP2PClient

func NewP2PClient(address string) (*P2PClient, error)

NewP2PClient return a P2PClient instance

func (*P2PClient) Close

func (p *P2PClient) Close() error

Close the p2p server gPRC connection

func (*P2PClient) GetApproval

func (p *P2PClient) GetApproval(ctx context.Context, object *storagetypes.ObjectInfo, expected int64, timeout int64, opts ...grpc.CallOption) (
	map[string]*p2ptypes.GetApprovalResponse, map[string]*p2ptypes.GetApprovalResponse, error)

GetApproval asks the approval to other SP.

Jump to

Keyboard shortcuts

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