chats

package
Version: v0.0.0-...-935a062 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APIPath string = "/v1/getchats"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Chat

type Chat struct {
	Nickname string `json:"nickname"`
	Message  string `json:"message"`
	Date     string `json:"date"` // TODO: Treat timestamp as time.Time
}

type Request

type Request struct {
	FromDate string `json:"from_date,omitempty"` // TODO: Treat timestamp as time.Time
}

func (*Request) Method

func (req *Request) Method() string

func (*Request) Payload

func (req *Request) Payload() []byte

func (*Request) Query

func (req *Request) Query() string

type Response

type Response []Chat

Source Files

Jump to

Keyboard shortcuts

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