MCPcopy Create free account
hub / github.com/cloudfoundry/garden / syncStreamIDGenerator

Struct syncStreamIDGenerator

server/streamer/streamer.go:122–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122type syncStreamIDGenerator struct {
123 current uint64
124}
125
126func (gen *syncStreamIDGenerator) next() StreamID {
127 return StreamID(fmt.Sprintf("%d", atomic.AddUint64(&gen.current, 1)))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected