Add prometheus dependencies

This commit is contained in:
Thor77 2023-02-18 17:05:20 +01:00
parent dab29e7267
commit 8d06835a8d
No known key found for this signature in database
GPG key ID: 5051E71B46AA669A
664 changed files with 130463 additions and 120147 deletions

View file

@ -0,0 +1,20 @@
// Copyright 2019 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// The protoreflect build tag disables use of fast-path methods.
//go:build !protoreflect
// +build !protoreflect
package proto
import (
"google.golang.org/protobuf/reflect/protoreflect"
"google.golang.org/protobuf/runtime/protoiface"
)
const hasProtoMethods = true
func protoMethods(m protoreflect.Message) *protoiface.Methods {
return m.ProtoMethods()
}