utils

package
v0.0.0-...-625ab12 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatHexString

func FormatHexString(toPad string) string

FormatHexString adds the Ox prefix to the string if not present

func ParseTokensWithRegex

func ParseTokensWithRegex(idHeader string, pattern string) ([]string, error)

ParseTokensWithRegex retrieves the Address that generated the certificate and the public ephemeral key from the identity header

func RemoveHexPrefix

func RemoveHexPrefix(value string) string

RemoveHexPrefix removes the Ox prefix from the string if present

func ValidateRequiredCredentials

func ValidateRequiredCredentials(m map[string]string, keys []string) error

ValidateRequiredCredentials validates all required credentials are present

Types

This section is empty.

Jump to

Keyboard shortcuts

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