controllers

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 1, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Sign = "sign"
	Chat = "chat"
)

Variables

This section is empty.

Functions

func ChatServer

func ChatServer(rw http.ResponseWriter, r *http.Request, p httprouter.Params)

func GetHost

func GetHost(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

func GetList

func GetList(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

func GetTakHistory

func GetTakHistory(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

func Home

func IndexFiles

func IndexFiles(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

func UploadFiles

func UploadFiles(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

Types

type BroadcastMessage

type BroadcastMessage struct {
	Type string  `json:"type"`
	Data Message `json:"data"`
}

type Client

type Client struct {
	// contains filtered or unexported fields
}

type Data

type Data struct {
	Success bool  `json:"success"`
	Size    int64 `json:"size"`
}

type HostData

type HostData struct {
	Host     string `json:"host"`
	Shutdown bool   `json:"shutdown"`
}

type Hub

type Hub struct {
	// contains filtered or unexported fields
}

type Message

type Message struct {
	Text   string    `json:"text"`
	Author string    `json:"author"`
	Type   string    `json:"type"`
	Time   time.Time `json:"time"`
}

type NotFoundHttpServe

type NotFoundHttpServe struct {
}

func (*NotFoundHttpServe) ServeHTTP

func (h *NotFoundHttpServe) ServeHTTP(w http.ResponseWriter, r *http.Request)

type RegisterEvent

type RegisterEvent struct {
	Type string `json:"type"`
	Data string `json:"data"`
}

type Sizer

type Sizer interface {
	Size() int64
}

type Socket

type Socket struct{}

Jump to

Keyboard shortcuts

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