Initial set of builds for Cadmium
This commit is contained in:
56
patches/collection.go
Normal file
56
patches/collection.go
Normal file
@@ -0,0 +1,56 @@
|
||||
// package telemetry implements a stub of the Caddy telemetry client package API
|
||||
// found at https://github.com/mholt/caddy/tree/master/telemetry
|
||||
//
|
||||
// It doesn't do anything. Replacing the telemetry code with a stub is the best
|
||||
// way to ensure compatibility with plugins is maintained. The
|
||||
// `-disabled-metrics` runtime flag doesn't work. The compile-time
|
||||
// `enableTelemetry` flag is OK, but this is better.
|
||||
|
||||
package telemetry
|
||||
|
||||
import (
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
func Init(instanceID uuid.UUID, disabledMetricsKeys []string) {
|
||||
|
||||
}
|
||||
|
||||
func StartEmitting() {
|
||||
|
||||
}
|
||||
|
||||
func StopEmitting() {
|
||||
|
||||
}
|
||||
|
||||
func Reset() {
|
||||
}
|
||||
|
||||
func Set(key string, val interface{}) {
|
||||
|
||||
}
|
||||
|
||||
func SetNested(key, subkey string, val interface{}) {
|
||||
|
||||
}
|
||||
|
||||
func Append(key string, value interface{}) {
|
||||
|
||||
}
|
||||
|
||||
func AppendUnique(key string, value interface{}) {
|
||||
|
||||
}
|
||||
|
||||
func Add(key string, amount int) {
|
||||
|
||||
}
|
||||
|
||||
func Increment(key string) {
|
||||
|
||||
}
|
||||
|
||||
func FastHash(input []byte) string {
|
||||
return ""
|
||||
}
|
Reference in New Issue
Block a user