chat

package
v0.0.0-...-30c84b1 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const PATH = "/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"`
}

type Request

type Request struct {
	FromDate time.Time `json:"from_date" url:"from_date"`
}

func New

func New(after time.Time) *Request

func (*Request) Method

func (p *Request) Method() string

func (*Request) Path

func (p *Request) Path() string

func (*Request) Payload

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

func (*Request) Query

func (p *Request) Query() string

type Response

type Response []Chat

func (Response) List

func (chats Response) List() []string

Jump to

Keyboard shortcuts

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