-
Notifications
You must be signed in to change notification settings - Fork 287
/
protocol.go
27 lines (24 loc) · 899 Bytes
/
protocol.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright Envoy Gateway Authors
// SPDX-License-Identifier: Apache-2.0
// The full text of the Apache license is available in the LICENSE file at
// the root of the repo.
package ir
type AppProtocol string
const (
// GRPC declares that the port carries gRPC traffic.
GRPC AppProtocol = "GRPC"
// GRPCWeb declares that the port carries gRPC traffic.
GRPCWeb AppProtocol = "GRPC-Web"
// HTTP declares that the port carries HTTP/1.1 traffic.
// Note that HTTP/1.0 or earlier may not be supported by the proxy.
HTTP AppProtocol = "HTTP"
// HTTP2 declares that the port carries HTTP/2 traffic.
HTTP2 AppProtocol = "HTTP2"
// HTTPS declares that the port carries HTTPS traffic.
HTTPS AppProtocol = "HTTPS"
// TCP declares the port uses TCP.
// This is the default protocol for a service port.
TCP AppProtocol = "TCP"
// UDP declares that the port uses UDP.
UDP AppProtocol = "UDP"
)