Documentation ¶
Index ¶
- func Check(rep interface{}, err error) (moira.CheckData, error)
- func Contact(rep interface{}, err error) (moira.ContactData, error)
- func Contacts(rep interface{}, err error) ([]*moira.ContactData, error)
- func Event(rep interface{}, err error) (moira.NotificationEvent, error)
- func Events(rep interface{}, err error) ([]*moira.NotificationEvent, error)
- func GetTriggerBytes(triggerID string, trigger *moira.Trigger) ([]byte, error)
- func MetricValues(values interface{}) ([]*moira.MetricValue, error)
- func Notification(rep interface{}, err error) (moira.ScheduledNotification, error)
- func Notifications(rep interface{}, err error) ([]*moira.ScheduledNotification, error)
- func Subscription(rep interface{}, err error) (moira.SubscriptionData, error)
- func Subscriptions(rep interface{}, err error) ([]*moira.SubscriptionData, error)
- func Trigger(rep interface{}, err error) (moira.Trigger, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Contact ¶
func Contact(rep interface{}, err error) (moira.ContactData, error)
Contact converts redis DB reply to moira.ContactData object
func Contacts ¶
func Contacts(rep interface{}, err error) ([]*moira.ContactData, error)
Contacts converts redis DB reply to moira.ContactData objects array
func Event ¶
func Event(rep interface{}, err error) (moira.NotificationEvent, error)
Event converts redis DB reply to moira.NotificationEvent object
func Events ¶
func Events(rep interface{}, err error) ([]*moira.NotificationEvent, error)
Events converts redis DB reply to moira.NotificationEvent objects array
func GetTriggerBytes ¶
GetTriggerBytes marshal moira.Trigger to bytes array
func MetricValues ¶
func MetricValues(values interface{}) ([]*moira.MetricValue, error)
MetricValues converts redis DB reply struct "RetentionTimestamp Value" "Timestamp" to moira.MetricValue object
func Notification ¶
func Notification(rep interface{}, err error) (moira.ScheduledNotification, error)
Notification converts redis DB reply to moira.ScheduledNotification object
func Notifications ¶
func Notifications(rep interface{}, err error) ([]*moira.ScheduledNotification, error)
Notifications converts redis DB reply to moira.ScheduledNotification objects array
func Subscription ¶
func Subscription(rep interface{}, err error) (moira.SubscriptionData, error)
Subscription converts redis DB reply to moira.SubscriptionData object
func Subscriptions ¶
func Subscriptions(rep interface{}, err error) ([]*moira.SubscriptionData, error)
Subscriptions converts redis DB reply to moira.SubscriptionData objects array
Types ¶
This section is empty.