tweet

package
v0.0.0-...-eef4e93 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package tweet is related with get tweets route

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

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

Handler to tweets route

Types

type Request

type Request struct {
	Author   string `json:"author"`
	DateFrom string `json:"dateFrom"`
	DateTo   string `json:"dateTo"`
}

Request represents the tweets route default request

type Response

type Response struct {
	Results []service.Tweet `json:"tweets"`
}

Response represents the tweet route response

Jump to

Keyboard shortcuts

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