types

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NotificationKickPlayer = "you have been kicked from the operation"
)

Variables

View Source
var MessageQueues map[string]Queue
View Source
var NotifQueues map[string]Queue

Functions

This section is empty.

Types

type MessageQueue

type MessageQueue struct {
	Channel chan *rpcpb.Message
}

func (*MessageQueue) Dequeue

func (r *MessageQueue) Dequeue() interface{}

func (*MessageQueue) Enqueue

func (r *MessageQueue) Enqueue(req interface{}) error

func (*MessageQueue) Size

func (r *MessageQueue) Size() int

type NotificationQueue

type NotificationQueue struct {
	Channel chan *rpcpb.Notification
}

func (*NotificationQueue) Dequeue

func (r *NotificationQueue) Dequeue() interface{}

func (*NotificationQueue) Enqueue

func (r *NotificationQueue) Enqueue(req interface{}) error

func (*NotificationQueue) Size

func (r *NotificationQueue) Size() int

type Queue

type Queue interface {
	Enqueue(interface{}) error
	Dequeue() interface{}
	Size() int
}

Jump to

Keyboard shortcuts

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