utils

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PublicKeyHeader = "-----BEGIN PUBLIC KEY-----"
	PublicKeyFooter = "-----END PUBLIC KEY-----"
)
View Source
const (
	LamassuLoggerContextKey contextKey = "LamassuLogger"
)

Variables

This section is empty.

Functions

func CreateCAPool

func CreateCAPool(CAPath string) (*x509.CertPool, error)

func DecodeB64

func DecodeB64(message string) (string, error)

func InsertNth

func InsertNth(s string, n int) string

func ParseKeycloakPublicKey

func ParseKeycloakPublicKey(data []byte) (*rsa.PublicKey, error)

func ToHexInt

func ToHexInt(n *big.Int) string

Types

type CustomLogger

type CustomLogger struct {
	// contains filtered or unexported fields
}

func (*CustomLogger) Printf

func (l *CustomLogger) Printf(format string, v ...interface{})

func (*CustomLogger) Verbose

func (l *CustomLogger) Verbose() bool

type StandardGoKitLogToGoLogAdapter

type StandardGoKitLogToGoLogAdapter interface {
	Printf(format string, v ...interface{})
	Verbose() bool
}

func NewGoKitLogToGoLogAdapter

func NewGoKitLogToGoLogAdapter(logger log.Logger) StandardGoKitLogToGoLogAdapter

Jump to

Keyboard shortcuts

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