callback

package
v0.0.0-...-cb3295b Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Content

type Content struct {
	Type       string `json:"type"`
	Text       string `json:"text"`
	Postback   string `json:"postback"`
	ResourceId string `json:"resourceId"`
}

type Message

type Message struct {
	Type        string  `json:"type"`
	Source      Source  `json:"source"`
	CreatedTime int64   `json:"createdTime"`
	Content     Content `json:"content"`
}

func Parse

func Parse(body io.Reader) (*Message, error)

type Source

type Source struct {
	AccountId string `json:"accountId"`
}

Jump to

Keyboard shortcuts

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