salts

package
v0.0.0-...-5942ca8 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package salts contains MTProto server salt storage.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Salts

type Salts struct {
	// contains filtered or unexported fields
}

Salts is a simple struct store server salts.

func (*Salts) Get

func (s *Salts) Get(deadline time.Time) (int64, bool)

Get returns next valid salt.

func (*Salts) Reset

func (s *Salts) Reset()

Reset deletes all stored salts.

func (*Salts) Store

func (s *Salts) Store(salts []mt.FutureSalt)

Store stores all given salts.

Jump to

Keyboard shortcuts

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