Versions in this module Expand all Collapse all v0 v0.6.1 Aug 17, 2024 v0.6.0 Aug 14, 2024 Changes in this version + func NewFiberWebSocketHandler(app *fiber.App, system *vivid.ActorSystem, configurator ...Configurator) fiber.Handler + type Actor struct + func NewStream(conn Stream, configurator ...Configurator) *Actor + func (c *Actor) OnReceive(ctx vivid.ActorContext) + type Configuration struct + func (c *Configuration) WithPerformance(performance behavior.Performance[vivid.ActorContext]) + type Configurator interface + Configure func(c *Configuration) + type FunctionalConfigurator func(c *Configuration) + func (f FunctionalConfigurator) Configure(c *Configuration) + type GNETEventHandler struct + func NewGNETEventHandler(system *vivid.ActorSystem, configurator ...Configurator) *GNETEventHandler + func (g *GNETEventHandler) OnBoot(eng gnet.Engine) (action gnet.Action) + func (g *GNETEventHandler) OnClose(c gnet.Conn, err error) (action gnet.Action) + func (g *GNETEventHandler) OnOpen(c gnet.Conn) (out []byte, action gnet.Action) + func (g *GNETEventHandler) OnShutdown(eng gnet.Engine) + func (g *GNETEventHandler) OnTick() (delay time.Duration, action gnet.Action) + func (g *GNETEventHandler) OnTraffic(c gnet.Conn) (action gnet.Action) + type Packet struct + func NewPacket() *Packet + func NewPacketC(ctx any) *Packet + func NewPacketD(data []byte) *Packet + func NewPacketDC(data []byte, ctx any) *Packet + func NewPacketS(data string) *Packet + func NewPacketSC(data string, ctx any) *Packet + func (p *Packet) Context() any + func (p *Packet) Data() []byte + func (p *Packet) Derivation(data []byte) *Packet + func (p *Packet) SetContext(ctx any) *Packet + func (p *Packet) SetData(data []byte) *Packet + func (p *Packet) SetString(data string) *Packet + type Stream interface + Close func() error + Write func(packet *Packet) error + type Writer = vivid.ActorRef + type WriterCreatedHook interface + OnWriterCreated func(writer Writer)