1. 25 Aug, 2022 1 commit
  2. 23 Jun, 2021 1 commit
  3. 21 Jan, 2021 1 commit
  4. 20 May, 2020 1 commit
  5. 11 Aug, 2019 1 commit
  6. 01 Dec, 2018 1 commit
  7. 21 Jun, 2018 1 commit
  8. 08 Mar, 2018 1 commit
  9. 04 Mar, 2018 1 commit
  10. 13 Aug, 2017 1 commit
  11. 17 Mar, 2017 1 commit
  12. 19 Sep, 2016 1 commit
  13. 16 Sep, 2016 1 commit
  14. 17 Aug, 2016 1 commit
  15. 10 Jun, 2016 1 commit
  16. 27 Apr, 2016 1 commit
  17. 03 Oct, 2015 1 commit
  18. 18 Jun, 2015 1 commit
  19. 19 Jan, 2015 1 commit
  20. 13 Jan, 2015 2 commits
  21. 09 Jan, 2015 1 commit
  22. 20 Nov, 2014 3 commits
  23. 05 Nov, 2014 1 commit
  24. 11 Oct, 2014 3 commits
  25. 06 Oct, 2014 1 commit
    • 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
  26. 13 Sep, 2014 1 commit