Documentation ¶
Index ¶
- type Broker
- func (b *Broker) CheckIsAuthenticated() gin.HandlerFunc
- func (b *Broker) Clean()
- func (b *Broker) GetNrOfPipes() int
- func (b *Broker) LDebug() *zerolog.Event
- func (b *Broker) LDebugF(functionName string) *zerolog.Event
- func (b *Broker) LError() *zerolog.Event
- func (b *Broker) LErrorF(functionName string) *zerolog.Event
- func (b *Broker) LEvent(eventType string, eventName string, beforeMsg func(event *zerolog.Event))
- func (b *Broker) LEventCustom(eventType string, eventName string) *zerolog.Event
- func (b *Broker) LEventF(eventType string, eventName string, functionName string) *zerolog.Event
- func (b *Broker) LFatal() *zerolog.Event
- func (b *Broker) LInfo() *zerolog.Event
- func (b *Broker) LInfoF(functionName string) *zerolog.Event
- func (b *Broker) LPanic() *zerolog.Event
- func (b *Broker) LWarn() *zerolog.Event
- func (b *Broker) LWarnF(functionName string) *zerolog.Event
- func (b *Broker) Start() error
- func (b *Broker) Stop() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Broker ¶
type Broker struct { // Name string Server *server.Server // This is the websocket server Pipes map[string]*server.Hub // These are the pipes/hubs that are being created // Logger Logger *model.Logger // contains filtered or unexported fields }
func GetDefaultBroker ¶
GetDefaultBroker it gets the default broker from the config!
func (*Broker) CheckIsAuthenticated ¶
func (b *Broker) CheckIsAuthenticated() gin.HandlerFunc
func (*Broker) GetNrOfPipes ¶
func (*Broker) LDebugF ¶
LDebugF -> when you need specifically to indicate in what function the logging is happening
func (*Broker) LErrorF ¶
LErrorF -> when you need specifically to indicate in what function the logging is happening
func (*Broker) LEventCustom ¶
func (*Broker) LInfoF ¶
LInfoF -> when you need specifically to indicate in what function the logging is happening
func (*Broker) LWarnF ¶
LWarnF -> when you need specifically to indicate in what function the logging is happening
Source Files ¶
Click to show internal directories.
Click to hide internal directories.