utils

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2020 License: Apache-2.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	ConfigEnvPrefix             = "PGPROXY"
	ConfigAuthenticatorSection  = "authenticator"
	ConfigFileFlag              = "config"
	ConfigListenFlag            = "listen"
	ConfigCleartextPassword     = ConfigAuthenticatorSection + ".cleartext_password"
	ConfigCleartextPasswordFlag = "clear-passwd"
	ConfigCleartextPasswordEnv  = ConfigEnvPrefix + "_CLEAR_PASSWD"

	MetaPrefix                = "_META_"
	SourceMetaPrefix          = "_SOURCE_"
	SourceCredentialParameter = SourceMetaPrefix + "CRED"
	SourceSaltParameter       = SourceMetaPrefix + "SALT"
	TargetCredentialParameter = MetaPrefix + "TARGET_CRED"
	TargetHostParameter       = MetaPrefix + "TARGET_HOST"
)
View Source
const (
	PropConfigFile = "configFile"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BufferedWriter

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

func NewBufferedWriter

func NewBufferedWriter(cap int, writer io.Writer) *BufferedWriter

func (*BufferedWriter) Flush

func (bw *BufferedWriter) Flush() (int, error)

func (*BufferedWriter) Write

func (bw *BufferedWriter) Write(p []byte) (int, error)

type CustomLoggerHolder

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

func NewLoggerHolder

func NewLoggerHolder(props map[string]interface{}) *CustomLoggerHolder

func (*CustomLoggerHolder) Get

func (lh *CustomLoggerHolder) Get() *log.Entry

func (*CustomLoggerHolder) SetProperty

func (lh *CustomLoggerHolder) SetProperty(key string, value string)

Jump to

Keyboard shortcuts

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