Documentation ¶
Overview ¶
Package config is a generated protocol buffer package.
It is generated from these files:
config.proto
It has these top-level messages:
PagerConfig Matcher StringMatch TimeRange Contact NotificationSequence
Index ¶
- type Contact
- type Matcher
- func (m *Matcher) GetBody() []*StringMatch
- func (m *Matcher) GetPager() []string
- func (m *Matcher) GetSender() []*StringMatch
- func (m *Matcher) GetSubject() []*StringMatch
- func (m *Matcher) GetTag() []*StringMatch
- func (m *Matcher) GetTime() []*TimeRange
- func (*Matcher) ProtoMessage()
- func (m *Matcher) Reset()
- func (m *Matcher) String() string
- type NotificationSequence
- type PagerConfig
- type StringMatch
- type TimeRange
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Contact ¶
type Contact struct { // Timeout for this contact, in seconds. Timeout *uint64 `protobuf:"varint,1,opt,name=timeout" json:"timeout,omitempty"` Email *string `protobuf:"bytes,2,opt,name=email" json:"email,omitempty"` Phone *string `protobuf:"bytes,3,opt,name=phone" json:"phone,omitempty"` Sms *string `protobuf:"bytes,4,opt,name=sms" json:"sms,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*Contact) GetTimeout ¶
func (*Contact) ProtoMessage ¶
func (*Contact) ProtoMessage()
type Matcher ¶
type Matcher struct { // ID of a Pager Pager []string `protobuf:"bytes,1,rep,name=pager" json:"pager,omitempty"` // Regex match on the e-mail's sender. Sender []*StringMatch `protobuf:"bytes,2,rep,name=sender" json:"sender,omitempty"` // Current time is within one of the time ranges. Time []*TimeRange `protobuf:"bytes,3,rep,name=time" json:"time,omitempty"` // Match the subject of the e-mail. Subject []*StringMatch `protobuf:"bytes,4,rep,name=subject" json:"subject,omitempty"` // Match the body of the e-mail. Body []*StringMatch `protobuf:"bytes,5,rep,name=body" json:"body,omitempty"` // E-mail tag (e.g. "cpu" in chris+cpu). Tag []*StringMatch `protobuf:"bytes,6,rep,name=tag" json:"tag,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*Matcher) GetBody ¶
func (m *Matcher) GetBody() []*StringMatch
func (*Matcher) GetSender ¶
func (m *Matcher) GetSender() []*StringMatch
func (*Matcher) GetSubject ¶
func (m *Matcher) GetSubject() []*StringMatch
func (*Matcher) GetTag ¶
func (m *Matcher) GetTag() []*StringMatch
func (*Matcher) ProtoMessage ¶
func (*Matcher) ProtoMessage()
type NotificationSequence ¶
type NotificationSequence struct { Contact []*Contact `protobuf:"bytes,1,rep,name=contact" json:"contact,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*NotificationSequence) GetContact ¶
func (m *NotificationSequence) GetContact() []*Contact
func (*NotificationSequence) ProtoMessage ¶
func (*NotificationSequence) ProtoMessage()
func (*NotificationSequence) Reset ¶
func (m *NotificationSequence) Reset()
func (*NotificationSequence) String ¶
func (m *NotificationSequence) String() string
type PagerConfig ¶
type PagerConfig struct { Rule []*Matcher `protobuf:"bytes,1,rep,name=rule" json:"rule,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*PagerConfig) GetRule ¶
func (m *PagerConfig) GetRule() []*Matcher
func (*PagerConfig) ProtoMessage ¶
func (*PagerConfig) ProtoMessage()
func (*PagerConfig) Reset ¶
func (m *PagerConfig) Reset()
func (*PagerConfig) String ¶
func (m *PagerConfig) String() string
type StringMatch ¶
type StringMatch struct { Substring *string `protobuf:"bytes,1,opt,name=substring" json:"substring,omitempty"` Regex *string `protobuf:"bytes,2,opt,name=regex" json:"regex,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*StringMatch) GetRegex ¶
func (m *StringMatch) GetRegex() string
func (*StringMatch) GetSubstring ¶
func (m *StringMatch) GetSubstring() string
func (*StringMatch) ProtoMessage ¶
func (*StringMatch) ProtoMessage()
func (*StringMatch) Reset ¶
func (m *StringMatch) Reset()
func (*StringMatch) String ¶
func (m *StringMatch) String() string
type TimeRange ¶
type TimeRange struct { // Number between 0000 and 2359 From *uint32 `protobuf:"varint,1,req,name=from" json:"from,omitempty"` To *uint32 `protobuf:"varint,2,req,name=to" json:"to,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*TimeRange) ProtoMessage ¶
func (*TimeRange) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.