Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "config" package #93

Merged
merged 2 commits into from
Oct 23, 2018
Merged

Add "config" package #93

merged 2 commits into from
Oct 23, 2018

Conversation

alexellis
Copy link
Owner

Signed-off-by: Alex Ellis [email protected]

Description

Add "config" package

Motivation and Context

Part of the work for #62 is included here.

  • adds a config package and unit tests to allow Derek to be
    configured by a struct. The new struct reads data from env-vars
    and from disk including throwing errors when data is missing.

  • application renamed application_id (env-var)

  • access_token renamed personal_access_token (env-var) and
    documented in GET.md

  • godoc added to packages / functions

  • unit tests added for hmacValidation() method

  • minor version of Golang SDK bumped in Dockerfile

How Has This Been Tested?

Tested through unit tests and go build with Go 1.10.4

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I've read the CONTRIBUTION guide
  • I have signed-off my commits with git commit -s
  • I have added tests to cover my changes.
  • All new and existing tests passed.

- adds a config package and unit tests to allow Derek to be
configured by a struct. The new struct reads data from env-vars
and from disk including throwing errors when data is missing.

- application renamed application_id (env-var)
- access_token renamed personal_access_token (env-var) and
documented in GET.md

- godoc added to packages / functions
- unit tests added for hmacValidation() method
- minor version of Golang SDK bumped in Dockerfile

Tested through unit tests and go build with Go 1.10.4

Signed-off-by: Alex Ellis <[email protected]>
- fixes broken unit tests from Docker build

Signed-off-by: Alex Ellis <[email protected]>
@alexellis alexellis merged commit eb97a93 into master Oct 23, 2018
@alexellis alexellis deleted the sdk branch July 22, 2019 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant