Source File
session.go
Belonging Package
github.com/pion/dtls/v3
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>// SPDX-License-Identifier: MITpackage dtls// Session store data needed in resumption.type Session struct {// ID store session idID []byte// Secret store session master secretSecret []byte}// SessionStore defines methods needed for session resumption.type SessionStore interface {// Set save a session.// For client, use server name as key.// For server, use session id.Set(key []byte, s Session) error// Get fetch a session.Get(key []byte) (Session, error)// Del clean saved session.Del(key []byte) error}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |