4
0

add bss client

This commit is contained in:
dc.To 2025-04-29 18:27:54 +08:00
parent 0110dee434
commit 1c5ad5f20b

View File

@ -4,6 +4,7 @@ import (
"os"
"git.linkiio.cn/linkpay/invoke/chain"
"git.linkiio.cn/linkpay/protobuf"
"github.com/gogf/gf/contrib/registry/etcd/v2"
"github.com/gogf/gf/contrib/rpc/grpcx/v2"
"google.golang.org/grpc"
@ -67,9 +68,11 @@ func Reflect(s reflection.GRPCServer, f ...func()) {
}
}
// func Resolve[T any](value T, f func(T) T) T {
// if f == nil {
// return value
// }
// return f(value)
// }
/**
* BSS 双向通信流
* @author dc.To
* @version 20250410
*/
func BssClient() protobuf.BssClient {
return protobuf.NewBssClient(grpcx.Client.MustNewGrpcClientConn("api"))
}