websocket-client: github.com/hyperhq/websocket-client/go/util Index | Files

package sign4

import "github.com/hyperhq/websocket-client/go/util"

Based on the AWS Signature Algorithm Sign4 http://docs.aws.amazon.com/general/latest/gr/sigv4_signing.html Based on the Implementation of https://github.com/smartystreets/go-aws-auth

- Both Sign and Check
- hostname of Hyper
- change header X-AMZ- to X-Hyper-
- changed normuri, treat // as /

Index

Package Files

sign4.go

func Sign4 Uses

func Sign4(accessKey, secretKey string, req *http.Request, region string) *http.Request

func Signiture4 Uses

func Signiture4(secretKey string, req *http.Request, header *AuthnHeader, region string) (bool, error)

type AuthnHeader Uses

type AuthnHeader struct {
    Algorithm    string
    AccessKey    string
    Scope        string
    SignedHeader string
    Signature    string
    Date         string
}

Package sign4 imports 12 packages (graph) and is imported by 4 packages. Updated 2017-11-05. Refresh now. Tools for package owners.