fsm

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const OperationChannelCreate int = 2
View Source
const OperationChannelDelete int = 3
View Source
const OperationChannelUpdate int = 4
View Source
const OperationMessagePop int = 1
View Source
const OperationMessagePush int = 0

Variables

This section is empty.

Functions

func NewPrioritizedFSM

func NewPrioritizedFSM(storage *storage.PqStorage) raft.FSM

Types

type ApplyResponse

type ApplyResponse struct {
	Data interface{}
	Err  error
}

type ChannelMessage added in v1.5.2

type ChannelMessage struct {
	ChannelID string
	Message   message.Message
}

type CommandPayload

type CommandPayload struct {
	Operation int
	ChannelID string
	Message   message.Message
	Channel   channel.Channel
}

type Structs added in v1.5.2

type Structs byte
const ChannelsStruct Structs = 2
const MessageStruct Structs = 1

Jump to

Keyboard shortcuts

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