Skip to content

Commit

Permalink
coreapi: use type aliases for exposed types
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
  • Loading branch information
magik6k committed Mar 10, 2018
1 parent e5690b9 commit be4c355
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/coreapi/interface/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ type Path interface {

// TODO: should we really copy these?
// if we didn't, godoc would generate nice links straight to go-ipld-format
type Node ipld.Node
type Link ipld.Link
type Node = ipld.Node
type Link = ipld.Link
type PeerID = peer.ID
type Addr ma.Multiaddr
type Addr = ma.Multiaddr

type Reader interface {
io.ReadSeeker
Expand Down

0 comments on commit be4c355

Please sign in to comment.