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

Method String

config/http_config.go:124–134  ·  view source on GitHub ↗

String implements the fmt.Stringer interface for TLSVersion.

()

Source from the content-addressed store, hash-verified

122
123// String implements the fmt.Stringer interface for TLSVersion.
124func (tv *TLSVersion) String() string {
125 if tv == nil || *tv == 0 {
126 return ""
127 }
128 for s, v := range TLSVersions {
129 if *tv == v {
130 return s
131 }
132 }
133 return fmt.Sprintf("%d", *tv)
134}
135
136// BasicAuth contains basic HTTP authentication credentials.
137type BasicAuth struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected