api

package
v0.0.0-...-0b5293d Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	MessageKindMessageCreated = "message_created"
)

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(q *pgstore.Queries) http.Handler

Types

type Message

type Message struct {
	Kind   string `json:"kind"`
	Value  any    `json:"value"`
	RoomID string `json:"-"`
}

type MessageMessageCreated

type MessageMessageCreated struct {
	ID      string `json:"id"`
	Message string `json:"message"`
}

Jump to

Keyboard shortcuts

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