package
2.14.1+incompatible
Repository: https://github.com/moira-alert/moira.git
Documentation: pkg.go.dev
# Functions
BRPopToEvent converts redis DB reply to moira.NotificationEvent object.
Check converts redis DB reply to moira.CheckData.
Checks converts an array of redis DB reply to moira.CheckData objects, if reply is nil, then checkdata is nil.
Contact converts redis DB reply to moira.ContactData object.
Contacts converts redis DB reply to moira.ContactData objects array.
Events converts redis DB reply to moira.NotificationEvent objects array.
GetCheckBytes is a function that takes moira.CheckData and turns it to bytes that will be saved in redis.
GetEventBytes is a function that takes moira.NotificationEvent and turns it to bytes that will be saved in redis.
GetNotificationBytes is a function that takes moira.ScheduledNotification and turns it to bytes that will be saved in redis.
GetSearchResultBytes is a function that takes a search result converts it to a storage structure and marshal it to JSON.
GetTriggerBytes marshal moira.Trigger to bytes array.
MarshallTeam is a function that converts team to the bytes that can be held in database.
MetricValues converts redis DB reply struct "RetentionTimestamp Value" "Timestamp" to moira.MetricValue object.
NewTeam is a function that creates a team entity from a bytes received from database.
Notifications converts redis DB reply to moira.ScheduledNotification objects array.
SearchResults is a function that converts redis reply to slice of SearchResults.
Subscription converts redis DB reply to moira.SubscriptionData object.
Trigger converts redis DB reply to moira.Trigger object.
No description provided by the author