sse

package
v0.0.0-...-d140a6e Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sse

type Sse struct {
	ResponseWriter gin.ResponseWriter
}

Sse SSE /**

func New

func New(writer gin.ResponseWriter) *Sse

func (*Sse) Close

func (sse *Sse) Close(data string) (len int, err error)

Close 关闭 /**

func (*Sse) Send

func (sse *Sse) Send(data string) (len int, err error)

Send 推送/**

Jump to

Keyboard shortcuts

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