updater

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2016 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ScheduleList

type ScheduleList struct {
	// contains filtered or unexported fields
}

func (*ScheduleList) ById

func (s *ScheduleList) ById(id string) *pagerduty.Schedule

type Updater

type Updater struct {
	Wg        *sync.WaitGroup
	Slack     *slack.Api
	Pagerduty *pagerduty.Api
	Users     *UserList
	Schedules *ScheduleList
	LastFetch time.Time
}

func New

func New() (*Updater, error)

func (*Updater) Start

func (u *Updater) Start()

Start the updater process

type User

type User struct {
	Name        string
	SlackId     string
	SlackName   string
	PagerdutyId string
	Email       string
}

type UserList

type UserList struct {
	// contains filtered or unexported fields
}

func (*UserList) ById

func (u *UserList) ById(id string) *User

Jump to

Keyboard shortcuts

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