cluster

package
v1.1.31 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterClusterServer

func RegisterClusterServer(s *grpc.Server, srv ClusterServer)

Types

type CheckHealthRequest

type CheckHealthRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CheckHealthRequest) Descriptor

func (*CheckHealthRequest) Descriptor() ([]byte, []int)

func (*CheckHealthRequest) ProtoMessage

func (*CheckHealthRequest) ProtoMessage()

func (*CheckHealthRequest) Reset

func (m *CheckHealthRequest) Reset()

func (*CheckHealthRequest) String

func (m *CheckHealthRequest) String() string

func (*CheckHealthRequest) XXX_DiscardUnknown

func (m *CheckHealthRequest) XXX_DiscardUnknown()

func (*CheckHealthRequest) XXX_Marshal

func (m *CheckHealthRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CheckHealthRequest) XXX_Merge

func (m *CheckHealthRequest) XXX_Merge(src proto.Message)

func (*CheckHealthRequest) XXX_Size

func (m *CheckHealthRequest) XXX_Size() int

func (*CheckHealthRequest) XXX_Unmarshal

func (m *CheckHealthRequest) XXX_Unmarshal(b []byte) error

type CheckHealthResponse

type CheckHealthResponse struct {
	Status               string   `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CheckHealthResponse) Descriptor

func (*CheckHealthResponse) Descriptor() ([]byte, []int)

func (*CheckHealthResponse) GetStatus

func (m *CheckHealthResponse) GetStatus() string

func (*CheckHealthResponse) ProtoMessage

func (*CheckHealthResponse) ProtoMessage()

func (*CheckHealthResponse) Reset

func (m *CheckHealthResponse) Reset()

func (*CheckHealthResponse) String

func (m *CheckHealthResponse) String() string

func (*CheckHealthResponse) XXX_DiscardUnknown

func (m *CheckHealthResponse) XXX_DiscardUnknown()

func (*CheckHealthResponse) XXX_Marshal

func (m *CheckHealthResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CheckHealthResponse) XXX_Merge

func (m *CheckHealthResponse) XXX_Merge(src proto.Message)

func (*CheckHealthResponse) XXX_Size

func (m *CheckHealthResponse) XXX_Size() int

func (*CheckHealthResponse) XXX_Unmarshal

func (m *CheckHealthResponse) XXX_Unmarshal(b []byte) error

type ClusterClient

type ClusterClient interface {
	ClusterList(ctx context.Context, in *ClusterListRequest, opts ...grpc.CallOption) (*ClusterListResponse, error)
	CheckHealth(ctx context.Context, in *CheckHealthRequest, opts ...grpc.CallOption) (*CheckHealthResponse, error)
}

ClusterClient is the client API for Cluster service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewClusterClient

func NewClusterClient(cc *grpc.ClientConn) ClusterClient

type ClusterInfo

type ClusterInfo struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ClusterInfo) Descriptor

func (*ClusterInfo) Descriptor() ([]byte, []int)

func (*ClusterInfo) GetName

func (m *ClusterInfo) GetName() string

func (*ClusterInfo) ProtoMessage

func (*ClusterInfo) ProtoMessage()

func (*ClusterInfo) Reset

func (m *ClusterInfo) Reset()

func (*ClusterInfo) String

func (m *ClusterInfo) String() string

func (*ClusterInfo) XXX_DiscardUnknown

func (m *ClusterInfo) XXX_DiscardUnknown()

func (*ClusterInfo) XXX_Marshal

func (m *ClusterInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ClusterInfo) XXX_Merge

func (m *ClusterInfo) XXX_Merge(src proto.Message)

func (*ClusterInfo) XXX_Size

func (m *ClusterInfo) XXX_Size() int

func (*ClusterInfo) XXX_Unmarshal

func (m *ClusterInfo) XXX_Unmarshal(b []byte) error

type ClusterListRequest

type ClusterListRequest struct {
	Pattern              string   `protobuf:"bytes,1,opt,name=pattern,proto3" json:"pattern,omitempty"`
	Count                int32    `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ClusterListRequest) Descriptor

