...

Package sign

import "github.com/NCR-Corporation/ncr-bsp-hmac/go/sign"
Overview
Index

Overview ▾

Constants

const (
    AccessKeyPrefix = "AccessKey"
    DateHeader      = "Date"
    DateTimeFormat  = "2006-01-02T15:04:05.000Z"
)

type HTTPSigner

type HTTPSigner interface {
    Sign(req *http.Request) (*http.Request, error)
}

func NewAccessKeyHTTPSigner

func NewAccessKeyHTTPSigner(sharedKey, secretKey string) (HTTPSigner, error)

NewAccessKeyHTTPSigner is a function that returns an implementation that conforms to the sign.Signer interface