objects

package
v0.0.0-...-8ab62d1 Latest Latest
Warning

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

Go to latest
Published: May 2, 2018 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Response

type Response struct {
	Response   string `json:"response"`
	BotVersion string `json:"bot_version"`
}

type SlackIncoming

type SlackIncoming struct {
	Text         string `form:"text"`
	SlackUser    string `form:"user_name"`
	SlackChannel string `form:"channel_name"`
	SlackTeam    string `form:"team_id"`
	Token        string `form:"token"`
	Channel_id   string `form:"channel_id"`
	Command      string `form:"command"`
	Response_url string `form:"response_url"`
	Team_domain  string `form:"team_domain"`
	User_id      string `form:"user_id"`
}

type SlackResponse

type SlackResponse struct {
	Text         string `json:"text"`
	ResponseType string `json:"response_type"`
	BotVersion   string `json:"bot_version"`
}

type WordData

type WordData struct {
	Author      string `json:"author"`
	CurrentVote string `json:"current_vote"`
	Defid       int    `json:"defid"`
	Definition  string `json:"definition"`
	Example     string `json:"example"`
	Permalink   string `json:"permalink"`
	ThumbsUp    int    `json:"thumbs_up"`
	ThumbsDown  int    `json:"thumbs_down"`
	Word        string `json:"word"`
}

WordData represents the JSON struct sent by Urban Dictionary with the word.

type WordDataSlice

type WordDataSlice struct {
	List []WordData `json:"list"`
}

WordDataSlice represents a list of words in JSON.

Jump to

Keyboard shortcuts

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