Merge pull request #1612 from micro/auth-options
Auth: pass options in service RPC
This commit is contained in:
commit
688228377b
@ -167,6 +167,8 @@ type CreateOptions struct {
|
|||||||
Type string `protobuf:"bytes,5,opt,name=type,proto3" json:"type,omitempty"`
|
Type string `protobuf:"bytes,5,opt,name=type,proto3" json:"type,omitempty"`
|
||||||
// image to use
|
// image to use
|
||||||
Image string `protobuf:"bytes,6,opt,name=image,proto3" json:"image,omitempty"`
|
Image string `protobuf:"bytes,6,opt,name=image,proto3" json:"image,omitempty"`
|
||||||
|
// namespace to use
|
||||||
|
Namespace string `protobuf:"bytes,7,opt,name=namespace,proto3" json:"namespace,omitempty"`
|
||||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||||
XXX_unrecognized []byte `json:"-"`
|
XXX_unrecognized []byte `json:"-"`
|
||||||
XXX_sizecache int32 `json:"-"`
|
XXX_sizecache int32 `json:"-"`
|
||||||
@ -239,6 +241,13 @@ func (m *CreateOptions) GetImage() string {
|
|||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (m *CreateOptions) GetNamespace() string {
|
||||||
|
if m != nil {
|
||||||
|
return m.Namespace
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
type CreateRequest struct {
|
type CreateRequest struct {
|
||||||
Service *Service `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
|
Service *Service `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
|
||||||
Options *CreateOptions `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"`
|
Options *CreateOptions `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"`
|
||||||
@ -324,6 +333,8 @@ type ReadOptions struct {
|
|||||||
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
|
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
|
||||||
// type of service
|
// type of service
|
||||||
Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
|
Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
|
||||||
|
// namespace of service
|
||||||
|
Namespace string `protobuf:"bytes,4,opt,name=namespace,proto3" json:"namespace,omitempty"`
|
||||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||||
XXX_unrecognized []byte `json:"-"`
|
XXX_unrecognized []byte `json:"-"`
|
||||||
XXX_sizecache int32 `json:"-"`
|
XXX_sizecache int32 `json:"-"`
|
||||||
@ -375,6 +386,13 @@ func (m *ReadOptions) GetType() string {
|
|||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (m *ReadOptions) GetNamespace() string {
|
||||||
|
if m != nil {
|
||||||
|
return m.Namespace
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
type ReadRequest struct {
|
type ReadRequest struct {
|
||||||
Options *ReadOptions `protobuf:"bytes,1,opt,name=options,proto3" json:"options,omitempty"`
|
Options *ReadOptions `protobuf:"bytes,1,opt,name=options,proto3" json:"options,omitempty"`
|
||||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||||
@ -453,8 +471,49 @@ func (m *ReadResponse) GetServices() []*Service {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type DeleteOptions struct {
|
||||||
|
// namespace of the service
|
||||||
|
Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
|
||||||
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||||
|
XXX_unrecognized []byte `json:"-"`
|
||||||
|
XXX_sizecache int32 `json:"-"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *DeleteOptions) Reset() { *m = DeleteOptions{} }
|
||||||
|
func (m *DeleteOptions) String() string { return proto.CompactTextString(m) }
|
||||||
|
func (*DeleteOptions) ProtoMessage() {}
|
||||||
|
func (*DeleteOptions) Descriptor() ([]byte, []int) {
|
||||||
|
return fileDescriptor_2434d8152598889b, []int{8}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *DeleteOptions) XXX_Unmarshal(b []byte) error {
|
||||||
|
return xxx_messageInfo_DeleteOptions.Unmarshal(m, b)
|
||||||
|
}
|
||||||
|
func (m *DeleteOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||||
|
return xxx_messageInfo_DeleteOptions.Marshal(b, m, deterministic)
|
||||||
|
}
|
||||||
|
func (m *DeleteOptions) XXX_Merge(src proto.Message) {
|
||||||
|
xxx_messageInfo_DeleteOptions.Merge(m, src)
|
||||||
|
}
|
||||||
|
func (m *DeleteOptions) XXX_Size() int {
|
||||||
|
return xxx_messageInfo_DeleteOptions.Size(m)
|
||||||
|
}
|
||||||
|
func (m *DeleteOptions) XXX_DiscardUnknown() {
|
||||||
|
xxx_messageInfo_DeleteOptions.DiscardUnknown(m)
|
||||||
|
}
|
||||||
|
|
||||||
|
var xxx_messageInfo_DeleteOptions proto.InternalMessageInfo
|
||||||
|
|
||||||
|
func (m *DeleteOptions) GetNamespace() string {
|
||||||
|
if m != nil {
|
||||||
|
return m.Namespace
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
type DeleteRequest struct {
|
type DeleteRequest struct {
|
||||||
Service *Service `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
|
Service *Service `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
|
||||||
|
Options *DeleteOptions `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"`
|
||||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||||
XXX_unrecognized []byte `json:"-"`
|
XXX_unrecognized []byte `json:"-"`
|
||||||
XXX_sizecache int32 `json:"-"`
|
XXX_sizecache int32 `json:"-"`
|
||||||
@ -464,7 +523,7 @@ func (m *DeleteRequest) Reset() { *m = DeleteRequest{} }
|
|||||||
func (m *DeleteRequest) String() string { return proto.CompactTextString(m) }
|
func (m *DeleteRequest) String() string { return proto.CompactTextString(m) }
|
||||||
func (*DeleteRequest) ProtoMessage() {}
|
func (*DeleteRequest) ProtoMessage() {}
|
||||||
func (*DeleteRequest) Descriptor() ([]byte, []int) {
|
func (*DeleteRequest) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_2434d8152598889b, []int{8}
|
return fileDescriptor_2434d8152598889b, []int{9}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *DeleteRequest) XXX_Unmarshal(b []byte) error {
|
func (m *DeleteRequest) XXX_Unmarshal(b []byte) error {
|
||||||
@ -492,6 +551,13 @@ func (m *DeleteRequest) GetService() *Service {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (m *DeleteRequest) GetOptions() *DeleteOptions {
|
||||||
|
if m != nil {
|
||||||
|
return m.Options
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
type DeleteResponse struct {
|
type DeleteResponse struct {
|
||||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||||
XXX_unrecognized []byte `json:"-"`
|
XXX_unrecognized []byte `json:"-"`
|
||||||
@ -502,7 +568,7 @@ func (m *DeleteResponse) Reset() { *m = DeleteResponse{} }
|
|||||||
func (m *DeleteResponse) String() string { return proto.CompactTextString(m) }
|
func (m *DeleteResponse) String() string { return proto.CompactTextString(m) }
|
||||||
func (*DeleteResponse) ProtoMessage() {}
|
func (*DeleteResponse) ProtoMessage() {}
|
||||||
func (*DeleteResponse) Descriptor() ([]byte, []int) {
|
func (*DeleteResponse) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_2434d8152598889b, []int{9}
|
return fileDescriptor_2434d8152598889b, []int{10}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *DeleteResponse) XXX_Unmarshal(b []byte) error {
|
func (m *DeleteResponse) XXX_Unmarshal(b []byte) error {
|
||||||
@ -523,8 +589,49 @@ func (m *DeleteResponse) XXX_DiscardUnknown() {
|
|||||||
|
|
||||||
var xxx_messageInfo_DeleteResponse proto.InternalMessageInfo
|
var xxx_messageInfo_DeleteResponse proto.InternalMessageInfo
|
||||||
|
|
||||||
|
type UpdateOptions struct {
|
||||||
|
// namespace of the service
|
||||||
|
Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
|
||||||
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||||
|
XXX_unrecognized []byte `json:"-"`
|
||||||
|
XXX_sizecache int32 `json:"-"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *UpdateOptions) Reset() { *m = UpdateOptions{} }
|
||||||
|
func (m *UpdateOptions) String() string { return proto.CompactTextString(m) }
|
||||||
|
func (*UpdateOptions) ProtoMessage() {}
|
||||||
|
func (*UpdateOptions) Descriptor() ([]byte, []int) {
|
||||||
|
return fileDescriptor_2434d8152598889b, []int{11}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *UpdateOptions) XXX_Unmarshal(b []byte) error {
|
||||||
|
return xxx_messageInfo_UpdateOptions.Unmarshal(m, b)
|
||||||
|
}
|
||||||
|
func (m *UpdateOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||||
|
return xxx_messageInfo_UpdateOptions.Marshal(b, m, deterministic)
|
||||||
|
}
|
||||||
|
func (m *UpdateOptions) XXX_Merge(src proto.Message) {
|
||||||
|
xxx_messageInfo_UpdateOptions.Merge(m, src)
|
||||||
|
}
|
||||||
|
func (m *UpdateOptions) XXX_Size() int {
|
||||||
|
return xxx_messageInfo_UpdateOptions.Size(m)
|
||||||
|
}
|
||||||
|
func (m *UpdateOptions) XXX_DiscardUnknown() {
|
||||||
|
xxx_messageInfo_UpdateOptions.DiscardUnknown(m)
|
||||||
|
}
|
||||||
|
|
||||||
|
var xxx_messageInfo_UpdateOptions proto.InternalMessageInfo
|
||||||
|
|
||||||
|
func (m *UpdateOptions) GetNamespace() string {
|
||||||
|
if m != nil {
|
||||||
|
return m.Namespace
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
type UpdateRequest struct {
|
type UpdateRequest struct {
|
||||||
Service *Service `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
|
Service *Service `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
|
||||||
|
Options *UpdateOptions `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"`
|
||||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||||
XXX_unrecognized []byte `json:"-"`
|
XXX_unrecognized []byte `json:"-"`
|
||||||
XXX_sizecache int32 `json:"-"`
|
XXX_sizecache int32 `json:"-"`
|
||||||
@ -534,7 +641,7 @@ func (m *UpdateRequest) Reset() { *m = UpdateRequest{} }
|
|||||||
func (m *UpdateRequest) String() string { return proto.CompactTextString(m) }
|
func (m *UpdateRequest) String() string { return proto.CompactTextString(m) }
|
||||||
func (*UpdateRequest) ProtoMessage() {}
|
func (*UpdateRequest) ProtoMessage() {}
|
||||||
func (*UpdateRequest) Descriptor() ([]byte, []int) {
|
func (*UpdateRequest) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_2434d8152598889b, []int{10}
|
return fileDescriptor_2434d8152598889b, []int{12}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *UpdateRequest) XXX_Unmarshal(b []byte) error {
|
func (m *UpdateRequest) XXX_Unmarshal(b []byte) error {
|
||||||
@ -562,6 +669,13 @@ func (m *UpdateRequest) GetService() *Service {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (m *UpdateRequest) GetOptions() *UpdateOptions {
|
||||||
|
if m != nil {
|
||||||
|
return m.Options
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
type UpdateResponse struct {
|
type UpdateResponse struct {
|
||||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||||
XXX_unrecognized []byte `json:"-"`
|
XXX_unrecognized []byte `json:"-"`
|
||||||
@ -572,7 +686,7 @@ func (m *UpdateResponse) Reset() { *m = UpdateResponse{} }
|
|||||||
func (m *UpdateResponse) String() string { return proto.CompactTextString(m) }
|
func (m *UpdateResponse) String() string { return proto.CompactTextString(m) }
|
||||||
func (*UpdateResponse) ProtoMessage() {}
|
func (*UpdateResponse) ProtoMessage() {}
|
||||||
func (*UpdateResponse) Descriptor() ([]byte, []int) {
|
func (*UpdateResponse) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_2434d8152598889b, []int{11}
|
return fileDescriptor_2434d8152598889b, []int{13}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *UpdateResponse) XXX_Unmarshal(b []byte) error {
|
func (m *UpdateResponse) XXX_Unmarshal(b []byte) error {
|
||||||
@ -593,7 +707,48 @@ func (m *UpdateResponse) XXX_DiscardUnknown() {
|
|||||||
|
|
||||||
var xxx_messageInfo_UpdateResponse proto.InternalMessageInfo
|
var xxx_messageInfo_UpdateResponse proto.InternalMessageInfo
|
||||||
|
|
||||||
|
type ListOptions struct {
|
||||||
|
// namespace to list from
|
||||||
|
Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
|
||||||
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||||
|
XXX_unrecognized []byte `json:"-"`
|
||||||
|
XXX_sizecache int32 `json:"-"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *ListOptions) Reset() { *m = ListOptions{} }
|
||||||
|
func (m *ListOptions) String() string { return proto.CompactTextString(m) }
|
||||||
|
func (*ListOptions) ProtoMessage() {}
|
||||||
|
func (*ListOptions) Descriptor() ([]byte, []int) {
|
||||||
|
return fileDescriptor_2434d8152598889b, []int{14}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *ListOptions) XXX_Unmarshal(b []byte) error {
|
||||||
|
return xxx_messageInfo_ListOptions.Unmarshal(m, b)
|
||||||
|
}
|
||||||
|
func (m *ListOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||||
|
return xxx_messageInfo_ListOptions.Marshal(b, m, deterministic)
|
||||||
|
}
|
||||||
|
func (m *ListOptions) XXX_Merge(src proto.Message) {
|
||||||
|
xxx_messageInfo_ListOptions.Merge(m, src)
|
||||||
|
}
|
||||||
|
func (m *ListOptions) XXX_Size() int {
|
||||||
|
return xxx_messageInfo_ListOptions.Size(m)
|
||||||
|
}
|
||||||
|
func (m *ListOptions) XXX_DiscardUnknown() {
|
||||||
|
xxx_messageInfo_ListOptions.DiscardUnknown(m)
|
||||||
|
}
|
||||||
|
|
||||||
|
var xxx_messageInfo_ListOptions proto.InternalMessageInfo
|
||||||
|
|
||||||
|
func (m *ListOptions) GetNamespace() string {
|
||||||
|
if m != nil {
|
||||||
|
return m.Namespace
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
type ListRequest struct {
|
type ListRequest struct {
|
||||||
|
Options *ListOptions `protobuf:"bytes,1,opt,name=options,proto3" json:"options,omitempty"`
|
||||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||||
XXX_unrecognized []byte `json:"-"`
|
XXX_unrecognized []byte `json:"-"`
|
||||||
XXX_sizecache int32 `json:"-"`
|
XXX_sizecache int32 `json:"-"`
|
||||||
@ -603,7 +758,7 @@ func (m *ListRequest) Reset() { *m = ListRequest{} }
|
|||||||
func (m *ListRequest) String() string { return proto.CompactTextString(m) }
|
func (m *ListRequest) String() string { return proto.CompactTextString(m) }
|
||||||
func (*ListRequest) ProtoMessage() {}
|
func (*ListRequest) ProtoMessage() {}
|
||||||
func (*ListRequest) Descriptor() ([]byte, []int) {
|
func (*ListRequest) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_2434d8152598889b, []int{12}
|
return fileDescriptor_2434d8152598889b, []int{15}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *ListRequest) XXX_Unmarshal(b []byte) error {
|
func (m *ListRequest) XXX_Unmarshal(b []byte) error {
|
||||||
@ -624,6 +779,13 @@ func (m *ListRequest) XXX_DiscardUnknown() {
|
|||||||
|
|
||||||
var xxx_messageInfo_ListRequest proto.InternalMessageInfo
|
var xxx_messageInfo_ListRequest proto.InternalMessageInfo
|
||||||
|
|
||||||
|
func (m *ListRequest) GetOptions() *ListOptions {
|
||||||
|
if m != nil {
|
||||||
|
return m.Options
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
type ListResponse struct {
|
type ListResponse struct {
|
||||||
Services []*Service `protobuf:"bytes,1,rep,name=services,proto3" json:"services,omitempty"`
|
Services []*Service `protobuf:"bytes,1,rep,name=services,proto3" json:"services,omitempty"`
|
||||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||||
@ -635,7 +797,7 @@ func (m *ListResponse) Reset() { *m = ListResponse{} }
|
|||||||
func (m *ListResponse) String() string { return proto.CompactTextString(m) }
|
func (m *ListResponse) String() string { return proto.CompactTextString(m) }
|
||||||
func (*ListResponse) ProtoMessage() {}
|
func (*ListResponse) ProtoMessage() {}
|
||||||
func (*ListResponse) Descriptor() ([]byte, []int) {
|
func (*ListResponse) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_2434d8152598889b, []int{13}
|
return fileDescriptor_2434d8152598889b, []int{16}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *ListResponse) XXX_Unmarshal(b []byte) error {
|
func (m *ListResponse) XXX_Unmarshal(b []byte) error {
|
||||||
@ -663,6 +825,46 @@ func (m *ListResponse) GetServices() []*Service {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type LogsOptions struct {
|
||||||
|
// namespace of the service
|
||||||
|
Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
|
||||||
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||||
|
XXX_unrecognized []byte `json:"-"`
|
||||||
|
XXX_sizecache int32 `json:"-"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *LogsOptions) Reset() { *m = LogsOptions{} }
|
||||||
|
func (m *LogsOptions) String() string { return proto.CompactTextString(m) }
|
||||||
|
func (*LogsOptions) ProtoMessage() {}
|
||||||
|
func (*LogsOptions) Descriptor() ([]byte, []int) {
|
||||||
|
return fileDescriptor_2434d8152598889b, []int{17}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *LogsOptions) XXX_Unmarshal(b []byte) error {
|
||||||
|
return xxx_messageInfo_LogsOptions.Unmarshal(m, b)
|
||||||
|
}
|
||||||
|
func (m *LogsOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||||
|
return xxx_messageInfo_LogsOptions.Marshal(b, m, deterministic)
|
||||||
|
}
|
||||||
|
func (m *LogsOptions) XXX_Merge(src proto.Message) {
|
||||||
|
xxx_messageInfo_LogsOptions.Merge(m, src)
|
||||||
|
}
|
||||||
|
func (m *LogsOptions) XXX_Size() int {
|
||||||
|
return xxx_messageInfo_LogsOptions.Size(m)
|
||||||
|
}
|
||||||
|
func (m *LogsOptions) XXX_DiscardUnknown() {
|
||||||
|
xxx_messageInfo_LogsOptions.DiscardUnknown(m)
|
||||||
|
}
|
||||||
|
|
||||||
|
var xxx_messageInfo_LogsOptions proto.InternalMessageInfo
|
||||||
|
|
||||||
|
func (m *LogsOptions) GetNamespace() string {
|
||||||
|
if m != nil {
|
||||||
|
return m.Namespace
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
type LogsRequest struct {
|
type LogsRequest struct {
|
||||||
// service to request logs for
|
// service to request logs for
|
||||||
Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
|
Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
|
||||||
@ -674,6 +876,8 @@ type LogsRequest struct {
|
|||||||
// before the current time
|
// before the current time
|
||||||
// from which to show logs
|
// from which to show logs
|
||||||
Since int64 `protobuf:"varint,4,opt,name=since,proto3" json:"since,omitempty"`
|
Since int64 `protobuf:"varint,4,opt,name=since,proto3" json:"since,omitempty"`
|
||||||
|
// options to use
|
||||||
|
Options *LogsOptions `protobuf:"bytes,5,opt,name=options,proto3" json:"options,omitempty"`
|
||||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||||
XXX_unrecognized []byte `json:"-"`
|
XXX_unrecognized []byte `json:"-"`
|
||||||
XXX_sizecache int32 `json:"-"`
|
XXX_sizecache int32 `json:"-"`
|
||||||
@ -683,7 +887,7 @@ func (m *LogsRequest) Reset() { *m = LogsRequest{} }
|
|||||||
func (m *LogsRequest) String() string { return proto.CompactTextString(m) }
|
func (m *LogsRequest) String() string { return proto.CompactTextString(m) }
|
||||||
func (*LogsRequest) ProtoMessage() {}
|
func (*LogsRequest) ProtoMessage() {}
|
||||||
func (*LogsRequest) Descriptor() ([]byte, []int) {
|
func (*LogsRequest) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_2434d8152598889b, []int{14}
|
return fileDescriptor_2434d8152598889b, []int{18}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *LogsRequest) XXX_Unmarshal(b []byte) error {
|
func (m *LogsRequest) XXX_Unmarshal(b []byte) error {
|
||||||
@ -732,6 +936,13 @@ func (m *LogsRequest) GetSince() int64 {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (m *LogsRequest) GetOptions() *LogsOptions {
|
||||||
|
if m != nil {
|
||||||
|
return m.Options
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
type LogRecord struct {
|
type LogRecord struct {
|
||||||
// timestamp of log record
|
// timestamp of log record
|
||||||
Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
|
Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
|
||||||
@ -748,7 +959,7 @@ func (m *LogRecord) Reset() { *m = LogRecord{} }
|
|||||||
func (m *LogRecord) String() string { return proto.CompactTextString(m) }
|
func (m *LogRecord) String() string { return proto.CompactTextString(m) }
|
||||||
func (*LogRecord) ProtoMessage() {}
|
func (*LogRecord) ProtoMessage() {}
|
||||||
func (*LogRecord) Descriptor() ([]byte, []int) {
|
func (*LogRecord) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_2434d8152598889b, []int{15}
|
return fileDescriptor_2434d8152598889b, []int{19}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *LogRecord) XXX_Unmarshal(b []byte) error {
|
func (m *LogRecord) XXX_Unmarshal(b []byte) error {
|
||||||
@ -800,12 +1011,16 @@ func init() {
|
|||||||
proto.RegisterType((*ReadOptions)(nil), "go.micro.runtime.ReadOptions")
|
proto.RegisterType((*ReadOptions)(nil), "go.micro.runtime.ReadOptions")
|
||||||
proto.RegisterType((*ReadRequest)(nil), "go.micro.runtime.ReadRequest")
|
proto.RegisterType((*ReadRequest)(nil), "go.micro.runtime.ReadRequest")
|
||||||
proto.RegisterType((*ReadResponse)(nil), "go.micro.runtime.ReadResponse")
|
proto.RegisterType((*ReadResponse)(nil), "go.micro.runtime.ReadResponse")
|
||||||
|
proto.RegisterType((*DeleteOptions)(nil), "go.micro.runtime.DeleteOptions")
|
||||||
proto.RegisterType((*DeleteRequest)(nil), "go.micro.runtime.DeleteRequest")
|
proto.RegisterType((*DeleteRequest)(nil), "go.micro.runtime.DeleteRequest")
|
||||||
proto.RegisterType((*DeleteResponse)(nil), "go.micro.runtime.DeleteResponse")
|
proto.RegisterType((*DeleteResponse)(nil), "go.micro.runtime.DeleteResponse")
|
||||||
|
proto.RegisterType((*UpdateOptions)(nil), "go.micro.runtime.UpdateOptions")
|
||||||
proto.RegisterType((*UpdateRequest)(nil), "go.micro.runtime.UpdateRequest")
|
proto.RegisterType((*UpdateRequest)(nil), "go.micro.runtime.UpdateRequest")
|
||||||
proto.RegisterType((*UpdateResponse)(nil), "go.micro.runtime.UpdateResponse")
|
proto.RegisterType((*UpdateResponse)(nil), "go.micro.runtime.UpdateResponse")
|
||||||
|
proto.RegisterType((*ListOptions)(nil), "go.micro.runtime.ListOptions")
|
||||||
proto.RegisterType((*ListRequest)(nil), "go.micro.runtime.ListRequest")
|
proto.RegisterType((*ListRequest)(nil), "go.micro.runtime.ListRequest")
|
||||||
proto.RegisterType((*ListResponse)(nil), "go.micro.runtime.ListResponse")
|
proto.RegisterType((*ListResponse)(nil), "go.micro.runtime.ListResponse")
|
||||||
|
proto.RegisterType((*LogsOptions)(nil), "go.micro.runtime.LogsOptions")
|
||||||
proto.RegisterType((*LogsRequest)(nil), "go.micro.runtime.LogsRequest")
|
proto.RegisterType((*LogsRequest)(nil), "go.micro.runtime.LogsRequest")
|
||||||
proto.RegisterType((*LogRecord)(nil), "go.micro.runtime.LogRecord")
|
proto.RegisterType((*LogRecord)(nil), "go.micro.runtime.LogRecord")
|
||||||
proto.RegisterMapType((map[string]string)(nil), "go.micro.runtime.LogRecord.MetadataEntry")
|
proto.RegisterMapType((map[string]string)(nil), "go.micro.runtime.LogRecord.MetadataEntry")
|
||||||
@ -816,48 +1031,52 @@ func init() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var fileDescriptor_2434d8152598889b = []byte{
|
var fileDescriptor_2434d8152598889b = []byte{
|
||||||
// 645 bytes of a gzipped FileDescriptorProto
|
// 711 bytes of a gzipped FileDescriptorProto
|
||||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x55, 0xc9, 0x6e, 0xdb, 0x30,
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0x4d, 0x6f, 0xd3, 0x4c,
|
||||||
0x10, 0x8d, 0x2c, 0x2f, 0xc9, 0xa8, 0x2e, 0x02, 0x22, 0x28, 0xd4, 0x74, 0x33, 0xd4, 0x43, 0xd3,
|
0x10, 0xae, 0x63, 0x27, 0x69, 0x27, 0x6f, 0x5e, 0x55, 0xab, 0x0a, 0x99, 0xf2, 0x15, 0x99, 0x03,
|
||||||
0x8b, 0x52, 0x38, 0x28, 0xba, 0x1d, 0x63, 0xa7, 0x17, 0x1b, 0x05, 0x54, 0xe4, 0x03, 0x58, 0x79,
|
0x45, 0xa8, 0x2e, 0x4a, 0x85, 0xf8, 0x3a, 0x96, 0x94, 0x4b, 0x2b, 0x24, 0x23, 0x7e, 0xc0, 0xe2,
|
||||||
0x60, 0x08, 0x89, 0x44, 0x55, 0xa4, 0x0c, 0xf8, 0xd4, 0x63, 0xcf, 0xfd, 0xaa, 0x9e, 0xfb, 0x47,
|
0x8c, 0x22, 0x8b, 0xda, 0x6b, 0xbc, 0xeb, 0x48, 0x3d, 0x71, 0xe4, 0x8f, 0x70, 0xe7, 0x67, 0x70,
|
||||||
0x05, 0x17, 0x6d, 0xb6, 0x94, 0x8b, 0x6f, 0x9c, 0x11, 0xf9, 0xf8, 0xde, 0x9b, 0x19, 0x0a, 0x5e,
|
0xe6, 0x1f, 0xa1, 0xfd, 0x8a, 0x3f, 0x1a, 0x47, 0xad, 0xaa, 0xde, 0x76, 0xc6, 0xb3, 0xb3, 0xcf,
|
||||||
0x67, 0x79, 0x22, 0xa2, 0x18, 0x2f, 0x39, 0x66, 0x9b, 0x28, 0xc4, 0xcb, 0x34, 0x63, 0x82, 0x5d,
|
0xf3, 0xcc, 0xec, 0xac, 0xe1, 0x69, 0x51, 0x66, 0x22, 0x49, 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, 0xe7, 0x1f, 0xe9, 0x9c, 0x99,
|
||||||
0xce, 0xfa, 0x31, 0x54, 0xff, 0xcb, 0xab, 0xff, 0x01, 0x00, 0x00, 0xff, 0xff, 0x20, 0x0e, 0x37,
|
0xa6, 0x2e, 0xfb, 0x93, 0xee, 0x00, 0xd3, 0xb2, 0x5b, 0xe4, 0x23, 0x78, 0x72, 0xfe, 0x90, 0x8e,
|
||||||
0xf1, 0x56, 0x07, 0x00, 0x00,
|
0x79, 0x65, 0x53, 0x3d, 0xee, 0xfa, 0xbc, 0x4a, 0x74, 0x0e, 0x03, 0x7d, 0xa3, 0x49, 0xe7, 0x14,
|
||||||
|
0xd8, 0x80, 0xab, 0x35, 0x0c, 0x54, 0x3a, 0x7d, 0xbd, 0x48, 0xe7, 0x95, 0xdc, 0x90, 0xae, 0x75,
|
||||||
|
0x33, 0xb7, 0xc8, 0x29, 0x78, 0xb2, 0x47, 0x48, 0x47, 0xef, 0xd8, 0x54, 0x0f, 0x36, 0x14, 0x3d,
|
||||||
|
0xd8, 0x7a, 0xe9, 0x7c, 0x1d, 0xa8, 0x9f, 0xa1, 0xe3, 0x7f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x8e,
|
||||||
|
0x6c, 0x03, 0x59, 0x33, 0x09, 0x00, 0x00,
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reference imports to suppress errors if they are not otherwise used.
|
// Reference imports to suppress errors if they are not otherwise used.
|
||||||
|
@ -41,6 +41,8 @@ message CreateOptions {
|
|||||||
string type = 5;
|
string type = 5;
|
||||||
// image to use
|
// image to use
|
||||||
string image = 6;
|
string image = 6;
|
||||||
|
// namespace to use
|
||||||
|
string namespace = 7;
|
||||||
}
|
}
|
||||||
|
|
||||||
message CreateRequest {
|
message CreateRequest {
|
||||||
@ -57,6 +59,8 @@ message ReadOptions {
|
|||||||
string version = 2;
|
string version = 2;
|
||||||
// type of service
|
// type of service
|
||||||
string type = 3;
|
string type = 3;
|
||||||
|
// namespace of service
|
||||||
|
string namespace = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
message ReadRequest {
|
message ReadRequest {
|
||||||
@ -67,24 +71,48 @@ message ReadResponse {
|
|||||||
repeated Service services = 1;
|
repeated Service services = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
message DeleteOptions {
|
||||||
|
// namespace of the service
|
||||||
|
string namespace = 1;
|
||||||
|
}
|
||||||
|
|
||||||
message DeleteRequest {
|
message DeleteRequest {
|
||||||
Service service = 1;
|
Service service = 1;
|
||||||
|
DeleteOptions options = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
message DeleteResponse {}
|
message DeleteResponse {}
|
||||||
|
|
||||||
|
message UpdateOptions {
|
||||||
|
// namespace of the service
|
||||||
|
string namespace = 1;
|
||||||
|
}
|
||||||
|
|
||||||
message UpdateRequest {
|
message UpdateRequest {
|
||||||
Service service = 1;
|
Service service = 1;
|
||||||
|
UpdateOptions options = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
message UpdateResponse {}
|
message UpdateResponse {}
|
||||||
|
|
||||||
message ListRequest {}
|
message ListOptions {
|
||||||
|
// namespace to list from
|
||||||
|
string namespace = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
message ListRequest {
|
||||||
|
ListOptions options = 1;
|
||||||
|
}
|
||||||
|
|
||||||
message ListResponse {
|
message ListResponse {
|
||||||
repeated Service services = 1;
|
repeated Service services = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
message LogsOptions {
|
||||||
|
// namespace of the service
|
||||||
|
string namespace = 1;
|
||||||
|
}
|
||||||
|
|
||||||
message LogsRequest{
|
message LogsRequest{
|
||||||
// service to request logs for
|
// service to request logs for
|
||||||
string service = 1;
|
string service = 1;
|
||||||
@ -96,6 +124,8 @@ message LogsRequest{
|
|||||||
// before the current time
|
// before the current time
|
||||||
// from which to show logs
|
// from which to show logs
|
||||||
int64 since = 4;
|
int64 since = 4;
|
||||||
|
// options to use
|
||||||
|
LogsOptions options = 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
message LogRecord {
|
message LogRecord {
|
||||||
|
@ -56,6 +56,7 @@ func (s *svc) Create(svc *runtime.Service, opts ...runtime.CreateOption) error {
|
|||||||
Env: options.Env,
|
Env: options.Env,
|
||||||
Type: options.Type,
|
Type: options.Type,
|
||||||
Image: options.Image,
|
Image: options.Image,
|
||||||
|
Namespace: options.Namespace,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -80,6 +81,9 @@ func (s *svc) Logs(service *runtime.Service, opts ...runtime.LogsOption) (runtim
|
|||||||
Service: service.Name,
|
Service: service.Name,
|
||||||
Stream: options.Stream,
|
Stream: options.Stream,
|
||||||
Count: options.Count,
|
Count: options.Count,
|
||||||
|
Options: &pb.LogsOptions{
|
||||||
|
Namespace: options.Namespace,
|
||||||
|
},
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
@ -172,6 +176,7 @@ func (s *svc) Read(opts ...runtime.ReadOption) ([]*runtime.Service, error) {
|
|||||||
Service: options.Service,
|
Service: options.Service,
|
||||||
Version: options.Version,
|
Version: options.Version,
|
||||||
Type: options.Type,
|
Type: options.Type,
|
||||||
|
Namespace: options.Namespace,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -212,6 +217,9 @@ func (s *svc) Update(svc *runtime.Service, opts ...runtime.UpdateOption) error {
|
|||||||
Source: svc.Source,
|
Source: svc.Source,
|
||||||
Metadata: svc.Metadata,
|
Metadata: svc.Metadata,
|
||||||
},
|
},
|
||||||
|
Options: &pb.UpdateOptions{
|
||||||
|
Namespace: options.Namespace,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
if _, err := s.runtime.Update(options.Context, req); err != nil {
|
if _, err := s.runtime.Update(options.Context, req); err != nil {
|
||||||
@ -239,6 +247,9 @@ func (s *svc) Delete(svc *runtime.Service, opts ...runtime.DeleteOption) error {
|
|||||||
Source: svc.Source,
|
Source: svc.Source,
|
||||||
Metadata: svc.Metadata,
|
Metadata: svc.Metadata,
|
||||||
},
|
},
|
||||||
|
Options: &pb.DeleteOptions{
|
||||||
|
Namespace: options.Namespace,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
if _, err := s.runtime.Delete(options.Context, req); err != nil {
|
if _, err := s.runtime.Delete(options.Context, req); err != nil {
|
||||||
|
@ -120,23 +120,23 @@ func init() { proto.RegisterFile("server/grpc/proto/test.proto", fileDescriptor_
|
|||||||
|
|
||||||
var fileDescriptor_bb9c685b7640cf1e = []byte{
|
var fileDescriptor_bb9c685b7640cf1e = []byte{
|
||||||
// 261 bytes of a gzipped FileDescriptorProto
|
// 261 bytes of a gzipped FileDescriptorProto
|
||||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0xd0, 0xcf, 0x4a, 0x03, 0x31,
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x29, 0x4e, 0x2d, 0x2a,
|
||||||
0x10, 0x06, 0x70, 0xb6, 0x2e, 0xba, 0xcd, 0x45, 0xc9, 0x69, 0x59, 0x56, 0x2c, 0xd1, 0x82, 0x54,
|
0x4b, 0x2d, 0xd2, 0x4f, 0x2f, 0x2a, 0x48, 0xd6, 0x2f, 0x28, 0xca, 0x2f, 0xc9, 0xd7, 0x2f, 0x49,
|
||||||
0xd8, 0xf1, 0xcf, 0xad, 0x97, 0x0a, 0x82, 0xe0, 0x4d, 0x56, 0xcf, 0x42, 0xdc, 0x0e, 0x4b, 0x20,
|
0x2d, 0x2e, 0xd1, 0x03, 0x33, 0xa5, 0x64, 0xd2, 0xf3, 0xf3, 0xd3, 0x73, 0x52, 0xf5, 0x13, 0x0b,
|
||||||
0x4d, 0x62, 0x92, 0xdd, 0x8b, 0x78, 0xf1, 0x15, 0x7c, 0x34, 0x5f, 0x41, 0xdf, 0x43, 0x92, 0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||
0x22, 0x7b, 0x2b, 0xd7, 0xae, 0x2b, 0x21, 0x5e, 0xff, 0x26, 0x24, 0x7d, 0x0e, 0xdc, 0x2d, 0x49,
|
0x2d, 0x90, 0xe2, 0xd4, 0x83, 0xe9, 0x53, 0x52, 0x6e, 0xba, 0xfc, 0x64, 0x32, 0x93, 0xac, 0x92,
|
||||||
0xef, 0xb8, 0x94, 0x34, 0xab, 0xd6, 0x0b, 0x8a, 0x71, 0xb5, 0xe9, 0xb1, 0xd3, 0xcf, 0xef, 0x9f,
|
0x04, 0xd8, 0x59, 0x65, 0x06, 0x60, 0x07, 0xeb, 0x27, 0x27, 0xe6, 0xe4, 0xe8, 0x57, 0x83, 0x2c,
|
||||||
0xaf, 0xd1, 0x31, 0xcb, 0xe3, 0x59, 0xfd, 0x65, 0x3c, 0x18, 0x1a, 0x2e, 0x25, 0xbc, 0x87, 0xc5,
|
0xae, 0xb5, 0x62, 0xd4, 0x12, 0x72, 0xe3, 0xe2, 0x00, 0x99, 0x10, 0x90, 0x5c, 0x94, 0x8a, 0xdd,
|
||||||
0x1f, 0xf3, 0x64, 0x46, 0xef, 0x49, 0x16, 0x84, 0xc7, 0xc6, 0xe2, 0x76, 0x65, 0x1a, 0x95, 0x13,
|
0x14, 0x55, 0xb0, 0x29, 0xf2, 0x4a, 0x52, 0x71, 0x98, 0xc6, 0x14, 0x24, 0x17, 0xa5, 0xea, 0xdb,
|
||||||
0x56, 0xbc, 0xfc, 0x67, 0x4c, 0x63, 0x11, 0x16, 0x67, 0xc1, 0x79, 0x22, 0x87, 0x1b, 0xe7, 0x41,
|
0xab, 0x80, 0xcc, 0x09, 0xe1, 0xe2, 0x87, 0x99, 0xe3, 0x99, 0x57, 0x96, 0x98, 0x93, 0x99, 0x82,
|
||||||
0xf5, 0x5c, 0x8a, 0xe5, 0x76, 0xee, 0x22, 0x72, 0x53, 0x36, 0xd9, 0xa1, 0x89, 0xa1, 0x0c, 0x8b,
|
0xdd, 0x38, 0x1d, 0xb0, 0x71, 0x6a, 0x4a, 0x8a, 0xb8, 0x8c, 0xcb, 0x84, 0xe8, 0xd6, 0xb7, 0xb7,
|
||||||
0x79, 0x32, 0x7b, 0xdd, 0x8f, 0xff, 0x77, 0xf3, 0x17, 0x00, 0x00, 0xff, 0xff, 0xd3, 0x25, 0x7a,
|
0x62, 0xd4, 0x4a, 0x62, 0x03, 0x07, 0xa0, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0xf6, 0x32, 0x18,
|
||||||
0x7d, 0x7d, 0x01, 0x00, 0x00,
|
0x0f, 0x7e, 0x01, 0x00, 0x00,
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reference imports to suppress errors if they are not otherwise used.
|
// Reference imports to suppress errors if they are not otherwise used.
|
||||||
|
@ -54,7 +54,7 @@ func NewTestEndpoints() []*api.Endpoint {
|
|||||||
},
|
},
|
||||||
&api.Endpoint{
|
&api.Endpoint{
|
||||||
Name: "Test.CallPcreInvalid",
|
Name: "Test.CallPcreInvalid",
|
||||||
Path: []string{"/api/v0/test/call/pcre/invalid/?"},
|
Path: []string{"^/api/v0/test/call/pcre/invalid/?"},
|
||||||
Method: []string{"POST"},
|
Method: []string{"POST"},
|
||||||
Body: "*",
|
Body: "*",
|
||||||
Handler: "rpc",
|
Handler: "rpc",
|
||||||
@ -146,7 +146,7 @@ func RegisterTestHandler(s server.Server, hdlr TestHandler, opts ...server.Handl
|
|||||||
}))
|
}))
|
||||||
opts = append(opts, api.WithEndpoint(&api.Endpoint{
|
opts = append(opts, api.WithEndpoint(&api.Endpoint{
|
||||||
Name: "Test.CallPcreInvalid",
|
Name: "Test.CallPcreInvalid",
|
||||||
Path: []string{"/api/v0/test/call/pcre/invalid/?"},
|
Path: []string{"^/api/v0/test/call/pcre/invalid/?"},
|
||||||
Method: []string{"POST"},
|
Method: []string{"POST"},
|
||||||
Body: "*",
|
Body: "*",
|
||||||
Handler: "rpc",
|
Handler: "rpc",
|
||||||
|
@ -1,11 +1,15 @@
|
|||||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
// source: github.com/micro/go-micro/store/service/proto/store.proto
|
// source: store/service/proto/store.proto
|
||||||
|
|
||||||
package go_micro_store
|
package go_micro_store
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
context "context"
|
||||||
fmt "fmt"
|
fmt "fmt"
|
||||||
proto "github.com/golang/protobuf/proto"
|
proto "github.com/golang/protobuf/proto"
|
||||||
|
grpc "google.golang.org/grpc"
|
||||||
|
codes "google.golang.org/grpc/codes"
|
||||||
|
status "google.golang.org/grpc/status"
|
||||||
math "math"
|
math "math"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -36,7 +40,7 @@ func (m *Record) Reset() { *m = Record{} }
|
|||||||
func (m *Record) String() string { return proto.CompactTextString(m) }
|
func (m *Record) String() string { return proto.CompactTextString(m) }
|
||||||
func (*Record) ProtoMessage() {}
|
func (*Record) ProtoMessage() {}
|
||||||
func (*Record) Descriptor() ([]byte, []int) {
|
func (*Record) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_42854049893ccb13, []int{0}
|
return fileDescriptor_1ba364858f5c3cdb, []int{0}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *Record) XXX_Unmarshal(b []byte) error {
|
func (m *Record) XXX_Unmarshal(b []byte) error {
|
||||||
@ -94,7 +98,7 @@ func (m *ReadOptions) Reset() { *m = ReadOptions{} }
|
|||||||
func (m *ReadOptions) String() string { return proto.CompactTextString(m) }
|
func (m *ReadOptions) String() string { return proto.CompactTextString(m) }
|
||||||
func (*ReadOptions) ProtoMessage() {}
|
func (*ReadOptions) ProtoMessage() {}
|
||||||
func (*ReadOptions) Descriptor() ([]byte, []int) {
|
func (*ReadOptions) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_42854049893ccb13, []int{1}
|
return fileDescriptor_1ba364858f5c3cdb, []int{1}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *ReadOptions) XXX_Unmarshal(b []byte) error {
|
func (m *ReadOptions) XXX_Unmarshal(b []byte) error {
|
||||||
@ -169,7 +173,7 @@ func (m *ReadRequest) Reset() { *m = ReadRequest{} }
|
|||||||
func (m *ReadRequest) String() string { return proto.CompactTextString(m) }
|
func (m *ReadRequest) String() string { return proto.CompactTextString(m) }
|
||||||
func (*ReadRequest) ProtoMessage() {}
|
func (*ReadRequest) ProtoMessage() {}
|
||||||
func (*ReadRequest) Descriptor() ([]byte, []int) {
|
func (*ReadRequest) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_42854049893ccb13, []int{2}
|
return fileDescriptor_1ba364858f5c3cdb, []int{2}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *ReadRequest) XXX_Unmarshal(b []byte) error {
|
func (m *ReadRequest) XXX_Unmarshal(b []byte) error {
|
||||||
@ -215,7 +219,7 @@ func (m *ReadResponse) Reset() { *m = ReadResponse{} }
|
|||||||
func (m *ReadResponse) String() string { return proto.CompactTextString(m) }
|
func (m *ReadResponse) String() string { return proto.CompactTextString(m) }
|
||||||
func (*ReadResponse) ProtoMessage() {}
|
func (*ReadResponse) ProtoMessage() {}
|
||||||
func (*ReadResponse) Descriptor() ([]byte, []int) {
|
func (*ReadResponse) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_42854049893ccb13, []int{3}
|
return fileDescriptor_1ba364858f5c3cdb, []int{3}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *ReadResponse) XXX_Unmarshal(b []byte) error {
|
func (m *ReadResponse) XXX_Unmarshal(b []byte) error {
|
||||||
@ -259,7 +263,7 @@ func (m *WriteOptions) Reset() { *m = WriteOptions{} }
|
|||||||
func (m *WriteOptions) String() string { return proto.CompactTextString(m) }
|
func (m *WriteOptions) String() string { return proto.CompactTextString(m) }
|
||||||
func (*WriteOptions) ProtoMessage() {}
|
func (*WriteOptions) ProtoMessage() {}
|
||||||
func (*WriteOptions) Descriptor() ([]byte, []int) {
|
func (*WriteOptions) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_42854049893ccb13, []int{4}
|
return fileDescriptor_1ba364858f5c3cdb, []int{4}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *WriteOptions) XXX_Unmarshal(b []byte) error {
|
func (m *WriteOptions) XXX_Unmarshal(b []byte) error {
|
||||||
@ -320,7 +324,7 @@ func (m *WriteRequest) Reset() { *m = WriteRequest{} }
|
|||||||
func (m *WriteRequest) String() string { return proto.CompactTextString(m) }
|
func (m *WriteRequest) String() string { return proto.CompactTextString(m) }
|
||||||
func (*WriteRequest) ProtoMessage() {}
|
func (*WriteRequest) ProtoMessage() {}
|
||||||
func (*WriteRequest) Descriptor() ([]byte, []int) {
|
func (*WriteRequest) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_42854049893ccb13, []int{5}
|
return fileDescriptor_1ba364858f5c3cdb, []int{5}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *WriteRequest) XXX_Unmarshal(b []byte) error {
|
func (m *WriteRequest) XXX_Unmarshal(b []byte) error {
|
||||||
@ -365,7 +369,7 @@ func (m *WriteResponse) Reset() { *m = WriteResponse{} }
|
|||||||
func (m *WriteResponse) String() string { return proto.CompactTextString(m) }
|
func (m *WriteResponse) String() string { return proto.CompactTextString(m) }
|
||||||
func (*WriteResponse) ProtoMessage() {}
|
func (*WriteResponse) ProtoMessage() {}
|
||||||
func (*WriteResponse) Descriptor() ([]byte, []int) {
|
func (*WriteResponse) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_42854049893ccb13, []int{6}
|
return fileDescriptor_1ba364858f5c3cdb, []int{6}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *WriteResponse) XXX_Unmarshal(b []byte) error {
|
func (m *WriteResponse) XXX_Unmarshal(b []byte) error {
|
||||||
@ -398,7 +402,7 @@ func (m *DeleteOptions) Reset() { *m = DeleteOptions{} }
|
|||||||
func (m *DeleteOptions) String() string { return proto.CompactTextString(m) }
|
func (m *DeleteOptions) String() string { return proto.CompactTextString(m) }
|
||||||
func (*DeleteOptions) ProtoMessage() {}
|
func (*DeleteOptions) ProtoMessage() {}
|
||||||
func (*DeleteOptions) Descriptor() ([]byte, []int) {
|
func (*DeleteOptions) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_42854049893ccb13, []int{7}
|
return fileDescriptor_1ba364858f5c3cdb, []int{7}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *DeleteOptions) XXX_Unmarshal(b []byte) error {
|
func (m *DeleteOptions) XXX_Unmarshal(b []byte) error {
|
||||||
@ -445,7 +449,7 @@ func (m *DeleteRequest) Reset() { *m = DeleteRequest{} }
|
|||||||
func (m *DeleteRequest) String() string { return proto.CompactTextString(m) }
|
func (m *DeleteRequest) String() string { return proto.CompactTextString(m) }
|
||||||
func (*DeleteRequest) ProtoMessage() {}
|
func (*DeleteRequest) ProtoMessage() {}
|
||||||
func (*DeleteRequest) Descriptor() ([]byte, []int) {
|
func (*DeleteRequest) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_42854049893ccb13, []int{8}
|
return fileDescriptor_1ba364858f5c3cdb, []int{8}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *DeleteRequest) XXX_Unmarshal(b []byte) error {
|
func (m *DeleteRequest) XXX_Unmarshal(b []byte) error {
|
||||||
@ -490,7 +494,7 @@ func (m *DeleteResponse) Reset() { *m = DeleteResponse{} }
|
|||||||
func (m *DeleteResponse) String() string { return proto.CompactTextString(m) }
|
func (m *DeleteResponse) String() string { return proto.CompactTextString(m) }
|
||||||
func (*DeleteResponse) ProtoMessage() {}
|
func (*DeleteResponse) ProtoMessage() {}
|
||||||
func (*DeleteResponse) Descriptor() ([]byte, []int) {
|
func (*DeleteResponse) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_42854049893ccb13, []int{9}
|
return fileDescriptor_1ba364858f5c3cdb, []int{9}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *DeleteResponse) XXX_Unmarshal(b []byte) error {
|
func (m *DeleteResponse) XXX_Unmarshal(b []byte) error {
|
||||||
@ -527,7 +531,7 @@ func (m *ListOptions) Reset() { *m = ListOptions{} }
|
|||||||
func (m *ListOptions) String() string { return proto.CompactTextString(m) }
|
func (m *ListOptions) String() string { return proto.CompactTextString(m) }
|
||||||
func (*ListOptions) ProtoMessage() {}
|
func (*ListOptions) ProtoMessage() {}
|
||||||
func (*ListOptions) Descriptor() ([]byte, []int) {
|
func (*ListOptions) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_42854049893ccb13, []int{10}
|
return fileDescriptor_1ba364858f5c3cdb, []int{10}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *ListOptions) XXX_Unmarshal(b []byte) error {
|
func (m *ListOptions) XXX_Unmarshal(b []byte) error {
|
||||||
@ -601,7 +605,7 @@ func (m *ListRequest) Reset() { *m = ListRequest{} }
|
|||||||
func (m *ListRequest) String() string { return proto.CompactTextString(m) }
|
func (m *ListRequest) String() string { return proto.CompactTextString(m) }
|
||||||
func (*ListRequest) ProtoMessage() {}
|
func (*ListRequest) ProtoMessage() {}
|
||||||
func (*ListRequest) Descriptor() ([]byte, []int) {
|
func (*ListRequest) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_42854049893ccb13, []int{11}
|
return fileDescriptor_1ba364858f5c3cdb, []int{11}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *ListRequest) XXX_Unmarshal(b []byte) error {
|
func (m *ListRequest) XXX_Unmarshal(b []byte) error {
|
||||||
@ -640,7 +644,7 @@ func (m *ListResponse) Reset() { *m = ListResponse{} }
|
|||||||
func (m *ListResponse) String() string { return proto.CompactTextString(m) }
|
func (m *ListResponse) String() string { return proto.CompactTextString(m) }
|
||||||
func (*ListResponse) ProtoMessage() {}
|
func (*ListResponse) ProtoMessage() {}
|
||||||
func (*ListResponse) Descriptor() ([]byte, []int) {
|
func (*ListResponse) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_42854049893ccb13, []int{12}
|
return fileDescriptor_1ba364858f5c3cdb, []int{12}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *ListResponse) XXX_Unmarshal(b []byte) error {
|
func (m *ListResponse) XXX_Unmarshal(b []byte) error {
|
||||||
@ -678,7 +682,7 @@ func (m *DatabasesRequest) Reset() { *m = DatabasesRequest{} }
|
|||||||
func (m *DatabasesRequest) String() string { return proto.CompactTextString(m) }
|
func (m *DatabasesRequest) String() string { return proto.CompactTextString(m) }
|
||||||
func (*DatabasesRequest) ProtoMessage() {}
|
func (*DatabasesRequest) ProtoMessage() {}
|
||||||
func (*DatabasesRequest) Descriptor() ([]byte, []int) {
|
func (*DatabasesRequest) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_42854049893ccb13, []int{13}
|
return fileDescriptor_1ba364858f5c3cdb, []int{13}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *DatabasesRequest) XXX_Unmarshal(b []byte) error {
|
func (m *DatabasesRequest) XXX_Unmarshal(b []byte) error {
|
||||||
@ -710,7 +714,7 @@ func (m *DatabasesResponse) Reset() { *m = DatabasesResponse{} }
|
|||||||
func (m *DatabasesResponse) String() string { return proto.CompactTextString(m) }
|
func (m *DatabasesResponse) String() string { return proto.CompactTextString(m) }
|
||||||
func (*DatabasesResponse) ProtoMessage() {}
|
func (*DatabasesResponse) ProtoMessage() {}
|
||||||
func (*DatabasesResponse) Descriptor() ([]byte, []int) {
|
func (*DatabasesResponse) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_42854049893ccb13, []int{14}
|
return fileDescriptor_1ba364858f5c3cdb, []int{14}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *DatabasesResponse) XXX_Unmarshal(b []byte) error {
|
func (m *DatabasesResponse) XXX_Unmarshal(b []byte) error {
|
||||||
@ -749,7 +753,7 @@ func (m *TablesRequest) Reset() { *m = TablesRequest{} }
|
|||||||
func (m *TablesRequest) String() string { return proto.CompactTextString(m) }
|
func (m *TablesRequest) String() string { return proto.CompactTextString(m) }
|
||||||
func (*TablesRequest) ProtoMessage() {}
|
func (*TablesRequest) ProtoMessage() {}
|
||||||
func (*TablesRequest) Descriptor() ([]byte, []int) {
|
func (*TablesRequest) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_42854049893ccb13, []int{15}
|
return fileDescriptor_1ba364858f5c3cdb, []int{15}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *TablesRequest) XXX_Unmarshal(b []byte) error {
|
func (m *TablesRequest) XXX_Unmarshal(b []byte) error {
|
||||||
@ -788,7 +792,7 @@ func (m *TablesResponse) Reset() { *m = TablesResponse{} }
|
|||||||
func (m *TablesResponse) String() string { return proto.CompactTextString(m) }
|
func (m *TablesResponse) String() string { return proto.CompactTextString(m) }
|
||||||
func (*TablesResponse) ProtoMessage() {}
|
func (*TablesResponse) ProtoMessage() {}
|
||||||
func (*TablesResponse) Descriptor() ([]byte, []int) {
|
func (*TablesResponse) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_42854049893ccb13, []int{16}
|
return fileDescriptor_1ba364858f5c3cdb, []int{16}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *TablesResponse) XXX_Unmarshal(b []byte) error {
|
func (m *TablesResponse) XXX_Unmarshal(b []byte) error {
|
||||||
@ -836,48 +840,333 @@ func init() {
|
|||||||
proto.RegisterType((*TablesResponse)(nil), "go.micro.store.TablesResponse")
|
proto.RegisterType((*TablesResponse)(nil), "go.micro.store.TablesResponse")
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
func init() { proto.RegisterFile("store/service/proto/store.proto", fileDescriptor_1ba364858f5c3cdb) }
|
||||||
proto.RegisterFile("github.com/micro/go-micro/store/service/proto/store.proto", fileDescriptor_42854049893ccb13)
|
|
||||||
|
var fileDescriptor_1ba364858f5c3cdb = []byte{
|
||||||
|
// 583 bytes of a gzipped FileDescriptorProto
|
||||||
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0xdd, 0x8e, 0xd2, 0x40,
|
||||||
|
0x14, 0xa6, 0xdb, 0xd2, 0xa5, 0x87, 0x1f, 0x71, 0x62, 0x48, 0x83, 0xac, 0xd6, 0xb9, 0x6a, 0x62,
|
||||||
|
0x52, 0x56, 0x8c, 0x7a, 0xab, 0x11, 0x8d, 0x1a, 0x13, 0x93, 0xd1, 0x68, 0xe2, 0x5d, 0x81, 0xc1,
|
||||||
|
0xd4, 0x65, 0x77, 0xb0, 0x33, 0x90, 0xe5, 0x61, 0x7c, 0x1c, 0xdf, 0xcb, 0xcc, 0x1f, 0x14, 0x68,
|
||||||
|
0xf7, 0xc2, 0xf5, 0x6e, 0xce, 0x99, 0xe1, 0x3b, 0xe7, 0xfb, 0x69, 0x80, 0x87, 0x5c, 0xb0, 0x9c,
|
||||||
|
0x0e, 0x39, 0xcd, 0xd7, 0xd9, 0x94, 0x0e, 0x97, 0x39, 0x13, 0x6c, 0xa8, 0x7a, 0x89, 0x3a, 0xa3,
|
||||||
|
0xce, 0x0f, 0x96, 0x5c, 0x66, 0xd3, 0x9c, 0x25, 0xaa, 0x8b, 0xdf, 0x81, 0x4f, 0xe8, 0x94, 0xe5,
|
||||||
|
0x33, 0xd4, 0x05, 0xf7, 0x82, 0x6e, 0x42, 0x27, 0x72, 0xe2, 0x80, 0xc8, 0x23, 0xba, 0x07, 0xf5,
|
||||||
|
0x75, 0xba, 0x58, 0xd1, 0xf0, 0x24, 0x72, 0xe2, 0x16, 0xd1, 0x05, 0xea, 0x81, 0x4f, 0xaf, 0x97,
|
||||||
|
0x59, 0xbe, 0x09, 0xdd, 0xc8, 0x89, 0x5d, 0x62, 0x2a, 0xfc, 0xdb, 0x81, 0x26, 0xa1, 0xe9, 0xec,
|
||||||
|
0xd3, 0x52, 0x64, 0xec, 0x8a, 0xa3, 0x3e, 0x34, 0x66, 0xa9, 0x48, 0x27, 0x29, 0xa7, 0x06, 0x74,
|
||||||
|
0x5b, 0x4b, 0x64, 0x91, 0x4e, 0x16, 0x1a, 0x39, 0x20, 0xba, 0x90, 0xc8, 0xcb, 0x9c, 0xce, 0xb3,
|
||||||
|
0x6b, 0x85, 0xdc, 0x20, 0xa6, 0x92, 0x7d, 0xbe, 0x9a, 0xcb, 0xbe, 0xa7, 0xfb, 0xba, 0x92, 0x28,
|
||||||
|
0x8b, 0xec, 0x32, 0x13, 0x61, 0x3d, 0x72, 0x62, 0x8f, 0xe8, 0x42, 0xbe, 0x66, 0xf3, 0x39, 0xa7,
|
||||||
|
0x22, 0xf4, 0x55, 0xdb, 0x54, 0xf8, 0xab, 0x5e, 0x8f, 0xd0, 0x5f, 0x2b, 0xca, 0x45, 0x09, 0xdd,
|
||||||
|
0x67, 0x70, 0xca, 0xf4, 0xee, 0x6a, 0xad, 0xe6, 0xe8, 0x7e, 0xb2, 0x2f, 0x56, 0x52, 0xa0, 0x47,
|
||||||
|
0xec, 0x5b, 0xfc, 0x12, 0x5a, 0x1a, 0x97, 0x2f, 0xd9, 0x15, 0xa7, 0xe8, 0x1c, 0x4e, 0x73, 0xa5,
|
||||||
|
0x28, 0x0f, 0x9d, 0xc8, 0x8d, 0x9b, 0xa3, 0xde, 0x31, 0x8c, 0xbc, 0x26, 0xf6, 0x19, 0xfe, 0x09,
|
||||||
|
0xad, 0x6f, 0x79, 0x26, 0xe8, 0xad, 0x94, 0x2b, 0xf3, 0x44, 0x92, 0x14, 0x62, 0xa1, 0x64, 0x73,
|
||||||
|
0x89, 0x3c, 0xe2, 0xb5, 0x99, 0x65, 0x65, 0x48, 0xc0, 0xd7, 0x6b, 0xa8, 0x49, 0xd5, 0xcb, 0x9a,
|
||||||
|
0x57, 0xe8, 0xf9, 0xa1, 0x48, 0x83, 0xc3, 0x1f, 0x14, 0xa9, 0xec, 0x54, 0xba, 0x03, 0x6d, 0x33,
|
||||||
|
0x57, 0xcb, 0x84, 0x5f, 0x41, 0x7b, 0x4c, 0x17, 0xf4, 0x16, 0xac, 0xf1, 0x77, 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0f, 0xaa, 0xae, 0xb7, 0x50, 0x6f, 0xc0, 0x93, 0x4e, 0xa1, 0x52, 0x5f, 0x2b,
|
||||||
|
0x79, 0x15, 0xcd, 0xc5, 0xb5, 0x73, 0x07, 0x11, 0x08, 0xb6, 0x96, 0xa1, 0xe8, 0x68, 0xea, 0x81,
|
||||||
|
0xc3, 0xfd, 0x47, 0x37, 0xbc, 0x28, 0xb2, 0xd4, 0x36, 0x1d, 0xb3, 0xdc, 0xf3, 0xfa, 0x98, 0xe5,
|
||||||
|
0xbe, 0xbb, 0xb8, 0x36, 0xf1, 0xd5, 0xdf, 0xd6, 0xd3, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0xc9,
|
||||||
|
0x9b, 0x47, 0x1c, 0xd9, 0x06, 0x00, 0x00,
|
||||||
}
|
}
|
||||||
|
|
||||||
var fileDescriptor_42854049893ccb13 = []byte{
|
// Reference imports to suppress errors if they are not otherwise used.
|
||||||
// 598 bytes of a gzipped FileDescriptorProto
|
var _ context.Context
|
||||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0xdd, 0x8e, 0xd2, 0x40,
|
var _ grpc.ClientConn
|
||||||
0x14, 0xa6, 0xdb, 0xd2, 0xa5, 0x87, 0x1f, 0x71, 0x62, 0x48, 0x83, 0xac, 0xa9, 0x73, 0xd5, 0xc4,
|
|
||||||
0x58, 0x56, 0x8c, 0x1a, 0xef, 0x34, 0xa2, 0x51, 0x63, 0x62, 0x32, 0x1a, 0x4d, 0xbc, 0x2b, 0x30,
|
// This is a compile-time assertion to ensure that this generated file
|
||||||
0x60, 0x5d, 0xd8, 0x62, 0x67, 0x20, 0xcb, 0xc3, 0xf8, 0x38, 0xbe, 0x97, 0x99, 0x3f, 0x28, 0xd0,
|
// is compatible with the grpc package it is being compiled against.
|
||||||
0xee, 0x85, 0xbb, 0x77, 0x73, 0xce, 0x1c, 0xbe, 0x39, 0xdf, 0x4f, 0x03, 0xbc, 0x9c, 0x25, 0xfc,
|
const _ = grpc.SupportPackageIsVersion4
|
||||||
0xe7, 0x6a, 0x14, 0x8d, 0xd3, 0x45, 0x7f, 0x91, 0x8c, 0xb3, 0xb4, 0x3f, 0x4b, 0x1f, 0xab, 0x03,
|
|
||||||
0xe3, 0x69, 0x46, 0xfb, 0x8c, 0x66, 0xeb, 0x64, 0x4c, 0xfb, 0xcb, 0x2c, 0xe5, 0xba, 0x17, 0xc9,
|
// StoreClient is the client API for Store service.
|
||||||
0x33, 0x6a, 0xcd, 0xd2, 0x48, 0x4e, 0x46, 0xb2, 0x8b, 0xdf, 0x83, 0x4b, 0xe8, 0x38, 0xcd, 0x26,
|
//
|
||||||
0xa8, 0x0d, 0xf6, 0x05, 0xdd, 0xf8, 0x56, 0x60, 0x85, 0x1e, 0x11, 0x47, 0x74, 0x0f, 0xaa, 0xeb,
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
||||||
0x78, 0xbe, 0xa2, 0xfe, 0x49, 0x60, 0x85, 0x0d, 0xa2, 0x0a, 0xd4, 0x01, 0x97, 0x5e, 0x2d, 0x93,
|
type StoreClient interface {
|
||||||
0x6c, 0xe3, 0xdb, 0x81, 0x15, 0xda, 0x44, 0x57, 0xf8, 0x8f, 0x05, 0x75, 0x42, 0xe3, 0xc9, 0xe7,
|
Read(ctx context.Context, in *ReadRequest, opts ...grpc.CallOption) (*ReadResponse, error)
|
||||||
0x25, 0x4f, 0xd2, 0x4b, 0x86, 0xba, 0x50, 0x9b, 0xc4, 0x3c, 0x1e, 0xc5, 0x8c, 0x6a, 0xd0, 0x6d,
|
Write(ctx context.Context, in *WriteRequest, opts ...grpc.CallOption) (*WriteResponse, error)
|
||||||
0x2d, 0x90, 0x79, 0x3c, 0x9a, 0x2b, 0x64, 0x8f, 0xa8, 0x42, 0x20, 0x2f, 0x33, 0x3a, 0x4d, 0xae,
|
Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error)
|
||||||
0x24, 0x72, 0x8d, 0xe8, 0x4a, 0xf4, 0xd9, 0x6a, 0x2a, 0xfa, 0x8e, 0xea, 0xab, 0x4a, 0xa0, 0xcc,
|
List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (Store_ListClient, error)
|
||||||
0x93, 0x45, 0xc2, 0xfd, 0x6a, 0x60, 0x85, 0x0e, 0x51, 0x85, 0x98, 0x4e, 0xa7, 0x53, 0x46, 0xb9,
|
Databases(ctx context.Context, in *DatabasesRequest, opts ...grpc.CallOption) (*DatabasesResponse, error)
|
||||||
0xef, 0xca, 0xb6, 0xae, 0xf0, 0x37, 0xb5, 0x1e, 0xa1, 0xbf, 0x57, 0x94, 0xf1, 0x02, 0xba, 0xcf,
|
Tables(ctx context.Context, in *TablesRequest, opts ...grpc.CallOption) (*TablesResponse, error)
|
||||||
0xe0, 0x34, 0x55, 0xbb, 0xcb, 0xb5, 0xea, 0x83, 0xfb, 0xd1, 0xbe, 0x58, 0x51, 0x8e, 0x1e, 0x31,
|
}
|
||||||
0xb3, 0xf8, 0x15, 0x34, 0x14, 0x2e, 0x5b, 0xa6, 0x97, 0x8c, 0xa2, 0x73, 0x38, 0xcd, 0xa4, 0xa2,
|
|
||||||
0xcc, 0xb7, 0x02, 0x3b, 0xac, 0x0f, 0x3a, 0xc7, 0x30, 0xe2, 0x9a, 0x98, 0x31, 0xfc, 0x0b, 0x1a,
|
type storeClient struct {
|
||||||
0xdf, 0xb3, 0x84, 0xd3, 0x1b, 0x29, 0x57, 0xe4, 0x89, 0x20, 0xc9, 0xf9, 0x5c, 0xca, 0x66, 0x13,
|
cc *grpc.ClientConn
|
||||||
0x71, 0xc4, 0x6b, 0xfd, 0x96, 0x91, 0x21, 0x02, 0x57, 0xad, 0x21, 0x5f, 0x2a, 0x5f, 0x56, 0x4f,
|
}
|
||||||
0xa1, 0xe7, 0x87, 0x22, 0xf5, 0x0e, 0x7f, 0x90, 0xa7, 0xb2, 0x53, 0xe9, 0x0e, 0x34, 0xf5, 0xbb,
|
|
||||||
0x4a, 0x26, 0xfc, 0x1a, 0x9a, 0x43, 0x3a, 0xa7, 0x37, 0x60, 0x8d, 0x7f, 0x18, 0x88, 0x72, 0x4f,
|
func NewStoreClient(cc *grpc.ClientConn) StoreClient {
|
||||||
0x5f, 0x1c, 0xae, 0x7b, 0x76, 0xb8, 0xee, 0xde, 0x12, 0xbb, 0x7d, 0xdb, 0xd0, 0x32, 0xd8, 0x7a,
|
return &storeClient{cc}
|
||||||
0x61, 0x91, 0xef, 0x4f, 0x09, 0xe3, 0xb7, 0x95, 0x6f, 0xaf, 0x24, 0xdf, 0xde, 0x7f, 0xe6, 0x7b,
|
}
|
||||||
0xa8, 0xd6, 0x33, 0x5a, 0xe4, 0xd2, 0x6c, 0x15, 0xa7, 0x39, 0x47, 0x66, 0xc7, 0x3b, 0x84, 0x86,
|
|
||||||
0x42, 0xd1, 0x69, 0x46, 0xe0, 0x5c, 0xd0, 0x8d, 0x50, 0xcf, 0x0e, 0x3d, 0x22, 0xcf, 0x1f, 0x9d,
|
func (c *storeClient) Read(ctx context.Context, in *ReadRequest, opts ...grpc.CallOption) (*ReadResponse, error) {
|
||||||
0x9a, 0xd5, 0x3e, 0xc1, 0x08, 0xda, 0x43, 0xcd, 0x97, 0xe9, 0x47, 0xf1, 0x13, 0xb8, 0x9b, 0xeb,
|
out := new(ReadResponse)
|
||||||
0x69, 0x88, 0x1e, 0x78, 0x46, 0x18, 0xf5, 0x49, 0x78, 0x64, 0xd7, 0xc0, 0x8f, 0xa0, 0xf9, 0x55,
|
err := c.cc.Invoke(ctx, "/go.micro.store.Store/Read", in, out, opts...)
|
||||||
0xa8, 0x63, 0x30, 0xae, 0xd3, 0x15, 0x87, 0xd0, 0x32, 0xc3, 0x1a, 0xbc, 0x03, 0xae, 0x14, 0xd7,
|
if err != nil {
|
||||||
0x20, 0xeb, 0x6a, 0xf0, 0xd7, 0x86, 0xea, 0x17, 0x41, 0x13, 0xbd, 0x01, 0x47, 0x7c, 0x9f, 0xa8,
|
return nil, err
|
||||||
0xf0, 0x6b, 0xd6, 0x8f, 0x76, 0x7b, 0xc5, 0x97, 0xda, 0xfa, 0x0a, 0x7a, 0x07, 0x55, 0x19, 0x5f,
|
}
|
||||||
0x54, 0x1c, 0x77, 0x03, 0x73, 0x56, 0x72, 0xbb, 0xc5, 0xf9, 0x00, 0xae, 0x8a, 0x15, 0x2a, 0x09,
|
return out, nil
|
||||||
0xa2, 0x41, 0x7a, 0x50, 0x76, 0xbd, 0x85, 0x7a, 0x0b, 0x8e, 0x70, 0x0a, 0x15, 0xfa, 0x5a, 0xca,
|
}
|
||||||
0x2b, 0x6f, 0x2e, 0xae, 0x9c, 0x5b, 0x88, 0x80, 0xb7, 0xb5, 0x0c, 0x05, 0x47, 0xaf, 0x1e, 0x38,
|
|
||||||
0xdc, 0x7d, 0x78, 0xcd, 0x44, 0x9e, 0xa5, 0xb2, 0xe9, 0x98, 0xe5, 0x9e, 0xd7, 0xc7, 0x2c, 0xf7,
|
func (c *storeClient) Write(ctx context.Context, in *WriteRequest, opts ...grpc.CallOption) (*WriteResponse, error) {
|
||||||
0xdd, 0xc5, 0x95, 0x91, 0x2b, 0xff, 0xb6, 0x9e, 0xfe, 0x0b, 0x00, 0x00, 0xff, 0xff, 0xab, 0xcb,
|
out := new(WriteResponse)
|
||||||
0x6e, 0xac, 0xf3, 0x06, 0x00, 0x00,
|
err := c.cc.Invoke(ctx, "/go.micro.store.Store/Write", in, out, opts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *storeClient) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) {
|
||||||
|
out := new(DeleteResponse)
|
||||||
|
err := c.cc.Invoke(ctx, "/go.micro.store.Store/Delete", in, out, opts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *storeClient) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (Store_ListClient, error) {
|
||||||
|
stream, err := c.cc.NewStream(ctx, &_Store_serviceDesc.Streams[0], "/go.micro.store.Store/List", opts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
x := &storeListClient{stream}
|
||||||
|
if err := x.ClientStream.SendMsg(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if err := x.ClientStream.CloseSend(); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return x, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
type Store_ListClient interface {
|
||||||
|
Recv() (*ListResponse, error)
|
||||||
|
grpc.ClientStream
|
||||||
|
}
|
||||||
|
|
||||||
|
type storeListClient struct {
|
||||||
|
grpc.ClientStream
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *storeListClient) Recv() (*ListResponse, error) {
|
||||||
|
m := new(ListResponse)
|
||||||
|
if err := x.ClientStream.RecvMsg(m); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return m, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *storeClient) Databases(ctx context.Context, in *DatabasesRequest, opts ...grpc.CallOption) (*DatabasesResponse, error) {
|
||||||
|
out := new(DatabasesResponse)
|
||||||
|
err := c.cc.Invoke(ctx, "/go.micro.store.Store/Databases", in, out, opts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *storeClient) Tables(ctx context.Context, in *TablesRequest, opts ...grpc.CallOption) (*TablesResponse, error) {
|
||||||
|
out := new(TablesResponse)
|
||||||
|
err := c.cc.Invoke(ctx, "/go.micro.store.Store/Tables", in, out, opts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// StoreServer is the server API for Store service.
|
||||||
|
type StoreServer interface {
|
||||||
|
Read(context.Context, *ReadRequest) (*ReadResponse, error)
|
||||||
|
Write(context.Context, *WriteRequest) (*WriteResponse, error)
|
||||||
|
Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
|
||||||
|
List(*ListRequest, Store_ListServer) error
|
||||||
|
Databases(context.Context, *DatabasesRequest) (*DatabasesResponse, error)
|
||||||
|
Tables(context.Context, *TablesRequest) (*TablesResponse, error)
|
||||||
|
}
|
||||||
|
|
||||||
|
// UnimplementedStoreServer can be embedded to have forward compatible implementations.
|
||||||
|
type UnimplementedStoreServer struct {
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*UnimplementedStoreServer) Read(ctx context.Context, req *ReadRequest) (*ReadResponse, error) {
|
||||||
|
return nil, status.Errorf(codes.Unimplemented, "method Read not implemented")
|
||||||
|
}
|
||||||
|
func (*UnimplementedStoreServer) Write(ctx context.Context, req *WriteRequest) (*WriteResponse, error) {
|
||||||
|
return nil, status.Errorf(codes.Unimplemented, "method Write not implemented")
|
||||||
|
}
|
||||||
|
func (*UnimplementedStoreServer) Delete(ctx context.Context, req *DeleteRequest) (*DeleteResponse, error) {
|
||||||
|
return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented")
|
||||||
|
}
|
||||||
|
func (*UnimplementedStoreServer) List(req *ListRequest, srv Store_ListServer) error {
|
||||||
|
return status.Errorf(codes.Unimplemented, "method List not implemented")
|
||||||
|
}
|
||||||
|
func (*UnimplementedStoreServer) Databases(ctx context.Context, req *DatabasesRequest) (*DatabasesResponse, error) {
|
||||||
|
return nil, status.Errorf(codes.Unimplemented, "method Databases not implemented")
|
||||||
|
}
|
||||||
|
func (*UnimplementedStoreServer) Tables(ctx context.Context, req *TablesRequest) (*TablesResponse, error) {
|
||||||
|
return nil, status.Errorf(codes.Unimplemented, "method Tables not implemented")
|
||||||
|
}
|
||||||
|
|
||||||
|
func RegisterStoreServer(s *grpc.Server, srv StoreServer) {
|
||||||
|
s.RegisterService(&_Store_serviceDesc, srv)
|
||||||
|
}
|
||||||
|
|
||||||
|
func _Store_Read_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(ReadRequest)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(StoreServer).Read(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: "/go.micro.store.Store/Read",
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(StoreServer).Read(ctx, req.(*ReadRequest))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
|
func _Store_Write_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(WriteRequest)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(StoreServer).Write(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: "/go.micro.store.Store/Write",
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(StoreServer).Write(ctx, req.(*WriteRequest))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
|
func _Store_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(DeleteRequest)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(StoreServer).Delete(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: "/go.micro.store.Store/Delete",
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(StoreServer).Delete(ctx, req.(*DeleteRequest))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
|
func _Store_List_Handler(srv interface{}, stream grpc.ServerStream) error {
|
||||||
|
m := new(ListRequest)
|
||||||
|
if err := stream.RecvMsg(m); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
return srv.(StoreServer).List(m, &storeListServer{stream})
|
||||||
|
}
|
||||||
|
|
||||||
|
type Store_ListServer interface {
|
||||||
|
Send(*ListResponse) error
|
||||||
|
grpc.ServerStream
|
||||||
|
}
|
||||||
|
|
||||||
|
type storeListServer struct {
|
||||||
|
grpc.ServerStream
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *storeListServer) Send(m *ListResponse) error {
|
||||||
|
return x.ServerStream.SendMsg(m)
|
||||||
|
}
|
||||||
|
|
||||||
|
func _Store_Databases_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(DatabasesRequest)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(StoreServer).Databases(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: "/go.micro.store.Store/Databases",
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(StoreServer).Databases(ctx, req.(*DatabasesRequest))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
|
func _Store_Tables_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(TablesRequest)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(StoreServer).Tables(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: "/go.micro.store.Store/Tables",
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(StoreServer).Tables(ctx, req.(*TablesRequest))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
|
var _Store_serviceDesc = grpc.ServiceDesc{
|
||||||
|
ServiceName: "go.micro.store.Store",
|
||||||
|
HandlerType: (*StoreServer)(nil),
|
||||||
|
Methods: []grpc.MethodDesc{
|
||||||
|
{
|
||||||
|
MethodName: "Read",
|
||||||
|
Handler: _Store_Read_Handler,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
MethodName: "Write",
|
||||||
|
Handler: _Store_Write_Handler,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
MethodName: "Delete",
|
||||||
|
Handler: _Store_Delete_Handler,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
MethodName: "Databases",
|
||||||
|
Handler: _Store_Databases_Handler,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
MethodName: "Tables",
|
||||||
|
Handler: _Store_Tables_Handler,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Streams: []grpc.StreamDesc{
|
||||||
|
{
|
||||||
|
StreamName: "List",
|
||||||
|
Handler: _Store_List_Handler,
|
||||||
|
ServerStreams: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Metadata: "store/service/proto/store.proto",
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// Code generated by protoc-gen-micro. DO NOT EDIT.
|
// Code generated by protoc-gen-micro. DO NOT EDIT.
|
||||||
// source: github.com/micro/go-micro/store/service/proto/store.proto
|
// source: store/service/proto/store.proto
|
||||||
|
|
||||||
package go_micro_store
|
package go_micro_store
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user