session

package
v0.0.0-...-edd4e79 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Session

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

func (*Session) CreateSubTopic

func (s *Session) CreateSubTopic(topic string, option *proto.SubOption)

func (*Session) CreateTopicUnFinishedMessage

func (s *Session) CreateTopicUnFinishedMessage(topic string, message []broker.UnFinishedMessage)

func (*Session) DeleteSubTopic

func (s *Session) DeleteSubTopic(topic string)

func (*Session) DeleteTopicLatestPushedMessageID

func (s *Session) DeleteTopicLatestPushedMessageID(topic string, messageID string)

func (*Session) DeleteTopicUnFinishedMessage

func (s *Session) DeleteTopicUnFinishedMessage(topic string, messageID string)

func (*Session) GetConnectProperties

func (s *Session) GetConnectProperties() (*broker.SessionConnectProperties, error)

func (*Session) GetWillMessage

func (s *Session) GetWillMessage() (*broker.WillMessage, error)

func (*Session) ReadSubTopics

func (s *Session) ReadSubTopics() (topics map[string]*proto.SubOption)

func (*Session) ReadTopicLatestPushedMessageID

func (s *Session) ReadTopicLatestPushedMessageID(topic string) (messageID string, ok bool)

func (*Session) ReadTopicUnFinishedMessage

func (s *Session) ReadTopicUnFinishedMessage(topic string) (message []broker.UnFinishedMessage)

func (*Session) Release

func (s *Session) Release()

func (*Session) SetConnectProperties

func (s *Session) SetConnectProperties(properties *broker.SessionConnectProperties) error

func (*Session) SetTopicLatestPushedMessageID

func (s *Session) SetTopicLatestPushedMessageID(topic string, messageID string)

func (*Session) SetWillMessage

func (s *Session) SetWillMessage(message *broker.WillMessage) error

type Sessions

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

func NewSessions

func NewSessions(store broker.KeyValueStore) *Sessions

func (*Sessions) CreateSession

func (s *Sessions) CreateSession(key string, session broker.Session)

func (*Sessions) DeleteSession

func (s *Sessions) DeleteSession(key string)

func (*Sessions) NewSession

func (s *Sessions) NewSession(key string) broker.Session

func (*Sessions) ReadSession

func (s *Sessions) ReadSession(key string) (broker.Session, bool)

Jump to

Keyboard shortcuts

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