registerElicitationHandler registers an elicitation handler for this session.
(handler ElicitationHandler)
| 915 | |
| 916 | // registerElicitationHandler registers an elicitation handler for this session. |
| 917 | func (s *Session) registerElicitationHandler(handler ElicitationHandler) { |
| 918 | s.elicitationMu.Lock() |
| 919 | defer s.elicitationMu.Unlock() |
| 920 | s.elicitationHandler = handler |
| 921 | } |
| 922 | |
| 923 | // getElicitationHandler returns the currently registered elicitation handler, or nil. |
| 924 | func (s *Session) getElicitationHandler() ElicitationHandler { |
no outgoing calls