Documentation
¶
Index ¶
Constants ¶
View Source
const IAMA = "@meta/IAMA"
View Source
const PING = "@meta/PING"
View Source
const PONG = "@meta/PONG"
View Source
const WHOIS = "@meta/WHOIS"
Variables ¶
This section is empty.
Functions ¶
func Iama ¶
func Iama(manifest IamaPayload) alpaca.Action
Types ¶
type IamaPayload ¶
type IamaPayload struct {
Name string `json:"name"`
Handle string `json:"handle"`
Version string `json:"version"`
Description string `json:"description"`
StartedAtMs int64 `json:"started_at"`
}
func DecodeIama ¶
func DecodeIama(action alpaca.Action) IamaPayload
func (IamaPayload) StartedAt ¶
func (payload IamaPayload) StartedAt() time.Time
type PongPayload ¶
func DecodePong ¶
func DecodePong(action alpaca.Action) PongPayload
func (PongPayload) Timestamp ¶
func (payload PongPayload) Timestamp() time.Time
Decode int64 millisecond timestamp
Click to show internal directories.
Click to hide internal directories.