Skip to content

kercylan98/vivid-nexus

Repository files navigation

Go Reference License: MIT Go Version Go Report Card GitHub stars

Vivid-Nexus

基于 vivid 的会话管理层,将网络连接抽象为会话并由统一入口管理生命周期与消息收发。

需配合 vivid 使用,API 以 Releases 与文档为准。

安装

go get github.com/kercylan98/vivid-nexus

Go 1.26+,并已引入 vivid

快速开始

n, _ := nexus.New(nexus.SessionActorProviderFN(func() (nexus.SessionActor, error) {
    return &MySessionActor{}, nil
}))

system.ActorOf(n.Actor())
n.TakeoverSession(mySession)

更多用法见 vivid 文档pkg.go.dev

文档与许可

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages