types

package
v2.8.179 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JsonResponse

type JsonResponse struct {
	Code    string      `json:"code" example:"0"`
	Message string      `json:"message" example:"no error"`
	Data    interface{} `json:"data,omitempty"`
}

type Listener added in v2.8.130

type Listener struct {
	pushKit.Listener
}

func (*Listener) BeforeClosedByBackend added in v2.8.142

func (l *Listener) BeforeClosedByBackend(channel pushKit.Channel, closeInfo string)

func (*Listener) OnClose added in v2.8.130

func (l *Listener) OnClose(channel pushKit.Channel, closeInfo string, bsid, user, group string)

func (*Listener) OnFailure added in v2.8.130

func (l *Listener) OnFailure(w http.ResponseWriter, r *http.Request, failureInfo string)

func (*Listener) OnHandshake added in v2.8.130

func (l *Listener) OnHandshake(w http.ResponseWriter, r *http.Request, channel pushKit.Channel)

func (*Listener) OnMessage added in v2.8.130

func (l *Listener) OnMessage(channel pushKit.Channel, messageType int, data []byte)

Jump to

Keyboard shortcuts

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