chat

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChannelHandler added in v0.7.0

func ChannelHandler(w http.ResponseWriter, r *http.Request)

func IndexHandler added in v0.7.0

func IndexHandler(w http.ResponseWriter, r *http.Request)

func PromptHandler added in v0.7.0

func PromptHandler(w http.ResponseWriter, r *http.Request)

func Register

func Register()

Types

type Channel

type Channel struct {
	Name     string
	Topic    string
	Messages []string
}

type Command

type Command func(*Channel, string) string

type Req

type Req struct {
	UUID     string `json:"uuid"`
	Prompt   string `json:"prompt"`
	Markdown bool   `json:"markdown",omitempty`
	Channel  string `json:"channel",omitempty`
}

Jump to

Keyboard shortcuts

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