appstransport

package
v0.0.0-...-c8eb8dd Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppsTransport

type AppsTransport struct {
	Transport http.RoundTripper
	// contains filtered or unexported fields
}

AppsTransport returns a transport that inserts JWT into header

func NewAppsTransport

func NewAppsTransport(appID int64, key *rsa.PrivateKey) *AppsTransport

NewAppsTransport returns a new AppsTransport from rsa.PrivateKey

func NewAppsTransportFromBytes

func NewAppsTransportFromBytes(appID int64, privateKey []byte) (*AppsTransport, error)

NewAppsTransportFromBytes returns a new AppsTransport from a private key in []byte

func (*AppsTransport) RoundTrip

func (at *AppsTransport) RoundTrip(req *http.Request) (*http.Response, error)

RoundTrip - http.RoundTripper

Jump to

Keyboard shortcuts

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