storage get messages + config improve + tests
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
ycc
2023-02-15 22:08:17 +01:00
parent d9155bac51
commit 6f2a65dac9
8 changed files with 175 additions and 832 deletions

View File

@ -17,6 +17,7 @@ type Config struct {
MsgDbRollingPeriod int `json:"msg_db_rolling_period,omitempty"`
Chunksize int64 `json:"chunksize,omitempty"`
ServerPollInterval int `json:"server_poll_interval,omitempty"`
DbSize int `json:"db_size,omitempty"`
// GUI
LastOpenChat string `json:"last_open_chat,omitempty"`
SoundNotification bool `json:"sound_notification,omitempty"`
@ -30,11 +31,13 @@ type Config struct {
PrivateChatNotifiactions bool `json:"private_chat_notifiactions,omitempty"`
GroupChatNotifiactions bool `json:"group_chat_notifiactions,omitempty"`
ChannelNotifications bool `json:"channel_notifications,omitempty"`
// Debug
DbSuffix string `json:"db_suffix,omitempty"`
// Inner
memoryPassword string
additionalPasswords []string
me *Identity
memoryPassword string `json:"memory_password,omitempty"`
additionalPasswords []string `json:"additional_passwords,omitempty"`
me *Identity `json:"me,omitempty"`
}
var instance *Config