management

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package management is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var ClusterWatchResponse_Event_name = map[int32]string{
	0: "UNKNOWN",
	1: "JOIN",
	2: "LEAVE",
	3: "UPDATE",
}
View Source
var ClusterWatchResponse_Event_value = map[string]int32{
	"UNKNOWN": 0,
	"JOIN":    1,
	"LEAVE":   2,
	"UPDATE":  3,
}
View Source
var NodeHealthCheckRequest_Probe_name = map[int32]string{
	0: "UNKNOWN",
	1: "HEALTHINESS",
	2: "LIVENESS",
	3: "READINESS",
}
View Source
var NodeHealthCheckRequest_Probe_value = map[string]int32{
	"UNKNOWN":     0,
	"HEALTHINESS": 1,
	"LIVENESS":    2,
	"READINESS":   3,
}
View Source
var NodeHealthCheckResponse_State_name = map[int32]string{
	0: "UNKNOWN",
	1: "HEALTHY",
	2: "UNHEALTHY",
	3: "ALIVE",
	4: "DEAD",
	5: "READY",
	6: "NOT_READY",
}
View Source
var NodeHealthCheckResponse_State_value = map[string]int32{
	"UNKNOWN":   0,
	"HEALTHY":   1,
	"UNHEALTHY": 2,
	"ALIVE":     3,
	"DEAD":      4,
	"READY":     5,
	"NOT_READY": 6,
}
View Source
var Node_State_name = map[int32]string{
	0: "UNKNOWN",
	1: "FOLLOWER",
	2: "CANDIDATE",
	3: "LEADER",
	4: "SHUTDOWN",
}
View Source
var Node_State_value = map[string]int32{
	"UNKNOWN":   0,
	"FOLLOWER":  1,
	"CANDIDATE": 2,
	"LEADER":    3,
	"SHUTDOWN":  4,
}
View Source
var Proposal_Event_name = map[int32]string{
	0: "UNKNOWN",
	1: "SET_NODE",
	2: "DELETE_NODE",
	3: "SET_VALUE",
	4: "DELETE_VALUE",
}
View Source
var Proposal_Event_value = map[string]int32{
	"UNKNOWN":      0,
	"SET_NODE":     1,
	"DELETE_NODE":  2,
	"SET_VALUE":    3,
	"DELETE_VALUE": 4,
}
View Source
var WatchResponse_Command_name = map[int32]string{
	0: "UNKNOWN",
	1: "SET",
	2: "DELETE",
}
View Source
var WatchResponse_Command_value = map[string]int32{
	"UNKNOWN": 0,
	"SET":     1,
	"DELETE":  2,
}

Functions

func RegisterManagementHandler

func RegisterManagementHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterManagementHandler registers the http handlers for service Management to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterManagementHandlerClient

func RegisterManagementHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ManagementClient) error

RegisterManagementHandlerClient registers the http handlers for service Management to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ManagementClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ManagementClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ManagementClient" to call the correct interceptors.

func RegisterManagementHandlerFromEndpoint

func RegisterManagementHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterManagementHandlerFromEndpoint is same as RegisterManagementHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterManagementServer

func RegisterManagementServer(s *grpc.Server, srv ManagementServer)

Types

type Cluster

