storage

package
v0.0.0-...-6d5efb9 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node struct {
	pb.UnimplementedFileChannelServer

	Peer *peer.Peer
	// contains filtered or unexported fields
}

func NewNode

func NewNode(
	ctx context.Context,
	protocol protocol.Protocol,
	cfg *config.Config,
) (*Node, error)

func (*Node) Add

func (n *Node) Add(request pb.FileChannel_AddServer) error

func (*Node) Background

func (n *Node) Background() error

func (*Node) Move

func (n *Node) Move(ctx context.Context, request *pb.MoveRequest) (*pb.MoveReply, error)

func (*Node) Remove

func (n *Node) Remove(ctx context.Context, request *pb.RemoveRequest) (*pb.RemoveReply, error)

Jump to

Keyboard shortcuts

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