utils

package
v1.3.16 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const TokenChars = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ+/-_="

TokenChars characters allowed in base64 encoded string.

Variables

This section is empty.

Functions

func ContainsTokenCharset

func ContainsTokenCharset(s string) bool

ContainsTokenCharset checks if a string contains non-base64 encoding characters.

func GetSourceAddress added in v1.3.1

func GetSourceAddress(r *http.Request) string

GetSourceAddress returns the IP address of the request.

func NewLogger

func NewLogger() *zap.Logger

NewLogger returns an instance of logger

func ReadCertFile

func ReadCertFile(filePath string) (string, error)

ReadCertFile reads certificate files.

func ReadFile

func ReadFile(filePath string) (string, error)

ReadFile reads a file.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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