1. 27 Nov, 2018 3 commits
  2. 26 Nov, 2018 1 commit
  3. 25 Nov, 2018 1 commit
  4. 15 Nov, 2018 1 commit
  5. 02 Oct, 2018 1 commit
  6. 01 Oct, 2018 2 commits
  7. 30 Sep, 2018 1 commit
  8. 15 Sep, 2018 1 commit
  9. 22 Jun, 2018 1 commit
  10. 19 Jun, 2018 3 commits
  11. 22 Oct, 2017 1 commit
  12. 31 Jul, 2017 1 commit
  13. 17 Mar, 2017 1 commit
  14. 19 Sep, 2016 1 commit
  15. 09 Aug, 2016 1 commit
  16. 04 May, 2016 2 commits
  17. 29 Apr, 2016 1 commit
  18. 18 Jan, 2016 1 commit
  19. 17 Jan, 2016 1 commit
  20. 25 Sep, 2015 1 commit
  21. 31 Aug, 2015 1 commit
  22. 29 Aug, 2015 2 commits
  23. 18 Jan, 2015 1 commit
  24. 09 Jan, 2015 3 commits
  25. 19 Nov, 2014 1 commit
  26. 05 Nov, 2014 2 commits
  27. 11 Oct, 2014 1 commit
  28. 06 Oct, 2014 2 commits
    • Juan Batiz-Benet's avatar
      New Multiaddr interface · c90ef447
      Juan Batiz-Benet authored
      This commit changes the struct to a new Multiaddr interface:
      
      ```Go
      type Multiaddr interface {
        Equal(Multiaddr) bool
        Bytes() []byte
        String() string
        Protocols() []*Protocol
        Encapsulate(Multiaddr) Multiaddr
        Decapsulate(Multiaddr) Multiaddr
      }
      ```
      
      This means a few things have changed:
      
      - use Multiaddr interface, struct not exported
      - Bytes returns a copy of the internal bytes
      - Some methods no longer return errors (catch errors in NewMultiaddr)
        - String (panics if malformed)
        - Protocols (panics if malformed)
        - Decapsulate (no-op if not prefix)
      - Moved net-specific functions to package
        - Multiaddr.DialArgs() -> DialArgs(Multiaddr)
        - Multiaddr.IsThinWaist() -> IsThinWaist(Multiaddr)
      
      cc @whyrusleeping @perfmode
      c90ef447
    • Juan Batiz-Benet's avatar
      Multiaddr.String no error · bd30912d
      Juan Batiz-Benet authored
      The error in String should not actually ocurr, as the multiaddr
      should have been valid to be constructed successfully, and thus
      should be encoded back to its string rep correctly.
      
      This will be bolstered by creating an interface (to prevent messing
      with the internal bytes)
      bd30912d
  29. 16 Sep, 2014 1 commit