mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-05-15 08:29:08 +08:00
35 lines
843 B
Go
35 lines
843 B
Go
package service
|
|
|
|
//
|
|
//import (
|
|
// "context"
|
|
// "fmt"
|
|
// "sync"
|
|
//
|
|
// "google.golang.org/grpc"
|
|
//)
|
|
//
|
|
//type DiscoveryRegistry struct {
|
|
// lock sync.RWMutex
|
|
// services map[string]grpc.ClientConnInterface
|
|
//}
|
|
//
|
|
//func (x *DiscoveryRegistry) RegisterService(desc *grpc.ServiceDesc, impl any) {
|
|
// fmt.Println("RegisterService", desc, impl)
|
|
//}
|
|
//
|
|
//func (x *DiscoveryRegistry) GetConns(ctx context.Context, serviceName string, opts ...grpc.DialOption) ([]grpc.ClientConnInterface, error) {
|
|
// //TODO implement me
|
|
// panic("implement me")
|
|
//}
|
|
//
|
|
//func (x *DiscoveryRegistry) GetConn(ctx context.Context, serviceName string, opts ...grpc.DialOption) (grpc.ClientConnInterface, error) {
|
|
// //TODO implement me
|
|
// panic("implement me")
|
|
//}
|
|
//
|
|
//func (x *DiscoveryRegistry) IsSelfNode(cc grpc.ClientConnInterface) bool {
|
|
//
|
|
// return false
|
|
//}
|