pushgate

package module
v0.0.0-...-affea12 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2025 License: MIT Imports: 2 Imported by: 0

README

pushgate

AWS Lambda function that acts as a gateway to forward SNS messages to the Pushover API

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	Title string
	Body  string
}

Message is a basic push message with title and body

type PushoverSender

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

PushoverSender provides a simple wrapper around the pushover api/lib

func NewPushoverSender

func NewPushoverSender(key string) *PushoverSender

NewPushoverSender creates a new *PushoverSender using the provided api key.

func (*PushoverSender) Send

func (p *PushoverSender) Send(rcpt string, msg *Message) error

type RetryableError

type RetryableError struct {
	Cause error
}

RetryableError indicates a temporary problem that may be resolved by retrying.

func (*RetryableError) Error

func (e *RetryableError) Error() string

Directories

Path Synopsis
cmd
cli command
lambda command

Jump to

Keyboard shortcuts

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