func (*ClusterListRequest) Descriptor() ([]byte, []int)

func (*ClusterListRequest) GetCount

func (m *ClusterListRequest) GetCount() int32

func (*ClusterListRequest) GetPattern

func (m *ClusterListRequest) GetPattern() string

func (*ClusterListRequest) ProtoMessage

func (*ClusterListRequest) ProtoMessage()

func (*ClusterListRequest) Reset

func (m *ClusterListRequest) Reset()

func (*ClusterListRequest) String

func (m *ClusterListRequest) String() string

func (*ClusterListRequest) XXX_DiscardUnknown

func (m *ClusterListRequest) XXX_DiscardUnknown()

func (*ClusterListRequest) XXX_Marshal

func (m *ClusterListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ClusterListRequest) XXX_Merge

func (m *ClusterListRequest) XXX_Merge(src proto.Message)

func (*ClusterListRequest) XXX_Size

func (m *ClusterListRequest) XXX_Size() int

func (*ClusterListRequest) XXX_Unmarshal

func (m *ClusterListRequest) XXX_Unmarshal(b []byte) error

type ClusterListResponse

type ClusterListResponse struct {
	Info                 map[string]*ClusterInfo `` /* 149-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}                `json:"-"`
	XXX_unrecognized     []byte                  `json:"-"`
	XXX_sizecache        int32                   `json:"-"`
}

func (*ClusterListResponse) Descriptor

func (*ClusterListResponse) Descriptor() ([]byte, []int)

func (*ClusterListResponse) GetInfo

func (m *ClusterListResponse) GetInfo() map[string]*ClusterInfo

func (*ClusterListResponse) ProtoMessage

func (*ClusterListResponse) ProtoMessage()

func (*ClusterListResponse) Reset

func (m *ClusterListResponse) Reset()

func (*ClusterListResponse) String

func (m *ClusterListResponse) String() string

func (*ClusterListResponse) XXX_DiscardUnknown

func (m *ClusterListResponse) XXX_DiscardUnknown()

func (*ClusterListResponse) XXX_Marshal

func (m *ClusterListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ClusterListResponse) XXX_Merge

func (m *ClusterListResponse) XXX_Merge(src proto.Message)

func (*ClusterListResponse) XXX_Size

func (m *ClusterListResponse) XXX_Size() int

func (*ClusterListResponse) XXX_Unmarshal

func (m *ClusterListResponse) XXX_Unmarshal(b []byte) error

type ClusterServer

type ClusterServer interface {
	ClusterList(context.Context, *ClusterListRequest) (*ClusterListResponse, error)
	CheckHealth(context.Context, *CheckHealthRequest) (*CheckHealthResponse, error)
}

ClusterServer is the server API for Cluster service.

type GenericResponse

type GenericResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GenericResponse) Descriptor

func (*GenericResponse) Descriptor() ([]byte, []int)

func (*GenericResponse) ProtoMessage

func (*GenericResponse) ProtoMessage()

func (*GenericResponse) Reset

func (m *GenericResponse) Reset()

func (*GenericResponse) String

func (m *GenericResponse) String() string

func (*GenericResponse) XXX_DiscardUnknown

func (m *GenericResponse) XXX_DiscardUnknown()

func (*GenericResponse) XXX_Marshal

func (m *GenericResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GenericResponse) XXX_Merge

func (m *GenericResponse) XXX_Merge(src proto.Message)

func (*GenericResponse) XXX_Size

func (m *GenericResponse) XXX_Size() int

func (*GenericResponse) XXX_Unmarshal

func (m *GenericResponse) XXX_Unmarshal(b []byte) error

type UnimplementedClusterServer

type UnimplementedClusterServer struct {
}

UnimplementedClusterServer can be embedded to have forward compatible implementations.

func (*UnimplementedClusterServer) CheckHealth

func (*UnimplementedClusterServer) ClusterList

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL