blob: 5c36923f7eaee506969af985ed82d6485f4c2055 [file] [log] [blame]
Abhay Kumara2ae5992025-11-10 14:02:24 +00001// Copyright (c) The go-grpc-middleware Authors.
2// Licensed under the Apache License 2.0.
3
4package prometheus
5
6type grpcType string
7
8// grpcType describes all types of grpc connection.
9const (
10 Unary grpcType = "unary"
11 ClientStream grpcType = "client_stream"
12 ServerStream grpcType = "server_stream"
13 BidiStream grpcType = "bidi_stream"
14)
15
16// Kind describes whether interceptor is a client or server type.
17type Kind string
18
19// Enum for Client and Server Kind.
20const (
21 KindClient Kind = "client"
22 KindServer Kind = "server"
23)