gotify

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gotify

type Gotify struct {
	URL    string
	Token  string
	Client *http.Client
}

Gotify API config

func New

func New(url, token string) *Gotify

New Gotify client

func (*Gotify) Health

func (api *Gotify) Health() bool

Health - check

func (*Gotify) Send

func (api *Gotify) Send(message *Message, debug bool)

Send new message

type Message

type Message struct {
	Title    string `json:"title"`
	Message  string `json:"message,omitempty"`
	Priority int    `json:"priority,omitempty"`
}

Message to send

Jump to

Keyboard shortcuts

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