Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

我应该怎么获取 grpc.ClientConnInterface #82

Closed
sober-wang opened this issue Dec 23, 2021 · 0 comments
Closed

我应该怎么获取 grpc.ClientConnInterface #82

sober-wang opened this issue Dec 23, 2021 · 0 comments

Comments

@sober-wang
Copy link

我想尝试一下 grpc 方式操作 rosedb,但是 grpc.ClientConnInterface 这个应该怎么通过 grpc 获取到。

        // 这个 conn 是 grpc.ClientConn()
	conn ,err := grpc.Dial("127.0.0.1:5300", grpc.WithInsecure)
	if err !=nil{
		return 
	}
	defer conn.Close()
        // 这里 NewRosedbClient() 需要传入 grpc.ClientConnInterface 
	cli := proto.NewRosedbClient()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant