mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-02 16:15:59 +08:00
conn
This commit is contained in:
@@ -4,12 +4,15 @@ import (
|
||||
"context"
|
||||
|
||||
"google.golang.org/grpc"
|
||||
"google.golang.org/grpc/resolver"
|
||||
)
|
||||
|
||||
type Conn interface {
|
||||
GetConns(ctx context.Context, serviceName string, opts ...grpc.DialOption) ([]*grpc.ClientConn, error)
|
||||
GetConn(ctx context.Context, serviceName string, opts ...grpc.DialOption) (*grpc.ClientConn, error)
|
||||
AddOption(opts ...grpc.DialOption)
|
||||
// do not use this method for call rpc
|
||||
GetClientLocalConns() map[string][]resolver.Address
|
||||
}
|
||||
|
||||
type SvcDiscoveryRegistry interface {
|
||||
|
||||
Reference in New Issue
Block a user