1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-24 22:38:27 +08:00

write a few package doc strings to improve look of godoc

This commit is contained in:
Jeromy
2014-11-08 13:43:43 -08:00
parent 7ba3cadb6d
commit 4f083d54d6
23 changed files with 38 additions and 8 deletions

View File

@ -1,3 +1,5 @@
// package blocks contains the lowest level of ipfs data structures,
// the raw block with a checksum.
package blocks
import (

View File

@ -1,3 +1,4 @@
// package bloom implements a simple bloom filter.
package bloom
import (

View File

@ -1,3 +1,4 @@
// package set contains various different types of 'BlockSet's
package set
import (
@ -7,6 +8,7 @@ import (
var log = util.Logger("blockset")
// BlockSet represents a mutable set of keyed blocks
type BlockSet interface {
AddBlock(util.Key)
RemoveBlock(util.Key)

View File

@ -1,3 +1,6 @@
// package blockservice implements a BlockService interface that provides
// a single GetBlock/AddBlock interface that seamlessly retrieves data either
// locally or from a remote peer through the exchange.
package blockservice
import (

View File

@ -1,3 +1,5 @@
// package blockstore implements a thin wrapper over a datastore, giving a
// clean interface for Getting and Putting block objects.
package blockstore
import (

View File

@ -1,3 +1,4 @@
// package config implements the ipfs config file datastructures and utilities.
package config
import (

View File

@ -1,3 +1,6 @@
// package crypto implements various cryptographic utilities used by ipfs.
// This includes a Public and Private key interface and an RSA key implementation
// that satisfies it.
package crypto
import (

View File

@ -1,5 +1,4 @@
// Package spipe handles establishing secure communication between two peers.
// package spipe handles establishing secure communication between two peers.
package spipe
import (

View File

@ -1,3 +1,6 @@
// package diagnostics implements a network diagnostics service that
// allows a request to traverse the network and gather information
// on every node connected to it.
package diagnostics
import (

View File

@ -1,3 +1,5 @@
// package fuse/ipns implements a fuse filesystem that interfaces
// with ipns, the naming system for ipfs.
package ipns
import (

View File

@ -1,7 +1,7 @@
// A Go mirror of libfuse's hello.c
// +build linux darwin freebsd
// package fuse/readonly implements a fuse filesystem to access files
// stored inside of ipfs.
package readonly
import (

View File

@ -1,3 +1,4 @@
// package chunk implements streaming block splitters
package chunk
import (

View File

@ -1,3 +1,5 @@
// package importer implements utilities used to create ipfs DAGs from files
// and readers
package importer
import (

View File

@ -1,3 +1,4 @@
// package merkledag implements the ipfs Merkle DAG datastructures.
package merkledag
import (

View File

@ -1,3 +1,4 @@
// package path implements utilities for resolving paths within ipfs.
package path
import (

View File

@ -1,3 +1,4 @@
// package peer implements an object used to represent peers in the ipfs network.
package peer
import (

View File

@ -1,3 +1,5 @@
// package dht implements a distributed hash table that satisfies the ipfs routing
// interface. This DHT is modeled after kademlia with Coral and S/Kademlia modifications.
package dht
import (

View File

@ -1,4 +1,4 @@
package dht
package kbucket
import (
"container/list"

View File

@ -1,4 +1,5 @@
package dht
// package kbucket implements a kademlia 'k-bucket' routing table.
package kbucket
import (
"container/list"

View File

@ -1,4 +1,4 @@
package dht
package kbucket
import (
crand "crypto/rand"

View File

@ -1,4 +1,4 @@
package dht
package kbucket
import (
"bytes"

View File

@ -1,3 +1,4 @@
// package routing defines the interface for a routing system used by ipfs.
package routing
import (

View File

@ -1,3 +1,5 @@
// package util implements various utility functions used within ipfs
// that do not currently have a better place to live.
package util
import (