diff options
Diffstat (limited to 'vendor/_nuts/github.com/fabioberger/coinbase-go/Authenticator.go')
| -rw-r--r-- | vendor/_nuts/github.com/fabioberger/coinbase-go/Authenticator.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/vendor/_nuts/github.com/fabioberger/coinbase-go/Authenticator.go b/vendor/_nuts/github.com/fabioberger/coinbase-go/Authenticator.go new file mode 100644 index 0000000..f5b68ea --- /dev/null +++ b/vendor/_nuts/github.com/fabioberger/coinbase-go/Authenticator.go @@ -0,0 +1,13 @@ +package coinbase + +import ( + "net/http" +) + +// Authenticator is an interface that objects can implement in order to act as the +// authentication mechanism for RPC requests to Coinbase +type authenticator interface { + getBaseUrl() string + getClient() *http.Client + authenticate(req *http.Request, endpoint string, params []byte) error +} |
