config

package
v0.0.0-...-3fce2cf Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2014 License: Apache-2.0 Imports: 2 Imported by: 0

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

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) GetEmail

func (m *Contact) GetEmail() string

func (*Contact) GetPhone

func (m *Contact) GetPhone() string

func (*Contact) GetSms

func (m *Contact) GetSms() string

func (*Contact) GetTimeout

func (m *Contact) GetTimeout() uint64

func (*Contact) ProtoMessage

func (*Contact) ProtoMessage()

func (*Contact) Reset

func (m *Contact) Reset()

func (*Contact) String

func (m *Contact) String() string

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) GetPager

func (m *Matcher) GetPager() []string

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) GetTime

func (m *Matcher) GetTime() []*TimeRange

func (*Matcher) ProtoMessage

func (*Matcher) ProtoMessage()

func (*Matcher) Reset

func (m *Matcher) Reset()

func (*Matcher) String

func (m *Matcher) String() string

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) GetFrom

func (m *TimeRange) GetFrom() uint32

func (*TimeRange) GetTo

func (m *TimeRange) GetTo() uint32

func (*TimeRange) ProtoMessage

func (*TimeRange) ProtoMessage()

func (*TimeRange) Reset

func (m *TimeRange) Reset()

func (*TimeRange) String

func (m *TimeRange) String() string

Jump to

Keyboard shortcuts

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