MCPcopy Index your code
hub / github.com/docker/docker-agent / WithID

Function WithID

pkg/session/session.go:878–882  ·  view source on GitHub ↗

WithID sets the session ID. If not set, a UUID will be generated.

(id string)

Source from the content-addressed store, hash-verified

876
877// WithID sets the session ID. If not set, a UUID will be generated.
878func WithID(id string) Opt {
879 return func(s *Session) {
880 s.ID = id
881 }
882}
883
884// WithClock injects the time source used for the session's CreatedAt, for
885// timestamping messages it generates (summaries, compaction input), and for

Calls

no outgoing calls