api_server_events

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiServerEventInterface

type ApiServerEventInterface interface {
	ToJson() []byte
}

type ApiServerEventType

type ApiServerEventType string
const (
	ApiServerNewNotificationEvent  ApiServerEventType = "NewNotification"
	ApiServerNewMessageEvent       ApiServerEventType = "NewMessage"
	ApiServerChatAssignmentEvent   ApiServerEventType = "ChatAssignment"
	ApiServerChatUnAssignmentEvent ApiServerEventType = "ChatUnAssignment"
)

type BaseApiServerEvent

type BaseApiServerEvent struct {
	EventType ApiServerEventType `json:"eventType"`
}

func (*BaseApiServerEvent) ToJson

func (event *BaseApiServerEvent) ToJson() []byte

type ChatAssignmentEvent

type ChatAssignmentEvent struct {
	BaseApiServerEvent
	ChatId string `json:"chatId"`
	UserId string `json:"userId"`
}

type ChatUnAssignmentEvent

type ChatUnAssignmentEvent struct {
	BaseApiServerEvent
	ChatId string `json:"chatId"`
	UserId string `json:"userId"`
}

type NewMessageEvent

type NewMessageEvent struct {
	BaseApiServerEvent
	Message string `json:"message"`
}

type NewNotificationEvent

type NewNotificationEvent struct {
	BaseApiServerEvent
	Notification string `json:"notification"`
}

Jump to

Keyboard shortcuts

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