Messages

package
v0.0.0-...-f9318de Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

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

func GetOne

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

func Post

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

Types

type AllMessagesResponse

type AllMessagesResponse struct {
	Messages []Message `json:"messages"`
}

type ErrorResponse

type ErrorResponse struct {
	Errors []string `json:"errors"`
}

type GetMessageResponse

type GetMessageResponse struct {
	Message Message `json:"message"`
}

type Message

type Message struct {
	ID           gocql.UUID `json:"id"`
	UserID       gocql.UUID `json:"user_id"`
	UserFullName string     `json:"user_full_name"`
	Message      string     `json:"lastname"`
}

type NewMessageResponse

type NewMessageResponse struct {
	ID gocql.UUID `json:"id"`
}

Jump to

Keyboard shortcuts

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