package mpp import "encoding/json" type MppMessage struct { Type string `json:"m"` } type MppTimeMessage struct { MppMessage Timestamp json.Number `json:"t"` } type HiMppMessage struct { MppTimeMessage User User `json:"u"` Motd string `json:"motd"` } type NoteQuotaMppMessage struct { MppMessage Allowance json.Number `json:"allowance"` Max json.Number `json:"max"` MaxHistLen json.Number `json:"maxHistLen"` } type ChatMppMessage struct { MppTimeMessage Message string `json:"a"` Part Participant `json:"p"` } type TimeMppMessage struct { MppTimeMessage Echo json.Number `json:"e"` } type ChannelMppMessage struct { MppMessage Channel Channel `json:"ch"` Participants []Participant `json:"ppl"` }