123456789101112131415161718192021222324252627282930313233343536373839 |
- package hrpc
- import (
- "context"
- "github.com/golang/protobuf/proto"
- "github.com/tsuna/gohbase/pb"
- )
- type ClusterStatus struct {
- base
- }
- func NewClusterStatus() *ClusterStatus {
- return &ClusterStatus{
- base{
- ctx: context.Background(),
- table: []byte{},
- resultch: make(chan RPCResult, 1),
- },
- }
- }
- func (c *ClusterStatus) Name() string {
- return "GetClusterStatus"
- }
- func (c *ClusterStatus) ToProto() proto.Message {
- return &pb.GetClusterStatusRequest{}
- }
- func (c *ClusterStatus) NewResponse() proto.Message {
- return &pb.GetClusterStatusResponse{}
- }
|