notify

package
v0.9.6 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2019 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

2018-12-27 (cc) <paul4hough@gmail.com>

notification system interface

2019-02-19 (cc) <paul4hough@gmail.com>

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NSys

type NSys int
const (
	NSysMock NSys = iota
	NSysGitlab
	NSysHpsm
	NSysUnknown
)

func NewNSys

func NewNSys(s string) NSys

func (NSys) Int

func (t NSys) Int() int

func (NSys) String

func (t NSys) String() string

type NSysMap

type NSysMap map[string]NSys

type Notify

type Notify struct {
	DefSys        NSys
	CloseResolved bool
	// contains filtered or unexported fields
}

func New

func New(cfg config.Notify, dbg bool) *Notify

func (*Notify) Close

func (n *Notify) Close(nid nid.Nid, msg string) bool

func (*Notify) Create

func (n *Notify) Create(
	nsys NSys,
	grp string,
	title string,
	desc string,
	remed bool,
	resolve bool) (nid.Nid, error)

func (*Notify) Del

func (n *Notify) Del()

func (*Notify) Errorf

func (n *Notify) Errorf(format string, args ...interface{}) error

func (*Notify) Group

func (n *Notify) Group(nsys NSys) string

func (*Notify) System

func (n *Notify) System(nsys NSys) System

func (*Notify) Update

func (n *Notify) Update(nid nid.Nid, msg string) bool

type System

type System interface {
	Create(goup, title, desc string) (nid.Nid, error)
	Update(nid nid.Nid, desc string) error
	Close(nid nid.Nid, desc string) error
	Group() string
}

Directories

Path Synopsis
2019-01-07 (cc) <paul4hough@gmail.com> gitlab issue interface 2019-02-23 (cc) <paul4hough@gmail.com> mock mock-ticket service for testing
2019-01-07 (cc) <paul4hough@gmail.com> gitlab issue interface 2019-02-23 (cc) <paul4hough@gmail.com> mock mock-ticket service for testing
2019-02-23 (cc) <paul4hough@gmail.com> mock mock-ticket service for testing
2019-02-23 (cc) <paul4hough@gmail.com> mock mock-ticket service for testing
2018-12-25 (cc) <paul4hough@gmail.com> mock ticket interface 2019-02-23 (cc) <paul4hough@gmail.com> mock mock-ticket service for testing
2018-12-25 (cc) <paul4hough@gmail.com> mock ticket interface 2019-02-23 (cc) <paul4hough@gmail.com> mock mock-ticket service for testing
2019-02-17 (cc) <paul4hough@gmail.com> implements ticket.AlertTid interface
2019-02-17 (cc) <paul4hough@gmail.com> implements ticket.AlertTid interface

Jump to

Keyboard shortcuts

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