SiloCityLabs / lochnas

Docker configuration for all-in-one nas setup
https://lochnas.com
GNU General Public License v3.0
51 stars 3 forks source link

Notify Package #43

Closed ldrrp closed 2 years ago

ldrrp commented 2 years ago

Problem

No way to communicate with users other than logs.

Solution

Create a package called notifications that wraps the package notify. This package will be used to send notifications. To user selected service or the default service. This should be written using an interface{} for the service configuration so that you can cast different structs for the service in question.

https://github.com/nikoksr/notify

 - notifications:
    - notify: true
    - default: "telegram"
    - config:
      - name: telegram
        values: interface{}

Create a test action that will send a notification to the default service.

Steps to Reproduce the Problem

  1. ./server.bin -test notify