1
0
mirror of https://github.com/nikoksr/notify.git synced 2024-12-10 10:10:24 +02:00
notify/service/bark
2022-08-04 15:58:38 +02:00
..
bark.go chore(lint): replace ioutil.ReadAll with io.ReadAll 2022-08-04 15:39:12 +02:00
doc.go style(fmt): make fmt 2022-08-04 15:58:38 +02:00
README.md refactor(service): normalize and clean-up bark service 2022-04-23 16:12:57 +02:00

Bark

Bark is an application allows you to push customed notifications to your iPhone

Usage

// Create a bark service. `device key` is generated when you install the application. You can use the
// `bark.NewWithServers()` function to create a service with a custom server.
barkService := bark.NewWithServers("your bark device key", bark.DefaultServerURL)

// Or use `bark.New()` to create a service with the default server.
barkService = bark.New("your bark device key")

// Add more servers
barkService.AddReceivers("https://your-bark-server.com")

// Tell our notifier to use the bark service.
notify.UseServices(barkService)

// Send a test message.
_ = notify.Send(
    context.Background(),
    "Subject/Title",
    "The actual message - Hello, you awesome gophers! :)",
)