wsps

package module
v0.0.0-...-8575d41 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 21, 2020 License: MIT Imports: 7 Imported by: 0

README

wsps

Creates an APIGatewayV2 WebSocket presigned URL for the @connections interface, for Go.

License

Copyright © 2020 Stojan Dimitrovski. Some rights reserved.

Licensed under the MIT X11 License. See it in LICENSE.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PreSignedRequest

type PreSignedRequest struct {
	URL              string
	CanonicalRequest string
	StringToSign     string
}

func PreSign

func PreSign(request Request) PreSignedRequest

type Request

type Request struct {
	Method             string
	Region             string
	Host               string
	Stage              string
	ConnectionId       string
	BodySha256         []byte
	Date               time.Time
	ExpiresInSeconds   uint
	AWSAccessKeyId     string
	AWSSecretAccessKey string
	AWSSecurityToken   string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL