utils

package
Version: v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BasicAuthDecode

func BasicAuthDecode(token string) (string, string)

BasicAuthDecode decodes a key-secret pair from a token string, originally used in a

HTTP Basic Authentication strategy (HTTP Request Header)

func BasicAuthEncode

func BasicAuthEncode(key, secret string) string

BasicAuthEncode encodes a key-secret pair to be used in a HTTP Basic Authentication

strategy (HTTP Request Header)

Types

type A

type A []interface{}

The A is an Array-like interface

type H

type H map[string]interface{}

The H is a dictionary/hash-map-like interface

Jump to

Keyboard shortcuts

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