alert

package
v0.0.0-...-2f9a7ba Latest Latest
Warning

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

Go to latest
Published: May 9, 2019 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAlertModule

func NewAlertModule(bot *roll.Bot, dbBucket storm.Node) (roll.Module, error)

Types

type Alert

type Alert struct {
	ID        int           `json:"id" storm:"id,increment"`
	Period    roll.Duration `json:"period"`
	NextAlert roll.Time     `json:"next_alert"`
	Message   string        `json:"message"`
}

type AlertModule

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

func (*AlertModule) Start

func (m *AlertModule) Start() error

func (*AlertModule) Stop

func (m *AlertModule) Stop() error

type AlertService

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

func NewAlertService

func NewAlertService(module *AlertModule) *AlertService

func (*AlertService) Get

func (s *AlertService) Get(r *http.Request, id *int, alert *Alert) error

func (*AlertService) New

func (s *AlertService) New(r *http.Request, alert *Alert, id *int) error

func (*AlertService) Trigger

func (s *AlertService) Trigger(r *http.Request, id *int, resp *int) error

func (*AlertService) Update

func (s *AlertService) Update(r *http.Request, alert *Alert, id *int) error

Jump to

Keyboard shortcuts

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