reply

package
v2.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(rep interface{}, err error) (moira.CheckData, error)

Check converts redis DB reply to moira.CheckData

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

func GetTriggerBytes(triggerID string, trigger *moira.Trigger) ([]byte, error)

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

func Trigger

func Trigger(rep interface{}, err error) (moira.Trigger, error)

Trigger converts redis DB reply to moira.Trigger object

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL