events

package
v0.0.0-...-f055950 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DisplayHints

type DisplayHints struct {
	Hints [][]string `json:"display_hints"`
}

type PingContent

type PingContent struct {
	Msgtype      string       `json:"msgtype"`
	Body         string       `json:"body"`
	DisplayHints DisplayHints `json:"m.display_hints"`
	TextBody     TextBody     `json:"m.text"`

	// This is the actual object we end up parsing ourselves. The rest of the stuff is so the event
	// doesn't look too atrocious in Riot/clients.
	PingInfo PingInfo `json:"io.t2bot.monitor.ping"`
}

type PingInfo

type PingInfo struct {
	Version      int                `json:"version"`
	GeneratedMs  int64              `json:"generated_ms"`
	SenderDomain string             `json:"domain"` // Legacy
	Tree         tracker.RemoteTree `json:"tree"`
}

type RelatesTo

type RelatesTo struct {
	InReplyTo ReplyTo `json:"m.in_reply_to"`
}

type ReplyTo

type ReplyTo struct {
	EventId string `json:"event_id"`
}

type TextBody

type TextBody struct {
	Body string `json:"body"`
}

Jump to

Keyboard shortcuts

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