| Abhay Kumar | a2ae599 | 2025-11-10 14:02:24 +0000 | [diff] [blame^] | 1 | // Copyright (c) The go-grpc-middleware Authors. |
| 2 | // Licensed under the Apache License 2.0. |
| 3 | |
| 4 | package prometheus |
| 5 | |
| 6 | type grpcType string |
| 7 | |
| 8 | // grpcType describes all types of grpc connection. |
| 9 | const ( |
| 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. |
| 17 | type Kind string |
| 18 | |
| 19 | // Enum for Client and Server Kind. |
| 20 | const ( |
| 21 | KindClient Kind = "client" |
| 22 | KindServer Kind = "server" |
| 23 | ) |