[MM-40638] Type all of the websocket event names as a new type WebsocketEventType (#25454)
Co-authored-by: Sudheer Tripathi <sudheer@clearglass.com> Co-authored-by: Sudheer Tripathi <31629433+sudheer121@users.noreply.github.com> Co-authored-by: Sudheer Tripathi <tripathisudheer604@gmail.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
e1f72576fb
Коммит
51e73b681b
@@ -42,8 +42,8 @@ type MetricsInterface interface {
|
||||
IncrementMemCacheHitCounterSession()
|
||||
IncrementMemCacheInvalidationCounterSession()
|
||||
|
||||
IncrementWebsocketEvent(eventType string)
|
||||
IncrementWebSocketBroadcast(eventType string)
|
||||
IncrementWebsocketEvent(eventType model.WebsocketEventType)
|
||||
IncrementWebSocketBroadcast(eventType model.WebsocketEventType)
|
||||
IncrementWebSocketBroadcastBufferSize(hub string, amount float64)
|
||||
DecrementWebSocketBroadcastBufferSize(hub string, amount float64)
|
||||
IncrementWebSocketBroadcastUsersRegistered(hub string, amount float64)
|
||||
|
||||
@@ -210,7 +210,7 @@ func (_m *MetricsInterface) IncrementUserIndexCounter() {
|
||||
}
|
||||
|
||||
// IncrementWebSocketBroadcast provides a mock function with given fields: eventType
|
||||
func (_m *MetricsInterface) IncrementWebSocketBroadcast(eventType string) {
|
||||
func (_m *MetricsInterface) IncrementWebSocketBroadcast(eventType model.WebsocketEventType) {
|
||||
_m.Called(eventType)
|
||||
}
|
||||
|
||||
@@ -230,7 +230,7 @@ func (_m *MetricsInterface) IncrementWebhookPost() {
|
||||
}
|
||||
|
||||
// IncrementWebsocketEvent provides a mock function with given fields: eventType
|
||||
func (_m *MetricsInterface) IncrementWebsocketEvent(eventType string) {
|
||||
func (_m *MetricsInterface) IncrementWebsocketEvent(eventType model.WebsocketEventType) {
|
||||
_m.Called(eventType)
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user