sessions

package
v0.0.0-...-9b41daf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 1, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Sessions sync.Map

Functions

func CreateSession

func CreateSession(publicKey string) error

func DeleteSession

func DeleteSession(publicKey string) error

func VerifySession

func VerifySession(publicKey string, data []byte, signature []byte) error

Types

type Session

type Session struct {
	PublicKey     string
	Signature     *string
	Authenticated bool
}

func GetSession

func GetSession(publicKey string) *Session

Directories

Path Synopsis
libp2p

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL