Dealer/pkg/internal/gap/client.go
LittleSheep 466b240e95
Some checks failed
release-nightly / build-docker (push) Has been cancelled
🎉 Initial Commit
2024-07-14 20:25:30 +08:00

16 lines
328 B
Go

package gap
import (
"git.solsynth.dev/hydrogen/dealer/pkg/hyper"
"git.solsynth.dev/hydrogen/dealer/pkg/proto"
"github.com/spf13/viper"
)
var H *hyper.HyperConn
func NewHyperClient(info *proto.ServiceInfo) (err error) {
H, err = hyper.NewHyperConn(viper.GetString("dealer.addr"), info)
H.KeepRegisterService()
return
}