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 ¶
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
Click to show internal directories.
Click to hide internal directories.