protobuf

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: May 20, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package protobuf is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var Event_Type_name = map[int32]string{
	0: "Unknown",
	1: "Join",
	2: "Leave",
	3: "Set",
	4: "Delete",
}
View Source
var Event_Type_value = map[string]int32{
	"Unknown": 0,
	"Join":    1,
	"Leave":   2,
	"Set":     3,
	"Delete":  4,
}

Functions

func RegisterKVSHandler

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

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

func RegisterKVSHandlerClient

func RegisterKVSHandlerClient(ctx context.Context, mux *runtime.ServeMux, client KVSClient) error

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

func RegisterKVSHandlerFromEndpoint

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

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

func RegisterKVSHandlerServer

func RegisterKVSHandlerServer(ctx context.Context, mux *runtime.ServeMux, server KVSServer) error

RegisterKVSHandlerServer registers the http handlers for service KVS to "mux". UnaryRPC :call KVSServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.

func RegisterKVSServer

func RegisterKVSServer(s *grpc.Server, srv KVSServer)

Types

type Cluster

type Cluster struct {
	Nodes                map[string]*Node `` /* 151-byte string literal not displayed */
	Leader               string           `protobuf:"bytes,2,opt,name=leader,proto3" json:"leader,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

func (*Cluster) Descriptor

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

func (*Cluster) GetLeader

func (m *Cluster) GetLeader() string

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 ClusterResponse

type ClusterResponse 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 (*ClusterResponse) Descriptor

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

func (*ClusterResponse) GetCluster

func (m *ClusterResponse) GetCluster() *Cluster

func (*ClusterResponse) ProtoMessage

func (*ClusterResponse) ProtoMessage()

func (*ClusterResponse) Reset

func (m *ClusterResponse) Reset()

func (*ClusterResponse) String

func (m *ClusterResponse) String() string

func (*ClusterResponse) XXX_DiscardUnknown

func (m *ClusterResponse) XXX_DiscardUnknown()

func (*ClusterResponse) XXX_Marshal

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

func (*ClusterResponse) XXX_Merge

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

func (*ClusterResponse) XXX_Size

func (m *ClusterResponse) XXX_Size() int

func (*ClusterResponse) XXX_Unmarshal

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

type DeleteMetadataRequest

type DeleteMetadataRequest 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 (*DeleteMetadataRequest) Descriptor

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

func (*DeleteMetadataRequest) GetId

func (m *DeleteMetadataRequest) GetId() string

func (*DeleteMetadataRequest) ProtoMessage

func (*DeleteMetadataRequest) ProtoMessage()

func (*DeleteMetadataRequest) Reset

func (m *DeleteMetadataRequest) Reset()

func (*DeleteMetadataRequest) String

func (m *DeleteMetadataRequest) String() string

func (*DeleteMetadataRequest) XXX_DiscardUnknown

func (m *DeleteMetadataRequest) XXX_DiscardUnknown()

func (*DeleteMetadataRequest) XXX_Marshal

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

func (*DeleteMetadataRequest) XXX_Merge

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

func (*DeleteMetadataRequest) XXX_Size

func (m *DeleteMetadataRequest) XXX_Size() int

func (*DeleteMetadataRequest) XXX_Unmarshal

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

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 Event

type Event struct {
	Type                 Event_Type `protobuf:"varint,1,opt,name=type,proto3,enum=kvs.Event_Type" json:"type,omitempty"`
	Data                 *any.Any   `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*Event) Descriptor

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

func (*Event) GetData

func (m *Event) GetData() *any.Any

func (*Event) GetType

func (m *Event) GetType() Event_Type

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) Reset

func (m *Event) Reset()

func (*Event) String

func (m *Event) String() string

func (*Event) XXX_DiscardUnknown

func (m *Event) XXX_DiscardUnknown()

func (*Event) XXX_Marshal

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

func (*Event) XXX_Merge

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

func (*Event) XXX_Size

func (m *Event) XXX_Size() int

func (*Event) XXX_Unmarshal

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

type Event_Type

