MCPcopy
hub / github.com/caddyserver/caddy / Next

Method Next

modules/caddytls/standardstek/stek.go:76–80  ·  view source on GitHub ↗

Next returns a channel which transmits the latest session ticket keys.

(doneChan <-chan struct{})

Source from the content-addressed store, hash-verified

74
75// Next returns a channel which transmits the latest session ticket keys.
76func (s *standardSTEKProvider) Next(doneChan <-chan struct{}) <-chan [][32]byte {
77 keysChan := make(chan [][32]byte)
78 go s.rotate(doneChan, keysChan)
79 return keysChan
80}
81
82// rotate rotates keys on a regular basis, sending each updated set of
83// keys down keysChan, until doneChan is closed.

Callers

nothing calls this directly

Calls 1

rotateMethod · 0.95

Tested by

no test coverage detected