services

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: 2 Imported by: 0

Documentation

Overview

Package services provide general struct and function used by all other services.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendMessage

func SendMessage(msg Msg, status int, w http.ResponseWriter)

SendMessage send json data to client

Types

type Msg

type Msg struct {
	Success bool   `json:"success"`
	Message string `json:"message,omitempty"`
}

Msg is the general message returned to client

Directories

Path Synopsis
Package macos is used to send notifications to macOS
Package macos is used to send notifications to macOS
Package slack is used to send Slack messages
Package slack is used to send Slack messages
Package smtp is used to send emails through SMTP
Package smtp is used to send emails through SMTP
Package telegram is used to send Telegram messages
Package telegram is used to send Telegram messages
Package twilio is used to send SMS through twilio platform
Package twilio is used to send SMS through twilio platform
Package wechat is used to send WeChat messages Coding according to this document: https://github.com/biezhi/wechat-robot/blob/master/doc/protocol.md http://www.sunrui123.com/archives/15
Package wechat is used to send WeChat messages Coding according to this document: https://github.com/biezhi/wechat-robot/blob/master/doc/protocol.md http://www.sunrui123.com/archives/15

Jump to

Keyboard shortcuts

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