Documentation
¶
Index ¶
- type DHT
- type FullNode
- func (fn *FullNode) CreateGRPCServer(grpcServerAddress string)
- func (fn *FullNode) FindNode(ctx context.Context, target *pb.Target) (*pb.KBucket, error)
- func (fn *FullNode) FindValue(target *pb.Target, stream pb.FullNode_FindValueServer) error
- func (fn *FullNode) GetValue(target string, start int64, end int64) ([]byte, error)
- func (fn *FullNode) LookUp(target []byte) ([]structs.Node, error)
- func (fn *FullNode) Ping(ctx context.Context, sender *pb.Node) (*pb.Node, error)
- func (fn *FullNode) PrintRoutingTable()
- func (fn *FullNode) Republish()
- func (fn *FullNode) Store(stream pb.FullNode_StoreServer) error
- func (fn *FullNode) StoreValue(key string, data *[]byte) (string, error)
- type FullNodeClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DHT ¶
type DHT struct { structs.Node RoutingTable *structs.RoutingTable Storage interfaces.Persistence }
type FullNode ¶
type FullNode struct { pb.UnimplementedFullNodeServer // contains filtered or unexported fields }
func NewFullNode ¶
func NewFullNode(nodeIP string, nodePort, bootstrapPort int, storage interfaces.Persistence, isBootstrapNode bool) *FullNode
func (*FullNode) CreateGRPCServer ¶ added in v0.4.4
Create gRPC Server
func (*FullNode) PrintRoutingTable ¶
func (fn *FullNode) PrintRoutingTable()
type FullNodeClient ¶
type FullNodeClient struct { pb.FullNodeClient IP string Port int }
func NewClientNode ¶
func NewClientNode(ip string, port int) *FullNodeClient
Click to show internal directories.
Click to hide internal directories.