Categorygithub.com/kingdevnl/GoLive
modulepackage
1.0.0
Repository: https://github.com/kingdevnl/golive.git
Documentation: pkg.go.dev

# README

Go-Live

Work in progress laravel LiveWire for GoLang.

using

  • Golang:
    • GoFiber
    • GoFiber/WebSocket
    • GoFiber/template/html
  • TypeScript:
    • WebPack
    • morphdom
    • debounce

# Packages

No description provided by the author

# Functions

BroadcastEvent emits an event to all connections.
BroadcastEventTo emits an event to a specific connection.
EmitEvent emits an event to all components.
EmitEventTo emits an event to a specific component.
GenerateID generates a random ID string of the given length.
GetComponent returns a component by name.
No description provided by the author
No description provided by the author
InitComponents loops over all components and calls the OnInit function.
Live function to be called from a template to render a component.
LiveChild function to be called from a component to render a child.
NewState creates a new state and assigns it an ID and returns it.
NewWebsocket creates a new websocket instance.
No description provided by the author
SetupEngine sets up the HTML engine for rendering templates.
SetupGarbageCollector initializes the garbage collector for removing old states.
SetupHandler adds the endpoints to the fiber app for the WebSocket.

# Variables

Connections list of all connections.
Engine the engine used for rendering templates.

# Structs

Component default component implementation.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

IComponent Interface.
No description provided by the author

# Type aliases

EventFunc type for event functions.
No description provided by the author
No description provided by the author