util

package
v4.0.52 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParsePrivateKey

func ParsePrivateKey(pemData string) (*rsa.PrivateKey, error)

ParsePrivateKey will parse a private key out of pem data in either PKCS1 or PKCS8 form

func RefreshOAuth2Token

func RefreshOAuth2Token(client *http.Client, channel string, provider string, refreshToken string) (string, error)

RefreshOAuth2Token will fetch a new API Key / Access Token from a refresh token

func WaitForRedirect

func WaitForRedirect(rawURL string, handler func(w http.ResponseWriter, r *http.Request)) error

WaitForRedirect will open a url with a `redirect_to` query string param that gets handled by handler

Types

This section is empty.

Jump to

Keyboard shortcuts

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