type Event_Type int32
const (
	Event_Unknown Event_Type = 0
	Event_Join    Event_Type = 1
	Event_Leave   Event_Type = 2
	Event_Set     Event_Type = 3
	Event_Delete  Event_Type = 4
)

func (Event_Type) EnumDescriptor

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

func (Event_Type) String

func (x Event_Type) String() string

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 {
	Value                []byte   `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() []byte

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 JoinRequest

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

func (*JoinRequest) Descriptor

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

func (*JoinRequest) GetId

func (m *JoinRequest) GetId() string

func (*JoinRequest) GetNode

func (m *JoinRequest) GetNode() *Node

func (*JoinRequest) ProtoMessage

func (*JoinRequest) ProtoMessage()

func (*JoinRequest) Reset

func (m *JoinRequest) Reset()

func (*JoinRequest) String

func (m *JoinRequest) String() string

func (*JoinRequest) XXX_DiscardUnknown

func (m *JoinRequest) XXX_DiscardUnknown()

func (*JoinRequest) XXX_Marshal

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

func (*JoinRequest) XXX_Merge

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

func (*JoinRequest) XXX_Size

func (m *JoinRequest) XXX_Size() int

func (*JoinRequest) XXX_Unmarshal

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

type KVSClient

type KVSClient interface {
	LivenessCheck(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*LivenessCheckResponse, error)
	ReadinessCheck(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ReadinessCheckResponse, error)
	Node(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*NodeResponse, error)
	Join(ctx context.Context, in *JoinRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	Cluster(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ClusterResponse, error)
	Leave(ctx context.Context, in *LeaveRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	Snapshot(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error)
	Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error)
	Scan(ctx context.Context, in *ScanRequest, opts ...grpc.CallOption) (*ScanResponse, 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 *empty.Empty, opts ...grpc.CallOption) (KVS_WatchClient, error)
	Metrics(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*MetricsResponse, error)
}

KVSClient is the client API for KVS service.

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

func NewKVSClient

func NewKVSClient(cc grpc.ClientConnInterface) KVSClient

type KVS_WatchClient

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

type KVS_WatchServer

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

type KeyValuePair

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

func (*KeyValuePair) Descriptor

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

func (*KeyValuePair) GetKey

func (m *KeyValuePair) GetKey() string

func (*KeyValuePair) GetValue

func (m *KeyValuePair) GetValue() []byte

func (*KeyValuePair) ProtoMessage

func (*KeyValuePair) ProtoMessage()

func (*KeyValuePair) Reset

func (m *KeyValuePair) Reset()

func (*KeyValuePair) String

func (m *KeyValuePair) String() string

func (*KeyValuePair) XXX_DiscardUnknown

func (m *KeyValuePair) XXX_DiscardUnknown()

func (*KeyValuePair) XXX_Marshal

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

func (*KeyValuePair) XXX_Merge

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

func (*KeyValuePair) XXX_Size

func (m *KeyValuePair) XXX_Size() int

func (*KeyValuePair) XXX_Unmarshal

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

type LeaveRequest

type LeaveRequest 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 (*LeaveRequest) Descriptor

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

func (*LeaveRequest) GetId

func (m *LeaveRequest) GetId() string

func (*LeaveRequest) ProtoMessage

func (*LeaveRequest) ProtoMessage()

func (*LeaveRequest) Reset

func (m *LeaveRequest) Reset()

func (*LeaveRequest) String

func (m *LeaveRequest) String() string

func (*LeaveRequest) XXX_DiscardUnknown

func (m *LeaveRequest) XXX_DiscardUnknown()

func (*LeaveRequest) XXX_Marshal

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

func (*LeaveRequest) XXX_Merge

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

func (*LeaveRequest) XXX_Size

func (m *LeaveRequest) XXX_Size() int

func (*LeaveRequest) XXX_Unmarshal

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

type LivenessCheckResponse

type LivenessCheckResponse struct {
	Alive                bool     `protobuf:"varint,1,opt,name=alive,proto3" json:"alive,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*LivenessCheckResponse) Descriptor

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

func (*LivenessCheckResponse) GetAlive

func (m *LivenessCheckResponse) GetAlive() bool

func (*LivenessCheckResponse) ProtoMessage

func (*LivenessCheckResponse) ProtoMessage()

func (*LivenessCheckResponse) Reset

func (m *LivenessCheckResponse) Reset()

func (*LivenessCheckResponse) String

func (m *LivenessCheckResponse) String() string

func (*LivenessCheckResponse) XXX_DiscardUnknown

func (m *LivenessCheckResponse) XXX_DiscardUnknown()

func (*LivenessCheckResponse) XXX_Marshal

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

func (*LivenessCheckResponse) XXX_Merge

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

func (*LivenessCheckResponse) XXX_Size

func (m *LivenessCheckResponse) XXX_Size() int

func (*LivenessCheckResponse) XXX_Unmarshal

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

type Metadata

type Metadata struct {
	GrpcAddress          string   `protobuf:"bytes,1,opt,name=grpc_address,json=grpcAddress,proto3" json:"grpc_address,omitempty"`
	HttpAddress          string   `protobuf:"bytes,2,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) 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 MetricsResponse

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

func (*MetricsResponse) Descriptor

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

func (*MetricsResponse) GetMetrics

func (m *MetricsResponse) GetMetrics() []byte

func (*MetricsResponse) ProtoMessage

func (*MetricsResponse) ProtoMessage()

func (*MetricsResponse) Reset

func (m *MetricsResponse) Reset()

func (*MetricsResponse) String

func (m *MetricsResponse) String() string

func (*MetricsResponse) XXX_DiscardUnknown

func (m *MetricsResponse) XXX_DiscardUnknown()

func (*MetricsResponse) XXX_Marshal

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

func (*MetricsResponse) XXX_Merge

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

func (*MetricsResponse) XXX_Size

func (m *MetricsResponse) XXX_Size() int

func (*MetricsResponse) XXX_Unmarshal

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

type Node

type Node struct {
	RaftAddress          string    `protobuf:"bytes,1,opt,name=raft_address,json=raftAddress,proto3" json:"raft_address,omitempty"`
	Metadata             *Metadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
	State                string    `protobuf:"bytes,3,opt,name=state,proto3" json:"state,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*Node) Descriptor

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

func (*Node) GetMetadata

func (m *Node) GetMetadata() *Metadata

func (*Node) GetRaftAddress

func (m *Node) GetRaftAddress() string

func (*Node) GetState

func (m *Node) GetState() string

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 NodeResponse

type NodeResponse 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 (*NodeResponse) Descriptor

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

func (*NodeResponse) GetNode

func (m *NodeResponse) GetNode() *Node

func (*NodeResponse) ProtoMessage

func (*NodeResponse) ProtoMessage()

func (*NodeResponse) Reset

func (m *NodeResponse) Reset()

func (*NodeResponse) String

func (m *NodeResponse) String() string

func (*NodeResponse) XXX_DiscardUnknown

func (m *NodeResponse) XXX_DiscardUnknown()

func (*NodeResponse) XXX_Marshal

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

func (*NodeResponse) XXX_Merge

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

func (*NodeResponse) XXX_Size

func (m *NodeResponse) XXX_Size() int

func (*NodeResponse) XXX_Unmarshal

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

type ReadinessCheckResponse

type ReadinessCheckResponse struct {
	Ready                bool     `protobuf:"varint,1,opt,name=ready,proto3" json:"ready,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReadinessCheckResponse) Descriptor

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

func (*ReadinessCheckResponse) GetReady

func (m *ReadinessCheckResponse) GetReady() bool

func (*ReadinessCheckResponse) ProtoMessage

func (*ReadinessCheckResponse) ProtoMessage()

func (*ReadinessCheckResponse) Reset

func (m *ReadinessCheckResponse) Reset()

func (*ReadinessCheckResponse) String

func (m *ReadinessCheckResponse) String() string

func (*ReadinessCheckResponse) XXX_DiscardUnknown

func (m *ReadinessCheckResponse) XXX_DiscardUnknown()

func (*ReadinessCheckResponse) XXX_Marshal

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

func (*ReadinessCheckResponse) XXX_Merge

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

func (*ReadinessCheckResponse) XXX_Size

func (m *ReadinessCheckResponse) XXX_Size() int

func (*ReadinessCheckResponse) XXX_Unmarshal

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

type ScanRequest

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

func (*ScanRequest) Descriptor

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

func (*ScanRequest) GetPrefix

func (m *ScanRequest) GetPrefix() string

func (*ScanRequest) ProtoMessage

func (*ScanRequest) ProtoMessage()

func (*ScanRequest) Reset

func (m *ScanRequest) Reset()

func (*ScanRequest) String

func (m *ScanRequest) String() string

func (*ScanRequest) XXX_DiscardUnknown

func (m *ScanRequest) XXX_DiscardUnknown()

func (*ScanRequest) XXX_Marshal

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

func (*ScanRequest) XXX_Merge

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

func (*ScanRequest) XXX_Size

func (m *ScanRequest) XXX_Size() int

func (*ScanRequest) XXX_Unmarshal

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

type ScanResponse

type ScanResponse struct {
	Values               [][]byte `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ScanResponse) Descriptor

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

func (*ScanResponse) GetValues

func (m *ScanResponse) GetValues() [][]byte

func (*ScanResponse) ProtoMessage

func (*ScanResponse) ProtoMessage()

func (*ScanResponse) Reset

func (m *ScanResponse) Reset()

func (*ScanResponse) String

func (m *ScanResponse) String() string

func (*ScanResponse) XXX_DiscardUnknown

func (m *ScanResponse) XXX_DiscardUnknown()

func (*ScanResponse) XXX_Marshal

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

func (*ScanResponse) XXX_Merge

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

func (*ScanResponse) XXX_Size

func (m *ScanResponse) XXX_Size() int

func (*ScanResponse) XXX_Unmarshal

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

type SetMetadataRequest

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

func (*SetMetadataRequest) Descriptor

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

func (*SetMetadataRequest) GetId

func (m *SetMetadataRequest) GetId() string

func (*SetMetadataRequest) GetMetadata

func (m *SetMetadataRequest) GetMetadata() *Metadata

func (*SetMetadataRequest) ProtoMessage

func (*SetMetadataRequest) ProtoMessage()

func (*SetMetadataRequest) Reset

func (m *SetMetadataRequest) Reset()

func (*SetMetadataRequest) String

func (m *SetMetadataRequest) String() string

func (*SetMetadataRequest) XXX_DiscardUnknown

func (m *SetMetadataRequest) XXX_DiscardUnknown()

func (*SetMetadataRequest) XXX_Marshal

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

func (*SetMetadataRequest) XXX_Merge

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

func (*SetMetadataRequest) XXX_Size

func (m *SetMetadataRequest) XXX_Size() int

func (*SetMetadataRequest) XXX_Unmarshal

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

type SetRequest

type SetRequest struct {
	Key                  string   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value                []byte   `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() []byte

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 UnimplementedKVSServer

type UnimplementedKVSServer struct {
}

UnimplementedKVSServer can be embedded to have forward compatible implementations.

func (*UnimplementedKVSServer) Cluster

func (*UnimplementedKVSServer) Delete

func (*UnimplementedKVSServer) Get

func (*UnimplementedKVSServer) Join

func (*UnimplementedKVSServer) Leave

func (*UnimplementedKVSServer) LivenessCheck

func (*UnimplementedKVSServer) Metrics

func (*UnimplementedKVSServer) Node

func (*UnimplementedKVSServer) ReadinessCheck

func (*UnimplementedKVSServer) Scan

func (*UnimplementedKVSServer) Set

func (*UnimplementedKVSServer) Snapshot

func (*UnimplementedKVSServer) Snapshot(ctx context.Context, req *empty.Empty) (*empty.Empty, error)

func (*UnimplementedKVSServer) Watch

type WatchResponse

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

func (*WatchResponse) Descriptor

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

func (*WatchResponse) GetEvent

func (m *WatchResponse) GetEvent() *Event

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

Jump to

Keyboard shortcuts

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