mem

package
v0.0.0-...-5961e9c Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

func New

func New() *Store

func (*Store) Get

func (s *Store) Get(clientID string) (*gmqtt.Session, error)

func (*Store) GetAll

func (s *Store) GetAll() ([]*gmqtt.Session, error)

func (*Store) Iterate

func (s *Store) Iterate(fn session.IterateFn) error

func (*Store) Remove

func (s *Store) Remove(clientID string) error

func (*Store) Set

func (s *Store) Set(session *gmqtt.Session) error

func (*Store) SetSessionExpiry

func (s *Store) SetSessionExpiry(clientID string, expiry uint32) error

Jump to

Keyboard shortcuts

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