Documentation ¶
Index ¶
- Constants
- Variables
- func Md5(str string) string
- func StartWebDaemon()
- func StopWebDaemon()
- type AndroidPush
- type BodyAndroid
- type IOSPush
- type PayloadAndroid
- type PushClient
- type RegexpHandler
- func (rh *RegexpHandler) Handle(pattern string, handler http.Handler)
- func (rh *RegexpHandler) HandleFunc(pattern string, handleFunc func(http.ResponseWriter, []byte))
- func (rh *RegexpHandler) HandleFuncDirect(pattern string, handlerFunc http.HandlerFunc)
- func (rh *RegexpHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
- type UMAndroid
- type WebProxyServer
Constants ¶
View Source
const ( DevInfoDbKey = "DeviceInfoDbKey_" DevInfoDBKeyHead = DevInfoDbKey + "0_" DevInfoDBKeyEnd = DevInfoDbKey + "1_" )
View Source
const (
AppBundle = "com.hop.ninja.light"
)
Variables ¶
View Source
var InvalidRequest, _ = json.Marshal("not a post request")
View Source
var JsonErr = webmsg.ParseJsonErr.PackResult("parse json error")
Functions ¶
func StartWebDaemon ¶
func StartWebDaemon()
func StopWebDaemon ¶
func StopWebDaemon()
Types ¶
type AndroidPush ¶
type AndroidPush struct { }
type BodyAndroid ¶
type PayloadAndroid ¶
type PayloadAndroid struct { DisplayType string `json:"display_type"` Body *BodyAndroid `json:"body"` Extra map[string]string `json:"extra"` }
type PushClient ¶
type RegexpHandler ¶
type RegexpHandler struct {
// contains filtered or unexported fields
}
func (*RegexpHandler) Handle ¶
func (rh *RegexpHandler) Handle(pattern string, handler http.Handler)
func (*RegexpHandler) HandleFunc ¶
func (rh *RegexpHandler) HandleFunc(pattern string, handleFunc func(http.ResponseWriter, []byte))
func (*RegexpHandler) HandleFuncDirect ¶
func (rh *RegexpHandler) HandleFuncDirect(pattern string, handlerFunc http.HandlerFunc)
func (*RegexpHandler) ServeHTTP ¶
func (rh *RegexpHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type WebProxyServer ¶
type WebProxyServer struct {
// contains filtered or unexported fields
}
func NewWebServer ¶
func NewWebServer(networkAddr string) *WebProxyServer
func (*WebProxyServer) Shutdown ¶
func (ws *WebProxyServer) Shutdown() error
func (*WebProxyServer) Start ¶
func (ws *WebProxyServer) Start() error
Click to show internal directories.
Click to hide internal directories.