model

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

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

func NewContext

func NewContext(w http.ResponseWriter, r *http.Request) Context

func (Context) Header

func (c Context) Header(k string) string

func (Context) JSON

func (c Context) JSON(status int, v interface{})

func (Context) PlainString

func (c Context) PlainString(status int, v string)

func (Context) Request

func (c Context) Request() *http.Request

func (Context) Response

func (c Context) Response() http.ResponseWriter

type H

type H map[string]interface{}

type MessageRequest

type MessageRequest struct {
	Message   string
	Timestamp int64
}

func (MessageRequest) Bind

func (m MessageRequest) Bind(_ *http.Request) error

type NicknameRequest

type NicknameRequest struct {
	Nickname string
}

func (NicknameRequest) Bind

func (r NicknameRequest) Bind(_ *http.Request) error

Jump to

Keyboard shortcuts

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