Initial commit

This commit is contained in:
Donny
2019-04-22 20:46:32 +08:00
commit 49ab8aadd1
25441 changed files with 4055000 additions and 0 deletions

39
vendor/github.com/tsuna/gohbase/hrpc/status.go generated vendored Normal file
View File

@@ -0,0 +1,39 @@
package hrpc
import (
"context"
"github.com/golang/protobuf/proto"
"github.com/tsuna/gohbase/pb"
)
// ClusterStatus to represent a cluster status request
type ClusterStatus struct {
base
}
// NewClusterStatus creates a new ClusterStatusStruct with default fields
func NewClusterStatus() *ClusterStatus {
return &ClusterStatus{
base{
ctx: context.Background(),
table: []byte{},
resultch: make(chan RPCResult, 1),
},
}
}
// Name returns the name of the rpc function
func (c *ClusterStatus) Name() string {
return "GetClusterStatus"
}
// ToProto returns the Protobuf message to be sent
func (c *ClusterStatus) ToProto() proto.Message {
return &pb.GetClusterStatusRequest{}
}
// NewResponse returns the empty protobuf response
func (c *ClusterStatus) NewResponse() proto.Message {
return &pb.GetClusterStatusResponse{}
}