session

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Key           = "mtproto-session"
	EncryptionKey = "mtproto-session-key"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type KeychainStorage

type KeychainStorage struct {
	Profile string
	Store   secrets.Store
	Path    string
}

func (KeychainStorage) Delete

func (s KeychainStorage) Delete(ctx context.Context) error

func (KeychainStorage) InspectSession

func (s KeychainStorage) InspectSession(ctx context.Context) ([]byte, error)

InspectSession reads and decrypts session state without repairing permissions, acquiring a mutation lock, or creating missing key material.

func (KeychainStorage) LoadSession

func (s KeychainStorage) LoadSession(ctx context.Context) ([]byte, error)

func (KeychainStorage) StoreSession

func (s KeychainStorage) StoreSession(ctx context.Context, data []byte) error

Jump to

Keyboard shortcuts

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