Documentation ¶
Index ¶
- Variables
- type Message
- type MessageEdit
- type PlutoDB
- func (p PlutoDB) AddMessage(m *discordgo.Message)
- func (db PlutoDB) Close() error
- func (db PlutoDB) DecodeData(data []byte, output interface{}) error
- func (db PlutoDB) EncodeData(data interface{}) ([]byte, error)
- func (p PlutoDB) GetMessage(id string) (*Message, error)
- func (p PlutoDB) GetMessages(from, till time.Time) ([]*Message, error)
- func (p PlutoDB) IdDate(id string) time.Time
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ERR_DATEZERO = errors.New("Error, date is zero.") ERR_NOTEXIST_MESSAGEROOT = errors.New("Error, ROOT messages bucket does not exist") ERR_NOTEXIST_QUERYBUCKET = errors.New("Error, queried bucket does not exist") ERR_NONEXIST_MESSAGEBYID = errors.New("Error, the given ID does not exist within the bucket it should inhabit") ERR_PARSE_TIMEFROMID = func(id string, err error) error { return errors.New("Error parsing id " + id + "to string:" + err.Error()) } ERR_DECODE_MESSAGE = func(id string, err error) error { return errors.New("Error parsing message " + id + "to message struct: " + err.Error()) } )
Functions ¶
This section is empty.
Types ¶
type MessageEdit ¶
Click to show internal directories.
Click to hide internal directories.