-
Notifications
You must be signed in to change notification settings - Fork 3
/
impl_admin_query_v1.go
47 lines (35 loc) · 2.4 KB
/
impl_admin_query_v1.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package gocbcoreps
import (
"context"
"github.com/couchbase/goprotostellar/genproto/admin_query_v1"
"google.golang.org/grpc"
)
type routingImpl_QueryAdminV1 struct {
client *RoutingClient
}
var _ admin_query_v1.QueryAdminServiceClient = (*routingImpl_QueryAdminV1)(nil)
func (c *routingImpl_QueryAdminV1) GetAllIndexes(ctx context.Context, in *admin_query_v1.GetAllIndexesRequest, opts ...grpc.CallOption) (*admin_query_v1.GetAllIndexesResponse, error) {
if in.BucketName != nil {
return c.client.fetchConnForBucket(*in.BucketName).QueryAdminV1().GetAllIndexes(ctx, in, opts...)
} else {
return c.client.fetchConn().QueryAdminV1().GetAllIndexes(ctx, in, opts...)
}
}
func (c *routingImpl_QueryAdminV1) CreatePrimaryIndex(ctx context.Context, in *admin_query_v1.CreatePrimaryIndexRequest, opts ...grpc.CallOption) (*admin_query_v1.CreatePrimaryIndexResponse, error) {
return c.client.fetchConnForBucket(in.BucketName).QueryAdminV1().CreatePrimaryIndex(ctx, in, opts...)
}
func (c *routingImpl_QueryAdminV1) CreateIndex(ctx context.Context, in *admin_query_v1.CreateIndexRequest, opts ...grpc.CallOption) (*admin_query_v1.CreateIndexResponse, error) {
return c.client.fetchConnForBucket(in.BucketName).QueryAdminV1().CreateIndex(ctx, in, opts...)
}
func (c *routingImpl_QueryAdminV1) DropPrimaryIndex(ctx context.Context, in *admin_query_v1.DropPrimaryIndexRequest, opts ...grpc.CallOption) (*admin_query_v1.DropPrimaryIndexResponse, error) {
return c.client.fetchConnForBucket(in.BucketName).QueryAdminV1().DropPrimaryIndex(ctx, in, opts...)
}
func (c *routingImpl_QueryAdminV1) DropIndex(ctx context.Context, in *admin_query_v1.DropIndexRequest, opts ...grpc.CallOption) (*admin_query_v1.DropIndexResponse, error) {
return c.client.fetchConnForBucket(in.BucketName).QueryAdminV1().DropIndex(ctx, in, opts...)
}
func (c *routingImpl_QueryAdminV1) BuildDeferredIndexes(ctx context.Context, in *admin_query_v1.BuildDeferredIndexesRequest, opts ...grpc.CallOption) (*admin_query_v1.BuildDeferredIndexesResponse, error) {
return c.client.fetchConnForBucket(in.BucketName).QueryAdminV1().BuildDeferredIndexes(ctx, in, opts...)
}
func (c *routingImpl_QueryAdminV1) WaitForIndexOnline(ctx context.Context, in *admin_query_v1.WaitForIndexOnlineRequest, opts ...grpc.CallOption) (*admin_query_v1.WaitForIndexOnlineResponse, error) {
return c.client.fetchConnForBucket(in.BucketName).QueryAdminV1().WaitForIndexOnline(ctx, in, opts...)
}