response

package
v0.0.0-...-a2ea4c1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrResp

type ErrResp struct {
	Error string `json:"error"`
}

type Msg

type Msg struct {
	UserID   int    `json:"user_id,omitempty"`
	Username string `json:"username"`
	Text     string `json:"text"`
}

func (Msg) Print

func (m Msg) Print()

type RegisterReq

type RegisterReq struct {
	Username string `json:"username"`
}

type RegisterResp

type RegisterResp struct {
	UserID int `json:"user_id"`
}

Jump to

Keyboard shortcuts

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