Browse Source

Rename certifier to light (#784) and add godocs

The certifier package is renamed to light. This is more descriptive
especially in the wider blockchain context. Moreover we are building
light-clients using the light package.

This also adds godocs to all exported functions.

Furthermore it introduces some extra error handling. I've added one TODO
where I would like someone else's opinion on how to handle the error.
pull/899/head
Adrian Brink 7 years ago
parent
commit
1871a7c3d0
No known key found for this signature in database GPG Key ID: 9168AC350E33CEF2
22 changed files with 258 additions and 211 deletions
  1. +0
    -0
      light/client/main_test.go
  2. +21
    -18
      light/client/provider.go
  3. +4
    -4
      light/client/provider_test.go
  4. +6
    -3
      light/commit.go
  5. +2
    -2
      light/doc.go
  6. +11
    -5
      light/dynamic.go
  7. +9
    -9
      light/dynamic_test.go
  8. +8
    -2
      light/errors/errors.go
  9. +0
    -0
      light/errors/errors_test.go
  10. +12
    -10
      light/files/commit.go
  11. +2
    -2
      light/files/commit_test.go
  12. +14
    -9
      light/files/provider.go
  13. +10
    -10
      light/files/provider_test.go
  14. +13
    -11
      light/helpers.go
  15. +23
    -10
      light/inquirer.go
  16. +21
    -23
      light/inquirer_test.go
  17. +10
    -5
      light/memprovider.go
  18. +17
    -17
      light/performance_test.go
  19. +21
    -43
      light/provider.go
  20. +39
    -18
      light/provider_test.go
  21. +8
    -3
      light/static.go
  22. +7
    -7
      light/static_test.go

certifiers/client/main_test.go → light/client/main_test.go View File


certifiers/client/provider.go → light/client/provider.go View File


certifiers/client/provider_test.go → light/client/provider_test.go View File


certifiers/commit.go → light/commit.go View File


certifiers/doc.go → light/doc.go View File


certifiers/dynamic.go → light/dynamic.go View File


certifiers/dynamic_test.go → light/dynamic_test.go View File


certifiers/errors/errors.go → light/errors/errors.go View File


certifiers/errors/errors_test.go → light/errors/errors_test.go View File


certifiers/files/commit.go → light/files/commit.go View File


certifiers/files/commit_test.go → light/files/commit_test.go View File


certifiers/files/provider.go → light/files/provider.go View File


certifiers/files/provider_test.go → light/files/provider_test.go View File


certifiers/helper.go → light/helpers.go View File


certifiers/inquirer.go → light/inquirer.go View File


certifiers/inquirer_test.go → light/inquirer_test.go View File


certifiers/memprovider.go → light/memprovider.go View File


certifiers/performance_test.go → light/performance_test.go View File


certifiers/provider.go → light/provider.go View File


certifiers/provider_test.go → light/provider_test.go View File


certifiers/static.go → light/static.go View File


certifiers/static_test.go → light/static_test.go View File


Loading…
Cancel
Save