new_session_channel

package
v1.2.54 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QueueImpl

type QueueImpl struct {
}

func (*QueueImpl) Empty

func (this *QueueImpl) Empty(channel int64)

func (*QueueImpl) GetLatest

func (this *QueueImpl) GetLatest(channel int64, latestId int64) (newId int64)

func (*QueueImpl) GetRedisListKey

func (this *QueueImpl) GetRedisListKey(channel int64) string

func (*QueueImpl) Init

func (this *QueueImpl) Init() QueueInterface

func (*QueueImpl) Push

func (this *QueueImpl) Push(channel int64, newId int64)

type QueueInterface

type QueueInterface interface {
	Empty(channel int64)
	Push(channel int64, newId int64)
	GetLatest(channel int64, latestId int64) (newId int64)
}
var Session QueueInterface

Jump to

Keyboard shortcuts

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