notifier

package
v0.0.0-...-92bf813 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Discord_notifier

type Discord_notifier struct {
	Webhook_url string
}

func (Discord_notifier) Notify

func (disc_notifier Discord_notifier) Notify(gpus []*constants.GPU) error

type Embed

type Embed struct {
	Title       string       `json:"title"`
	Description string       `json:"description"`
	Color       int          `json:"color"`
	Fields      []EmbedField `json:"fields"`
}

type EmbedField

type EmbedField struct {
	Name   string `json:"name"`
	Value  string `json:"value"`
	Inline bool   `json:"inline"`
}

type Notifier

type Notifier interface {
	Notify(gpus []*constants.GPU) error
}

use this for webhooks with discord (or any other way to notify yourself)

Jump to

Keyboard shortcuts

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