utils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package utils contains common functionality needed across the Cerberus Go client

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAndParse

func CheckAndParse(resp *http.Response) (*api.UserAuthResponse, error)

CheckAndParse is a helper function to check for user auth and token refresh errors and parse a response. It will return a user friendly error

func ValidateURL

func ValidateURL(fullURL string) (*url.URL, error)

ValidateURL takes a cerberus URL and makes sure that it is valid. It expects

Types

This section is empty.

Jump to

Keyboard shortcuts

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