You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Geeksbot/message.go

20 lines
446 B

package geeksbot
type Message struct {
ID string
CreatedAt int64
ModifiedAt int64
Content string
PreviousContent []string
Channel Channel
Author User
}
type MessageService interface {
Message(id string) (Message, error)
CreateMessage(m Message) (Message, error)
DeleteMessage(m Message) error
ChannelMessages(c Channel) ([]Message, error)
UpdateMessage(m Message) (Message, error)
}