Skip to content

Commit

Permalink
Add common routing.Addr
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkren committed Jul 4, 2019
1 parent 6adc363 commit aaf996b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkg/routing/addr.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package routing

import "github.com/skycoin/dmsg/cipher"

// Addr represents a network address combining public key and port
type Addr struct {
PubKey cipher.PubKey `json:"pk"`
Port uint16 `json:"port"`
}

0 comments on commit aaf996b

Please sign in to comment.