model

package
v0.0.0-...-a4e98f0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	RequestID contextKey = iota
	Signature
	ClientID
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthRequest

type AuthRequest struct {
	ClientID string `json:"client_id"`
}

type ChatMessage

type ChatMessage struct {
	Timestamp int64
	Message   string
	ClientID  string
}

type ListenRequest

type ListenRequest struct {
	ClientID string `json:"client_id"`
}

type PushRequest

type PushRequest struct {
	ClientID string `json:"client_id"`
	Message  string `json:"message"`
}

type ResponseMessage

type ResponseMessage struct {
	Message string `json:"message"`
}

Jump to

Keyboard shortcuts

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