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 Expand ▾ Collapse ▴ Documentation ¶ Overview ¶ Package macos is used to send notifications to macOS Index ¶ func ServiceHandler(c Config) http.HandlerFunc type Config func NewConfig() Config func (c Config) Validate() error type Service func NewService(c Config, l *log.Logger, r *mux.Router) *Service 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 Source Files ¶ View all Source files config.go handler.go macos.go Click to show internal directories. Click to hide internal directories.