sse

package
v0.5.12 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateQueryHandler

func CreateQueryHandler(
	cmd cmds.Command,
	middlewares_ ...middlewares.Middleware,
) echo.HandlerFunc

Types

type QueryHandler

type QueryHandler struct {
	// contains filtered or unexported fields
}

func NewQueryHandler

func NewQueryHandler(cmd cmds.Command, options ...QueryHandlerOption) *QueryHandler

func (*QueryHandler) Handle

func (h *QueryHandler) Handle(c echo.Context) error

type QueryHandlerOption

type QueryHandlerOption func(*QueryHandler)

func WithMiddlewares added in v0.5.0

func WithMiddlewares(middlewares ...middlewares.Middleware) QueryHandlerOption

type SSEWriter

type SSEWriter struct {
	// contains filtered or unexported fields
}

SSEWriter implements io.Writer to emit written bytes as SSE over HTTP.

func NewSSEWriter

func NewSSEWriter() *SSEWriter

func (*SSEWriter) Close

func (w *SSEWriter) Close()

func (*SSEWriter) Write

func (w *SSEWriter) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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