bark

package
v0.1.4752 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: MIT Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package bark pushes a message to the iOS Bark app (bark.day.app): one POST of JSON to the server's /push, with the device key in the body, so a key never sits in an address that a log, a proxy or an error names. The server is Bark's own, https://api.day.app, or a self-hosted one.

Index

Constants

View Source
const DefaultServer = "https://api.day.app"

DefaultServer is the Bark app's own server, used when none is set.

Variables

This section is empty.

Functions

func Push

func Push(ctx context.Context, t Target, title, body string) error

Push sends title and body to t. The error names the server's answer, never the device key.

Types

type Target

type Target struct {
	Server, Key string
}

Target is where a push goes: Server ("" is DefaultServer) and the device key the Bark app shows.

func (Target) On

func (t Target) On() bool

On is whether there is a device key to push to.

Jump to

Keyboard shortcuts

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