Hash returns the computed values to see if the forwarder values change
()
| 34 | |
| 35 | // Hash returns the computed values to see if the forwarder values change |
| 36 | func (f *Forwarder) Hash() string { |
| 37 | h := sha256.New() |
| 38 | _, _ = io.WriteString(h, f.URL) |
| 39 | _, _ = io.WriteString(h, f.Listener) |
| 40 | _, _ = io.WriteString(h, f.TokenClientID) |
| 41 | _, _ = io.WriteString(h, f.TokenSecret) |
| 42 | _, _ = io.WriteString(h, f.Destination) |
| 43 | return fmt.Sprintf("%x", h.Sum(nil)) |
| 44 | } |
nothing calls this directly
no test coverage detected