Documentation ¶
Index ¶
- Variables
- func AsciiCompareFold(a, b []byte) int
- func BoolFromParameters(params url.Values, key string, defaultValue bool) bool
- func DurationFromParameters(params url.Values, key string, defaultValue time.Duration) time.Duration
- func GetParameter(parameters url.Values, key string) (string, bool)
- func IntegerFromParameters(params url.Values, key string, defaultValue int) int
- func MergeParams(a, b map[string][]string) map[string][]string
- func MultiStringFromParameters(params url.Values, key string, defaultValue []string) []string
- func NewMultiReader(isOpen func() bool, nextReader func() (io.Reader, error)) io.Reader
- func ParseBool(value string) (bool, error)
- func ParseTransportParamsFromFlags(arr []string) (url.Values, error)
- func QueryParametersWithoutPrefix(input url.Values, prefix string) url.Values
- func ReadFile(path string) ([]byte, error)
- func StrIsFalse(value string) bool
- func StrIsTrue(value string) bool
- func StringFromParameters(params url.Values, key string, defaultValue string) string
- type BufferedConn
- type Decoder
- type DynamicMultiReader
- type UndoFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var BoolParseError = errors.New("bad value for bool field") // placeholder not passed to user
View Source
var EOFReader io.Reader = &eofReader{}
Functions ¶
func AsciiCompareFold ¶
AsciiCompareFold compares two slices. if lengths do not match, the difference will be discarded.
func BoolFromParameters ¶
func DurationFromParameters ¶
func IntegerFromParameters ¶
func NewMultiReader ¶
NewMultiReader returns a Reader that's the logical concatenation of the provided input readers. They're read sequentially. Once all inputs have returned EOF, Read will return EOF. If any of the readers return a non-nil, non-EOF error, Read will return that error.
func ReadFile ¶
ReadFile supports reading files at given directions, along base64 and base32 values.
func StrIsFalse ¶
Types ¶
type BufferedConn ¶
func NewBufferedConn ¶
func NewBufferedConn(conn net.Conn, buf *bytes.Buffer) *BufferedConn
type DynamicMultiReader ¶
type DynamicMultiReader struct {
// contains filtered or unexported fields
}
type UndoFunc ¶
type UndoFunc func()
func SetMaxProcs ¶
func SetMaxProcs(logger logging.Logger) UndoFunc
Click to show internal directories.
Click to hide internal directories.