utils

package
v0.0.0-...-7c47925 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Int64ToString

func Int64ToString(i int64) string

func RedactCopy

func RedactCopy(pb proto.Message) proto.Message

returns a copy of a protobuf message with sensitive fields redacted if the sensitive field is a string, it replaces the string with "redacted" otherwise it clears the field

func RedactInPlace

func RedactInPlace(pb proto.Message)

redacts every sensitive field in a protobuf message. if the sensitive field is a string, it replaces the string with "redacted" otherwise it clears the field

func StringToInt64

func StringToInt64(s string) (int64, error)

func TrimQuotes

func TrimQuotes(s string) string

TrimQuotes removes quotes from a string if they exist

Types

type ParallelizeConfig

type ParallelizeConfig struct {
	// The number of parallel Prepare requests that are made per api request
	PrepareFactor int
	// The number of parallel Query requests that are made per api request
	QueryFactor int
}

Jump to

Keyboard shortcuts

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