NewResumptionState returns a state value that can be returned by [ClientSessionCache.Get] to resume a previous session. state needs to be returned by [ParseSessionState], and the ticket and session state must have been returned by [ClientSessionState.ResumptionState].
(ticket []byte, state *SessionState)
| 422 | // state needs to be returned by [ParseSessionState], and the ticket and session |
| 423 | // state must have been returned by [ClientSessionState.ResumptionState]. |
| 424 | func NewResumptionState(ticket []byte, state *SessionState) (*ClientSessionState, error) { |
| 425 | state.ticket = ticket |
| 426 | return &ClientSessionState{ |
| 427 | session: state, |
| 428 | }, nil |
| 429 | } |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…