Steven Allen d6afc690e1 add CloseRead/CloseWrite on streams (#166)
* add CloseRead/CloseWrite on streams

This changes the behavior of `Close` to behave as one would expect: it closes
the stream. The new methods, CloseWrite/CloseRead allow for closing the stream in
a single direction.

Note: This _does not_ implement CancelWrite/CancelRead as our stream muxer
_protocols_ don't support that.

fixes #9

* remove stream util helpers

FullClose and AwaitEOF were introduced to work around the fact that calling
Close on a stream only closed the write half. All users must adapt their code
to the new interfaces, so this change is intentionally breaking.
2020-09-01 17:29:54 -07:00
2020-03-27 11:24:40 +05:30
2020-05-11 13:00:05 +05:30
2019-12-13 15:24:15 -05:00
2020-08-08 14:40:23 +03:00
2020-07-30 10:39:34 +01:00
2020-07-30 10:39:34 +01:00
2020-02-11 10:34:23 -08:00
2019-06-24 18:25:52 +01:00
2019-06-24 18:25:52 +01:00
2019-12-19 09:57:16 -05:00

go-libp2p-core

GoDoc Coverage Status Build Status Discourse posts

Home to the interfaces and abstractions that make up go-libp2p.

Minimum go version: 1.13

Install

go get github.com/libp2p/go-libp2p-core

Usage

Check out the GoDocs.

Testing

To test instantiations of interfaces and abstractions, you can use the test suite.

License

Dual-licensed under MIT and ASLv2, by way of the Permissive License Stack.

Description
Interfaces and abstractions that make up go-libp2p
Readme 1.3 MiB
Languages
Go 100%