WithParentID marks this session as a sub-session of the given parent. Sub-sessions are not persisted as standalone entries in the session store.
(parentID string)
| 869 | // WithParentID marks this session as a sub-session of the given parent. |
| 870 | // Sub-sessions are not persisted as standalone entries in the session store. |
| 871 | func WithParentID(parentID string) Opt { |
| 872 | return func(s *Session) { |
| 873 | s.ParentID = parentID |
| 874 | } |
| 875 | } |
| 876 | |
| 877 | // WithID sets the session ID. If not set, a UUID will be generated. |
| 878 | func WithID(id string) Opt { |