hooks

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authorize

func Authorize(c *engine.Context)

func AuthorizeAdmin

func AuthorizeAdmin(c *engine.Context)

func HeadersMiddleware

func HeadersMiddleware() engine.HandlerFunc

Types

type ClientChan

type ClientChan chan string

ClientChan New event messages are broadcast to all registered client connection channels

type Event

type Event struct {
	// Events are pushed to this channel by the main events-gathering routine
	Message chan string

	// New client connections
	NewClients chan chan string

	// Closed client connections
	ClosedClients chan chan string

	// Total client connections
	TotalClients map[chan string]bool
}

Event It keeps a list of clients those are currently attached and broadcasting events to those clients.

func NewServer

func NewServer() (event *Event)

NewServer Initialize event and Start procnteessing requests

Jump to

Keyboard shortcuts

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