notifier

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const QueueName = "notification"

Variables

This section is empty.

Functions

This section is empty.

Types

type EventMessage

type EventMessage struct {
	Event     string      `json:"event"`
	Timestamp int64       `json:"timestamp"`
	EventData interface{} `json:"message"`
}

type Notification

type Notification struct {
	Topic     string      `json:"topic"`
	Event     string      `json:"event"`
	EventData interface{} `json:"message"`
}

type Server

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

func New

func New(prov provider) (*Server, error)

func (*Server) Error

func (r *Server) Error(err error)

func (*Server) Errors

func (r *Server) Errors() (chan error, error)

func (*Server) Start

func (r *Server) Start() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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