Source File
key_phase.go
Belonging Package
github.com/quic-go/quic-go/internal/protocol
package protocol// KeyPhase is the key phasetype KeyPhase uint64// Bit determines the key phase bitfunc ( KeyPhase) () KeyPhaseBit {if %2 == 0 {return KeyPhaseZero}return KeyPhaseOne}// KeyPhaseBit is the key phase bittype KeyPhaseBit uint8const (// KeyPhaseUndefined is an undefined key phaseKeyPhaseUndefined KeyPhaseBit = iota// KeyPhaseZero is key phase 0KeyPhaseZero// KeyPhaseOne is key phase 1KeyPhaseOne)func ( KeyPhaseBit) () string {//nolint:exhaustiveswitch {case KeyPhaseZero:return "0"case KeyPhaseOne:return "1"default:return "undefined"}}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |