mirror of
https://github.com/adnanh/webhook.git
synced 2025-10-05 14:11:02 +00:00
Add prometheus dependencies
This commit is contained in:
parent
dab29e7267
commit
8d06835a8d
664 changed files with 130463 additions and 120147 deletions
21
vendor/google.golang.org/protobuf/internal/impl/enum.go
generated
vendored
Normal file
21
vendor/google.golang.org/protobuf/internal/impl/enum.go
generated
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
// 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.
|
||||
|
||||
package impl
|
||||
|
||||
import (
|
||||
"reflect"
|
||||
|
||||
"google.golang.org/protobuf/reflect/protoreflect"
|
||||
)
|
||||
|
||||
type EnumInfo struct {
|
||||
GoReflectType reflect.Type // int32 kind
|
||||
Desc protoreflect.EnumDescriptor
|
||||
}
|
||||
|
||||
func (t *EnumInfo) New(n protoreflect.EnumNumber) protoreflect.Enum {
|
||||
return reflect.ValueOf(n).Convert(t.GoReflectType).Interface().(protoreflect.Enum)
|
||||
}
|
||||
func (t *EnumInfo) Descriptor() protoreflect.EnumDescriptor { return t.Desc }
|
Loading…
Add table
Add a link
Reference in a new issue