mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-30 22:34:15 -05:00
1201492222
* Updated lucas-clemente/quic-go for QUIC 39+ support * Update quic-go to latest
21 lines
390 B
Go
21 lines
390 B
Go
package protocol
|
|
|
|
// Perspective determines if we're acting as a server or a client
|
|
type Perspective int
|
|
|
|
// the perspectives
|
|
const (
|
|
PerspectiveServer Perspective = 1
|
|
PerspectiveClient Perspective = 2
|
|
)
|
|
|
|
func (p Perspective) String() string {
|
|
switch p {
|
|
case PerspectiveServer:
|
|
return "Server"
|
|
case PerspectiveClient:
|
|
return "Client"
|
|
default:
|
|
return "invalid perspective"
|
|
}
|
|
}
|