type Cluster struct {
	Nodes                map[string]*Node `` /* 151-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

func (*Cluster) Descriptor

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

func (*Cluster) GetNodes

func (m *Cluster) GetNodes() map[string]*Node

func (*Cluster) ProtoMessage

func (*Cluster) ProtoMessage()

func (*Cluster) Reset

func (m *Cluster) Reset()

func (*Cluster) String

func (m *Cluster) String() string

func (*Cluster) XXX_DiscardUnknown

func (m *Cluster) XXX_DiscardUnknown()

func (*Cluster) XXX_Marshal

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

func (*Cluster) XXX_Merge

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

func (*Cluster) XXX_Size

func (m *Cluster) XXX_Size() int

func (*Cluster) XXX_Unmarshal

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

type ClusterInfoResponse

type ClusterInfoResponse struct {
	Cluster              *Cluster `protobuf:"bytes,1,opt,name=cluster,proto3" json:"cluster,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ClusterInfoResponse) Descriptor

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

func (*ClusterInfoResponse) GetCluster

func (m *ClusterInfoResponse) GetCluster() *Cluster

func (*ClusterInfoResponse) ProtoMessage

func (*ClusterInfoResponse) ProtoMessage()

func (*ClusterInfoResponse) Reset

func (m *ClusterInfoResponse) Reset()

func (*ClusterInfoResponse) String

func (m *ClusterInfoResponse) String() string

func (*ClusterInfoResponse) XXX_DiscardUnknown

func (m *ClusterInfoResponse) XXX_DiscardUnknown()

func (*ClusterInfoResponse) XXX_Marshal

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

func (*ClusterInfoResponse) XXX_Merge

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

func (*ClusterInfoResponse) XXX_Size

func (m *ClusterInfoResponse) XXX_Size() int

func (*ClusterInfoResponse) XXX_Unmarshal

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

type ClusterJoinRequest

type ClusterJoinRequest struct {
	Node                 *Node    `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ClusterJoinRequest) Descriptor

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

func (*ClusterJoinRequest) GetNode

func (m *ClusterJoinRequest) GetNode() *Node

func (*ClusterJoinRequest) ProtoMessage

func (*ClusterJoinRequest) ProtoMessage()

func (*ClusterJoinRequest) Reset

func (m *ClusterJoinRequest) Reset()

func (*ClusterJoinRequest) String

func (m *ClusterJoinRequest) String() string

func (*ClusterJoinRequest) XXX_DiscardUnknown

func (m *ClusterJoinRequest) XXX_DiscardUnknown()

func (*ClusterJoinRequest) XXX_Marshal

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

func (*ClusterJoinRequest) XXX_Merge

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

func (*ClusterJoinRequest) XXX_Size

func (m *ClusterJoinRequest) XXX_Size() int

func (*ClusterJoinRequest) XXX_Unmarshal

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

type ClusterLeaveRequest

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

func (*ClusterLeaveRequest) Descriptor

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

func (*ClusterLeaveRequest) GetId

func (m *ClusterLeaveRequest) GetId() string

func (*ClusterLeaveRequest) ProtoMessage

func (*ClusterLeaveRequest) ProtoMessage()

func (*ClusterLeaveRequest) Reset

func (m *ClusterLeaveRequest) Reset()

func (*ClusterLeaveRequest) String

func (m *ClusterLeaveRequest) String() string

func (*ClusterLeaveRequest) XXX_DiscardUnknown

func (m *ClusterLeaveRequest) XXX_DiscardUnknown()

func (*ClusterLeaveRequest) XXX_Marshal

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

func (*ClusterLeaveRequest) XXX_Merge

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

func (*ClusterLeaveRequest) XXX_Size

func (m *ClusterLeaveRequest) XXX_Size() int

func (*ClusterLeaveRequest) XXX_Unmarshal

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

type ClusterWatchResponse

type ClusterWatchResponse struct {
	Event                ClusterWatchResponse_Event `protobuf:"varint,1,opt,name=event,proto3,enum=management.ClusterWatchResponse_Event" json:"event,omitempty"`
	Node                 *Node                      `protobuf:"bytes,2,opt,name=node,proto3" json:"node,omitempty"`
	Cluster              *Cluster                   `protobuf:"bytes,3,opt,name=cluster,proto3" json:"cluster,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                   `json:"-"`
	XXX_unrecognized     []byte                     `json:"-"`
	XXX_sizecache        int32                      `json:"-"`
}

func (*ClusterWatchResponse) Descriptor

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

func (*ClusterWatchResponse) GetCluster

func (m *ClusterWatchResponse) GetCluster() *Cluster

func (*ClusterWatchResponse) GetEvent

func (*ClusterWatchResponse) GetNode

func (m *ClusterWatchResponse) GetNode() *Node

func (*ClusterWatchResponse) ProtoMessage

func (*ClusterWatchResponse) ProtoMessage()

func (*ClusterWatchResponse) Reset

func (m *ClusterWatchResponse) Reset()

func (*ClusterWatchResponse) String

func (m *ClusterWatchResponse) String() string

func (*ClusterWatchResponse) XXX_DiscardUnknown

func (m *ClusterWatchResponse) XXX_DiscardUnknown()

func (*ClusterWatchResponse) XXX_Marshal

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

func (*ClusterWatchResponse) XXX_Merge

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

func (*ClusterWatchResponse) XXX_Size

func (m *ClusterWatchResponse) XXX_Size() int

func (*ClusterWatchResponse) XXX_Unmarshal

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

type ClusterWatchResponse_Event

type ClusterWatchResponse_Event int32
const (
	ClusterWatchResponse_UNKNOWN ClusterWatchResponse_Event = 0
	ClusterWatchResponse_JOIN    ClusterWatchResponse_Event = 1
	ClusterWatchResponse_LEAVE   ClusterWatchResponse_Event = 2
	ClusterWatchResponse_UPDATE  ClusterWatchResponse_Event = 3
)

func (ClusterWatchResponse_Event) EnumDescriptor

func (ClusterWatchResponse_Event) EnumDescriptor() ([]byte, []int)

func (ClusterWatchResponse_Event) String

type DeleteRequest

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

func (*DeleteRequest) Descriptor

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

func (*DeleteRequest) GetKey

func (m *DeleteRequest) GetKey() string

func (*DeleteRequest) ProtoMessage

func (*DeleteRequest) ProtoMessage()

func (*DeleteRequest) Reset

func (m *DeleteRequest) Reset()

func (*DeleteRequest) String

func (m *DeleteRequest) String() string

func (*DeleteRequest) XXX_DiscardUnknown

func (m *DeleteRequest) XXX_DiscardUnknown()

func (*DeleteRequest) XXX_Marshal

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

func (*DeleteRequest) XXX_Merge

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

func (*DeleteRequest) XXX_Size

func (m *DeleteRequest) XXX_Size() int

func (*DeleteRequest) XXX_Unmarshal

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

type GetRequest

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

func (*GetRequest) Descriptor

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

func (*GetRequest) GetKey

func (m *GetRequest) GetKey() string

func (*GetRequest) ProtoMessage

func (*GetRequest) ProtoMessage()

func (*GetRequest) Reset

func (m *GetRequest) Reset()

func (*GetRequest) String

func (m *GetRequest) String() string

func (*GetRequest) XXX_DiscardUnknown

func (m *GetRequest) XXX_DiscardUnknown()

func (*GetRequest) XXX_Marshal

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

func (*GetRequest) XXX_Merge

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

func (*GetRequest) XXX_Size

func (m *GetRequest) XXX_Size() int

func (*GetRequest) XXX_Unmarshal

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

type GetResponse

type GetResponse struct {
	//    option (grpc.gateway.protoc_gen_swagger.options.openapiv2_schema) = {
	//        json_schema: {
	//            required: ["value"]
	//        },
	//        example: {
	//            value: '{ "fields": { "field1": "Get Example", "field2": "This is an example Get response." } }'
	//        }
	//    };
	//    google.protobuf.Any value = 1 [(grpc.gateway.protoc_gen_swagger.options.openapiv2_field) = {type: 6}];
	Value                *any.Any `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetResponse) Descriptor

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

func (*GetResponse) GetValue

func (m *GetResponse) GetValue() *any.Any

func (*GetResponse) ProtoMessage

func (*GetResponse) ProtoMessage()

func (*GetResponse) Reset

func (m *GetResponse) Reset()

func (*GetResponse) String

func (m *GetResponse) String() string

func (*GetResponse) XXX_DiscardUnknown

func (m *GetResponse) XXX_DiscardUnknown()

func (*GetResponse) XXX_Marshal

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

func (*GetResponse) XXX_Merge

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

func (*GetResponse) XXX_Size

func (m *GetResponse) XXX_Size() int

func (*GetResponse) XXX_Unmarshal

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

type KeyValue

type KeyValue struct {
	Key                  string   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value                *any.Any `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*KeyValue) Descriptor

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

func (*KeyValue) GetKey

func (m *KeyValue) GetKey() string

func (*KeyValue) GetValue

func (m *KeyValue) GetValue() *any.Any

func (*KeyValue) ProtoMessage

func (*KeyValue) ProtoMessage()

func (*KeyValue) Reset

func (m *KeyValue) Reset()

func (*KeyValue) String

func (m *KeyValue) String() string

func (*KeyValue) XXX_DiscardUnknown

func (m *KeyValue) XXX_DiscardUnknown()

func (*KeyValue) XXX_Marshal

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

func (*KeyValue) XXX_Merge

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

func (*KeyValue) XXX_Size

func (m *KeyValue) XXX_Size() int

func (*KeyValue) XXX_Unmarshal

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

type ManagementClient

type ManagementClient interface {
	NodeHealthCheck(ctx context.Context, in *NodeHealthCheckRequest, opts ...grpc.CallOption) (*NodeHealthCheckResponse, error)
	NodeInfo(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*NodeInfoResponse, error)
	ClusterJoin(ctx context.Context, in *ClusterJoinRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	ClusterLeave(ctx context.Context, in *ClusterLeaveRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	ClusterInfo(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ClusterInfoResponse, error)
	ClusterWatch(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (Management_ClusterWatchClient, error)
	Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error)
	Set(ctx context.Context, in *SetRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	Watch(ctx context.Context, in *WatchRequest, opts ...grpc.CallOption) (Management_WatchClient, error)
	Snapshot(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error)
}

ManagementClient is the client API for Management service.

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

func NewManagementClient

func NewManagementClient(cc *grpc.ClientConn) ManagementClient

type Management_ClusterWatchClient

type Management_ClusterWatchClient interface {
	Recv() (*ClusterWatchResponse, error)
	grpc.ClientStream
}

type Management_ClusterWatchServer

type Management_ClusterWatchServer interface {
	Send(*ClusterWatchResponse) error
	grpc.ServerStream
}

type Management_WatchClient

type Management_WatchClient interface {
	Recv() (*WatchResponse, error)
	grpc.ClientStream
}

type Management_WatchServer

type Management_WatchServer interface {
	Send(*WatchResponse) error
	grpc.ServerStream
}

type Metadata

type Metadata struct {
	GrpcAddress          string   `protobuf:"bytes,1,opt,name=grpc_address,json=grpcAddress,proto3" json:"grpc_address,omitempty"`
	GrpcGatewayAddress   string   `protobuf:"bytes,2,opt,name=grpc_gateway_address,json=grpcGatewayAddress,proto3" json:"grpc_gateway_address,omitempty"`
	HttpAddress          string   `protobuf:"bytes,3,opt,name=http_address,json=httpAddress,proto3" json:"http_address,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Metadata) Descriptor

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

func (*Metadata) GetGrpcAddress

func (m *Metadata) GetGrpcAddress() string

func (*Metadata) GetGrpcGatewayAddress

func (m *Metadata) GetGrpcGatewayAddress() string

func (*Metadata) GetHttpAddress

func (m *Metadata) GetHttpAddress() string

func (*Metadata) ProtoMessage

func (*Metadata) ProtoMessage()

func (*Metadata) Reset

func (m *Metadata) Reset()

func (*Metadata) String

func (m *Metadata) String() string

func (*Metadata) XXX_DiscardUnknown

func (m *Metadata) XXX_DiscardUnknown()

func (*Metadata) XXX_Marshal

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

func (*Metadata) XXX_Merge

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

func (*Metadata) XXX_Size

func (m *Metadata) XXX_Size() int

func (*Metadata) XXX_Unmarshal

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

type Node

type Node struct {
	Id                   string     `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	BindAddress          string     `protobuf:"bytes,2,opt,name=bind_address,json=bindAddress,proto3" json:"bind_address,omitempty"`
	State                Node_State `protobuf:"varint,3,opt,name=state,proto3,enum=management.Node_State" json:"state,omitempty"`
	Metadata             *Metadata  `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*Node) Descriptor

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

func (*Node) GetBindAddress

func (m *Node) GetBindAddress() string

func (*Node) GetId

func (m *Node) GetId() string

func (*Node) GetMetadata

func (m *Node) GetMetadata() *Metadata

func (*Node) GetState

func (m *Node) GetState() Node_State

func (*Node) ProtoMessage

func (*Node) ProtoMessage()

func (*Node) Reset

func (m *Node) Reset()

func (*Node) String

func (m *Node) String() string

func (*Node) XXX_DiscardUnknown

func (m *Node) XXX_DiscardUnknown()

func (*Node) XXX_Marshal

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

func (*Node) XXX_Merge

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

func (*Node) XXX_Size

func (m *Node) XXX_Size() int

func (*Node) XXX_Unmarshal

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

type NodeHealthCheckRequest

type NodeHealthCheckRequest struct {
	Probe                NodeHealthCheckRequest_Probe `protobuf:"varint,1,opt,name=probe,proto3,enum=management.NodeHealthCheckRequest_Probe" json:"probe,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                     `json:"-"`
	XXX_unrecognized     []byte                       `json:"-"`
	XXX_sizecache        int32                        `json:"-"`
}

func (*NodeHealthCheckRequest) Descriptor

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

func (*NodeHealthCheckRequest) GetProbe

func (*NodeHealthCheckRequest) ProtoMessage

func (*NodeHealthCheckRequest) ProtoMessage()

func (*NodeHealthCheckRequest) Reset

func (m *NodeHealthCheckRequest) Reset()

func (*NodeHealthCheckRequest) String

func (m *NodeHealthCheckRequest) String() string

func (*NodeHealthCheckRequest) XXX_DiscardUnknown

func (m *NodeHealthCheckRequest) XXX_DiscardUnknown()

func (*NodeHealthCheckRequest) XXX_Marshal

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

func (*NodeHealthCheckRequest) XXX_Merge

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

func (*NodeHealthCheckRequest) XXX_Size

func (m *NodeHealthCheckRequest) XXX_Size() int

func (*NodeHealthCheckRequest) XXX_Unmarshal

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

type NodeHealthCheckRequest_Probe

type NodeHealthCheckRequest_Probe int32
const (
	NodeHealthCheckRequest_UNKNOWN     NodeHealthCheckRequest_Probe = 0
	NodeHealthCheckRequest_HEALTHINESS NodeHealthCheckRequest_Probe = 1
	NodeHealthCheckRequest_LIVENESS    NodeHealthCheckRequest_Probe = 2
	NodeHealthCheckRequest_READINESS   NodeHealthCheckRequest_Probe = 3
)

func (NodeHealthCheckRequest_Probe) EnumDescriptor

func (NodeHealthCheckRequest_Probe) EnumDescriptor() ([]byte, []int)

func (NodeHealthCheckRequest_Probe) String

type NodeHealthCheckResponse

type NodeHealthCheckResponse struct {
	State                NodeHealthCheckResponse_State `protobuf:"varint,1,opt,name=state,proto3,enum=management.NodeHealthCheckResponse_State" json:"state,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                      `json:"-"`
	XXX_unrecognized     []byte                        `json:"-"`
	XXX_sizecache        int32                         `json:"-"`
}

func (*NodeHealthCheckResponse) Descriptor

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

func (*NodeHealthCheckResponse) GetState

func (*NodeHealthCheckResponse) ProtoMessage

func (*NodeHealthCheckResponse) ProtoMessage()

func (*NodeHealthCheckResponse) Reset

func (m *NodeHealthCheckResponse) Reset()

func (*NodeHealthCheckResponse) String

func (m *NodeHealthCheckResponse) String() string

func (*NodeHealthCheckResponse) XXX_DiscardUnknown

func (m *NodeHealthCheckResponse) XXX_DiscardUnknown()

func (*NodeHealthCheckResponse) XXX_Marshal

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

func (*NodeHealthCheckResponse) XXX_Merge

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

func (*NodeHealthCheckResponse) XXX_Size

func (m *NodeHealthCheckResponse) XXX_Size() int

func (*NodeHealthCheckResponse) XXX_Unmarshal

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

type NodeHealthCheckResponse_State

type NodeHealthCheckResponse_State int32
const (
	NodeHealthCheckResponse_UNKNOWN   NodeHealthCheckResponse_State = 0
	NodeHealthCheckResponse_HEALTHY   NodeHealthCheckResponse_State = 1
	NodeHealthCheckResponse_UNHEALTHY NodeHealthCheckResponse_State = 2
	NodeHealthCheckResponse_ALIVE     NodeHealthCheckResponse_State = 3
	NodeHealthCheckResponse_DEAD      NodeHealthCheckResponse_State = 4
	NodeHealthCheckResponse_READY     NodeHealthCheckResponse_State = 5
	NodeHealthCheckResponse_NOT_READY NodeHealthCheckResponse_State = 6
)

func (NodeHealthCheckResponse_State) EnumDescriptor

func (NodeHealthCheckResponse_State) EnumDescriptor() ([]byte, []int)

func (NodeHealthCheckResponse_State) String

type NodeInfoResponse

type NodeInfoResponse struct {
	Node                 *Node    `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*NodeInfoResponse) Descriptor

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

func (*NodeInfoResponse) GetNode

func (m *NodeInfoResponse) GetNode() *Node

func (*NodeInfoResponse) ProtoMessage

func (*NodeInfoResponse) ProtoMessage()

func (*NodeInfoResponse) Reset

func (m *NodeInfoResponse) Reset()

func (*NodeInfoResponse) String

func (m *NodeInfoResponse) String() string

func (*NodeInfoResponse) XXX_DiscardUnknown

func (m *NodeInfoResponse) XXX_DiscardUnknown()

func (*NodeInfoResponse) XXX_Marshal

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

func (*NodeInfoResponse) XXX_Merge

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

func (*NodeInfoResponse) XXX_Size

func (m *NodeInfoResponse) XXX_Size() int

func (*NodeInfoResponse) XXX_Unmarshal

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

type Node_State

type Node_State int32
const (
	Node_UNKNOWN   Node_State = 0
	Node_FOLLOWER  Node_State = 1
	Node_CANDIDATE Node_State = 2
	Node_LEADER    Node_State = 3
	Node_SHUTDOWN  Node_State = 4
)

func (Node_State) EnumDescriptor

func (Node_State) EnumDescriptor() ([]byte, []int)

func (Node_State) String

func (x Node_State) String() string

type Proposal

type Proposal struct {
	Event                Proposal_Event `protobuf:"varint,1,opt,name=event,proto3,enum=management.Proposal_Event" json:"event,omitempty"`
	Node                 *Node          `protobuf:"bytes,2,opt,name=node,proto3" json:"node,omitempty"`
	KeyValue             *KeyValue      `protobuf:"bytes,3,opt,name=key_value,json=keyValue,proto3" json:"key_value,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func (*Proposal) Descriptor

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

func (*Proposal) GetEvent

func (m *Proposal) GetEvent() Proposal_Event

func (*Proposal) GetKeyValue

func (m *Proposal) GetKeyValue() *KeyValue

func (*Proposal) GetNode

func (m *Proposal) GetNode() *Node

func (*Proposal) ProtoMessage

func (*Proposal) ProtoMessage()

func (*Proposal) Reset

func (m *Proposal) Reset()

func (*Proposal) String

func (m *Proposal) String() string

func (*Proposal) XXX_DiscardUnknown

func (m *Proposal) XXX_DiscardUnknown()

func (*Proposal) XXX_Marshal

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

func (*Proposal) XXX_Merge

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

func (*Proposal) XXX_Size

func (m *Proposal) XXX_Size() int

func (*Proposal) XXX_Unmarshal

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

type Proposal_Event

type Proposal_Event int32
const (
	Proposal_UNKNOWN      Proposal_Event = 0
	Proposal_SET_NODE     Proposal_Event = 1
	Proposal_DELETE_NODE  Proposal_Event = 2
	Proposal_SET_VALUE    Proposal_Event = 3
	Proposal_DELETE_VALUE Proposal_Event = 4
)

func (Proposal_Event) EnumDescriptor

func (Proposal_Event) EnumDescriptor() ([]byte, []int)

func (Proposal_Event) String

func (x Proposal_Event) String() string

type SetRequest

type SetRequest struct {
	Key                  string   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value                *any.Any `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SetRequest) Descriptor

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

func (*SetRequest) GetKey

func (m *SetRequest) GetKey() string

func (*SetRequest) GetValue

func (m *SetRequest) GetValue() *any.Any

func (*SetRequest) ProtoMessage

func (*SetRequest) ProtoMessage()

func (*SetRequest) Reset

func (m *SetRequest) Reset()

func (*SetRequest) String

func (m *SetRequest) String() string

func (*SetRequest) XXX_DiscardUnknown

func (m *SetRequest) XXX_DiscardUnknown()

func (*SetRequest) XXX_Marshal

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

func (*SetRequest) XXX_Merge

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

func (*SetRequest) XXX_Size

func (m *SetRequest) XXX_Size() int

func (*SetRequest) XXX_Unmarshal

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

type UnimplementedManagementServer

type UnimplementedManagementServer struct {
}

UnimplementedManagementServer can be embedded to have forward compatible implementations.

func (*UnimplementedManagementServer) ClusterInfo

func (*UnimplementedManagementServer) ClusterJoin

func (*UnimplementedManagementServer) ClusterLeave

func (*UnimplementedManagementServer) ClusterWatch

func (*UnimplementedManagementServer) Delete

func (*UnimplementedManagementServer) Get

func (*UnimplementedManagementServer) NodeHealthCheck

func (*UnimplementedManagementServer) NodeInfo

func (*UnimplementedManagementServer) Set

func (*UnimplementedManagementServer) Snapshot

func (*UnimplementedManagementServer) Watch

type WatchRequest

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

func (*WatchRequest) Descriptor

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

func (*WatchRequest) GetKey

func (m *WatchRequest) GetKey() string

func (*WatchRequest) ProtoMessage

func (*WatchRequest) ProtoMessage()

func (*WatchRequest) Reset

func (m *WatchRequest) Reset()

func (*WatchRequest) String

func (m *WatchRequest) String() string

func (*WatchRequest) XXX_DiscardUnknown

func (m *WatchRequest) XXX_DiscardUnknown()

func (*WatchRequest) XXX_Marshal

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

func (*WatchRequest) XXX_Merge

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

func (*WatchRequest) XXX_Size

func (m *WatchRequest) XXX_Size() int

func (*WatchRequest) XXX_Unmarshal

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

type WatchResponse

type WatchResponse struct {
	Command              WatchResponse_Command `protobuf:"varint,1,opt,name=command,proto3,enum=management.WatchResponse_Command" json:"command,omitempty"`
	Key                  string                `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	Value                *any.Any              `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

func (*WatchResponse) Descriptor

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

func (*WatchResponse) GetCommand

func (m *WatchResponse) GetCommand() WatchResponse_Command

func (*WatchResponse) GetKey

func (m *WatchResponse) GetKey() string

func (*WatchResponse) GetValue

func (m *WatchResponse) GetValue() *any.Any

func (*WatchResponse) ProtoMessage

func (*WatchResponse) ProtoMessage()

func (*WatchResponse) Reset

func (m *WatchResponse) Reset()

func (*WatchResponse) String

func (m *WatchResponse) String() string

func (*WatchResponse) XXX_DiscardUnknown

func (m *WatchResponse) XXX_DiscardUnknown()

func (*WatchResponse) XXX_Marshal

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

func (*WatchResponse) XXX_Merge

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

func (*WatchResponse) XXX_Size

func (m *WatchResponse) XXX_Size() int

func (*WatchResponse) XXX_Unmarshal

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

type WatchResponse_Command

type WatchResponse_Command int32
const (
	WatchResponse_UNKNOWN WatchResponse_Command = 0
	WatchResponse_SET     WatchResponse_Command = 1
	WatchResponse_DELETE  WatchResponse_Command = 2
)

func (WatchResponse_Command) EnumDescriptor

func (WatchResponse_Command) EnumDescriptor() ([]byte, []int)

func (WatchResponse_Command) String

func (x WatchResponse_Command) String() string

Jump to

Keyboard shortcuts

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