1 parent
dede07748a
commit
97dc183bdf
6 files changed
+77
-69
No files matched your search
@@ -143,12 +143,6 @@ namespace Echoion::Api::Events
|
||||
std::string reason;
|
||||
};
|
||||
|
||||
struct ChannelChanged {
|
||||
uint64_t clientId;
|
||||
uint64_t oldChannelId;
|
||||
uint64_t newChannelId;
|
||||
};
|
||||
|
||||
// Error events
|
||||
struct PlaybackError {
|
||||
ErrorCode code;
|
||||
@@ -156,45 +150,9 @@ namespace Echoion::Api::Events
|
||||
std::optional<TrackInfo> track;
|
||||
};
|
||||
|
||||
struct NetworkError {
|
||||
std::string url;
|
||||
ErrorCode code;
|
||||
std::string message;
|
||||
};
|
||||
|
||||
// Configuration events
|
||||
struct ConfigReloaded {
|
||||
BotConfig newConfig;
|
||||
};
|
||||
|
||||
struct ConfigChanged {
|
||||
std::string key;
|
||||
std::string oldValue;
|
||||
std::string newValue;
|
||||
};
|
||||
|
||||
// Cache events
|
||||
struct CacheHit {
|
||||
std::string key;
|
||||
std::string type;
|
||||
};
|
||||
|
||||
struct CacheMiss {
|
||||
std::string key;
|
||||
std::string type;
|
||||
};
|
||||
|
||||
struct CacheEvicted {
|
||||
std::string key;
|
||||
std::string reason;
|
||||
};
|
||||
|
||||
// Database persistence events (for audit/logging)
|
||||
struct DatabasePersisted {
|
||||
std::string entityType; // "queue", "playback", ...
|
||||
std::string operation; // "insert", "update", "delete"
|
||||
bool success;
|
||||
std::optional<std::string> error;
|
||||
};
|
||||
|
||||
} // namespace Echoion::Api::Events
|
||||
Reference in new issue
Block a user