1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-09-15 19:37:28 +08:00

74 Commits

Author SHA1 Message Date
338b037238 clean up and add inet.Network to bitswap
new Service interface
2014-10-10 20:43:04 -07:00
3732244837 actually start the diagnostics service 2014-10-10 13:18:20 -07:00
280c7e7e06 implement diagnostics service 2014-10-10 13:18:19 -07:00
972c0f7b4b u.DOut -> log.Debug
and other logging switches. I kept the u.PErr and u.POut in cli
commands, as those do need to write raw output directly.
2014-10-09 04:50:22 -07:00
2944360f5c New NameSystem interface
type NameSystem interface {
      Resolver
      Publisher
    }

should say it all.

cc @whyrusleeping
2014-10-08 04:14:52 -07:00
910a76e220 updated multiaddr use across codebase 2014-10-06 04:13:43 -07:00
0c8ae7674e loggers: set level 2014-10-04 03:53:21 -07:00
7e1cd59259 initialize loggers at ERROR 2014-10-04 03:36:30 -07:00
2ce9415c69 + fs ds + thread safe 2014-10-03 14:45:21 -07:00
88d804e32a added core logging 2014-10-03 14:45:21 -07:00
ba510cbd6d IpnsPublicher -> Publisher interface 2014-10-01 01:36:21 -07:00
728f17d3c9 cmd/ipfs/pin.go now uses MakeCommand
+ added recursive pinning func
2014-10-01 01:17:27 -07:00
7f5e13716d writes to ipns work if the top object is the written file (no directories yet!) 2014-10-01 00:39:57 -07:00
2aa2b8c6c7 add routing resolver test 2014-10-01 00:26:59 -07:00
4c0f18cbbd implement ipns publisher code 2014-10-01 00:26:59 -07:00
8ddfb57c59 some bugfixes and added logging 2014-10-01 00:26:59 -07:00
b5fd9492d7 fixes to make interface more usable 2014-10-01 00:25:52 -07:00
235a767492 implement namesys resolvers (thanks to bren2010 for dns and proquint) 2014-10-01 00:16:05 -07:00
c7af4a6fa2 Bugfix: !online -> online
Caused panic.
2014-09-30 11:34:28 -07:00
c054619827 do init id offline, only dont parse keys
(test was failing)
2014-09-30 03:31:24 -07:00
508a5b7a94 amendment to core context + cancels 2014-09-30 03:22:30 -07:00
4b5e0291f8 core context + cancels
Erroring out in core setup should cancel the context
to ensure subsystems are shut down. This has to happen
all over the place we use contexts.

@perfmode @whyrusleeping
2014-09-30 03:22:30 -07:00
f2db4b77ac don't load identity in offline mode (temp)
**For now**, we don't need to load/parse the private key
(which causes a signficant delay in commands) when doing
things entirely offline. This may change, and in that case
the private key should be loaded on demand.
2014-09-30 03:22:29 -07:00
53f0b117f5 update net with peerstore 2014-09-26 02:41:46 -07:00
303ebd894d config: changed language from Peers to Bootstrap 2014-09-24 05:31:25 -07:00
193aebc4c0 config: rename addresses
WARNING: change breaks old configs.
@whyrusleeping @perfmode

This commit changes the way addresses are stored in config files.
It lumps Identity.Address and RPCAddress into Addresses. This
commit also fixes several golint issues.
2014-09-24 05:28:35 -07:00
9d7ae40003 feat(bitswap) expose ability to toggle "niceness"
true -> always send to peer

false -> use ledger-based strategy described in IPFS paper draft 3
2014-09-22 04:06:19 -07:00
b5ea124a76 style(bitswap) swap argument order 2014-09-22 04:06:18 -07:00
8d29a3255f core bugfix -- connect ctx 2014-09-22 04:06:18 -07:00
8c35988b8d add bootstrap peers to peerstore. 2014-09-22 04:06:17 -07:00
b30dd47aa3 Peerstore fix (ptr to iface) 2014-09-22 04:06:17 -07:00
64ba4cd0df output + linting 2014-09-22 04:06:17 -07:00
0c67019447 style(exch:bitswap) rename adapter, session, etc.
style(exch:bitswap) rename NetMessage adapter impl
2014-09-22 04:06:14 -07:00
e1fe4f6d60 refac(exchange) rename exchange.Interface to match golang conventions
examples:

    http://golang.org/pkg/container/heap/#Interface

    http://golang.org/pkg/net/#Interface

    http://golang.org/pkg/sort/#Interface
2014-09-22 04:06:13 -07:00
fd086b9c48 refac(exchange) bitswap -> exchange/bitswap
Move go-ipfs/bitswap package to go-ipfs/exchange/bitswap

* Delineates the difference between the generic exchange interface and
  implementations (eg. BitSwap protocol)

  Thus, the bitswap protocol can be refined without having to overthink
  how future exchanges will work. Aspects common to BitSwap and other
  exchanges can be extracted out to the exchange package in piecemeal.

  Future exchange implementations can be placed in sibling packages next
  to exchange/bitswap. (eg. exchange/multilateral)
2014-09-22 04:06:13 -07:00
4284e8e960 config: use PeerID in bootstrap config 2014-09-22 04:06:12 -07:00
b77a785cd8 fix(dht) remove deprecated Start() call 2014-09-22 04:05:22 -07:00
547f9e1cf6 fix(core) patiently convince the core to compile
=)
2014-09-22 04:05:21 -07:00
e4e021085b add Peerstore to dht 2014-09-22 04:05:19 -07:00
70ea4f540c added peerstore to core 2014-09-22 04:05:19 -07:00
fda94d9f34 refactor(bitswap) rm SetStrategy method
remove this setter while the interface is under construction
2014-09-22 04:05:18 -07:00
27d0e692ed core dht setup 2014-09-22 04:05:16 -07:00
dde6ad495e todo(blockservice, core) add notes
* to wrap datastore for ease of use
* to pass a non-responsive bitswap mock rather than performing nil
* checks internally
2014-09-22 04:05:16 -07:00
ab460ed882 refactor(bs, core) rename bitswap objects 2014-09-22 04:05:15 -07:00
0075a47df0 fix(bs) remove concrete refs to swarm and dht 2014-09-22 04:05:15 -07:00
6aecb80395 chore(core) add TODOs to use contexts 2014-09-22 04:05:15 -07:00
c14123397a starting to integrate new net 2014-09-22 04:05:13 -07:00
67e76c0acc godeps multiaddr + swarm move. 2014-09-22 04:05:12 -07:00
035d600f28 Godeps: use in net + new multiaddr 2014-09-22 04:05:12 -07:00
3ae37b29bd core: Show error when config identity is not set 2014-09-11 17:50:05 -07:00