1 Star 2 Fork 0

baetyl / baetyl-state

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
main.go 323 Bytes
一键复制 编辑 原始数据 按行查看 历史
chensheng 提交于 2020-03-26 18:30 . add boltdb and http api (#2)
package main
import (
"github.com/baetyl/baetyl-go/context"
)
func main() {
context.Run(func(ctx context.Context) error {
var cfg Config
err := ctx.LoadCustomConfig(&cfg)
if err != nil {
return err
}
s, err := NewServer(cfg)
if err != nil {
s.Close()
return err
}
ctx.Wait()
return nil
})
}
Go
1
https://gitee.com/baetyl/baetyl-state.git
git@gitee.com:baetyl/baetyl-state.git
baetyl
baetyl-state
baetyl-state
master

搜索帮助