Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Address to listen on (e.g. ":8080") Address string // Path for SSE events endpoint (e.g. "/events") EventsPath string // Path for JSON-RPC endpoint (e.g. "/rpc") RPCPath string // Optional logger Logger Logger }
Config holds the configuration for the SSE transport
type Logger ¶
type Logger interface {
Printf(format string, v ...interface{})
}
Logger interface for transport logging
type Transport ¶
type Transport struct {
// contains filtered or unexported fields
}
Transport implements a server transport using Server-Sent Events (SSE)
func NewTransport ¶
NewTransport creates a new SSE transport
func (*Transport) GetHandler ¶
GetHandler returns the HTTP handler for the transport
func (*Transport) StartAsync ¶
Start starts the transport in a goroutine
Click to show internal directories.
Click to hide internal directories.