MCPcopy
hub / github.com/cloudflare/cloudflared / newSession

Function newSession

management/session.go:34–43  ·  view source on GitHub ↗

NewSession creates a new session.

(size int, actor actor, cancel context.CancelFunc)

Source from the content-addressed store, hash-verified

32
33// NewSession creates a new session.
34func newSession(size int, actor actor, cancel context.CancelFunc) *session {
35 s := &session{
36 active: atomic.Bool{},
37 cancel: cancel,
38 actor: actor,
39 listener: make(chan *Log, size),
40 filters: &StreamingFilters{},
41 }
42 return s
43}
44
45// Filters assigns the StreamingFilters to the session
46func (s *session) Filters(filters *StreamingFilters) {

Calls

no outgoing calls