MCPcopy Create free account
hub / github.com/prometheus/common / String

Method String

config/http_config.go:117–127  ·  view source on GitHub ↗

String implements the fmt.Stringer interface for TLSVersion.

()

Source from the content-addressed store, hash-verified

115
116// String implements the fmt.Stringer interface for TLSVersion.
117func (tv *TLSVersion) String() string {
118 if tv == nil || *tv == 0 {
119 return ""
120 }
121 for s, v := range TLSVersions {
122 if *tv == v {
123 return s
124 }
125 }
126 return fmt.Sprintf("%d", tv)
127}
128
129// BasicAuth contains basic HTTP authentication credentials.
130type BasicAuth struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected