macos

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2019 License: MIT Imports: 9 Imported by: 0

README

macos

API endpoint

POST /fregata/v1/macos

input params:

{
    "title": "title",
    "subtitle": "subtitle",
    "message": "message",
    "sound": "sound"
}

Sounds list located at: /System/Library/Sounds

such as:

  • Basso
  • Blow
  • Bottle
  • Frog
  • Funk
  • Glass
  • Hero
  • Morse
  • Ping
  • Pop
  • Purr
  • Sosumi
  • Submarine
  • Tink

Documentation

Overview

Package macos is used to send notifications to macOS

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ServiceHandler

func ServiceHandler(c Config) http.HandlerFunc

Types

type Config

type Config struct {
	Enabled bool `toml:"enabled"`
}

func NewConfig

func NewConfig() Config

func (Config) Validate

func (c Config) Validate() error

Validate check if OS is macOS

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(c Config, l *log.Logger, r *mux.Router) *Service

Jump to

Keyboard shortcuts

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