service

package
v0.0.0-...-3b7466e Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2018 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SessionReady bool
)

Functions

func Register

func Register(session *wxweb.Session, options ...backendOption)

register plugin

func SendImage

func SendImage(data []byte, url, name string, session *wxweb.Session)

func SendText

func SendText(name, text string) error

eg.

text := "hi there, robot here\n"
sendtext("xiubi", text)         //ok, it's a remarkname
sendtext("三", "hello1by-name") //ok,  it's a group name

sendtext("filehelper", text)   //not ok
sendtext("Nickname", text)     //not ok

func SendTextQuanPin

func SendTextQuanPin(name, text string) error

eg. sendtextquanpin("san", "hello1by-py")

func SetBackendUrl

func SetBackendUrl(url string) backendOption

SetBackendUrl change the default backend default is "http://localhost:4000"

func SetDefaultBackend

func SetDefaultBackend(url string)

func SetReadyReceiver

func SetReadyReceiver(receiver string)

func ShowGroups

func ShowGroups()

Types

This section is empty.

Jump to

Keyboard shortcuts

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