Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventBroker ¶ added in v1.2.0
type EventBroker struct {
// contains filtered or unexported fields
}
func NewEventBroker ¶ added in v1.2.0
func NewEventBroker(logger *slog.Logger) *EventBroker
func (*EventBroker) Broadcast ¶ added in v1.2.0
func (b *EventBroker) Broadcast(event SSEEvent)
func (*EventBroker) ClientCount ¶ added in v1.2.0
func (b *EventBroker) ClientCount() int
func (*EventBroker) ServeHTTP ¶ added in v1.2.0
func (b *EventBroker) ServeHTTP(w http.ResponseWriter, r *http.Request)
func (*EventBroker) Subscribe ¶ added in v1.2.0
func (b *EventBroker) Subscribe() *sseClient
func (*EventBroker) Unsubscribe ¶ added in v1.2.0
func (b *EventBroker) Unsubscribe(c *sseClient)
type RequestLogWriter ¶
type RequestLogWriter struct {
// contains filtered or unexported fields
}
func NewRequestLogWriter ¶
func NewRequestLogWriter(store storage.Store, logger *slog.Logger) *RequestLogWriter
func (*RequestLogWriter) Run ¶
func (w *RequestLogWriter) Run(ctx context.Context)
func (*RequestLogWriter) Send ¶
func (w *RequestLogWriter) Send(log *storage.RequestLog)
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) EventBroker ¶ added in v1.2.0
func (s *Server) EventBroker() *EventBroker
func (*Server) RequestLogWriter ¶
func (s *Server) RequestLogWriter() *RequestLogWriter
Click to show internal directories.
Click to hide internal directories.