1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-07-27 06:02:33 +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

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

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

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

@ -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 package blockservice
import ( import (

@ -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 package blockstore
import ( import (

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

@ -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 package crypto
import ( import (

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

@ -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 package diagnostics
import ( import (

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

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

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

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

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

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

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

@ -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 package dht
import ( import (

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

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

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

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

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

@ -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 package util
import ( import (