|
|
|
@@ -1,13 +1,11 @@
|
|
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
|
|
// source: micro/go-micro/runtime/service/proto/runtime.proto
|
|
|
|
|
// source: runtime.proto
|
|
|
|
|
|
|
|
|
|
package go_micro_runtime
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
context "context"
|
|
|
|
|
fmt "fmt"
|
|
|
|
|
proto "github.com/golang/protobuf/proto"
|
|
|
|
|
grpc "google.golang.org/grpc"
|
|
|
|
|
math "math"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
@@ -42,7 +40,7 @@ func (m *Service) Reset() { *m = Service{} }
|
|
|
|
|
func (m *Service) String() string { return proto.CompactTextString(m) }
|
|
|
|
|
func (*Service) ProtoMessage() {}
|
|
|
|
|
func (*Service) Descriptor() ([]byte, []int) {
|
|
|
|
|
return fileDescriptor_4bc91a8efec81434, []int{0}
|
|
|
|
|
return fileDescriptor_86e2dd377c869464, []int{0}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *Service) XXX_Unmarshal(b []byte) error {
|
|
|
|
@@ -98,9 +96,9 @@ func (m *Service) GetExec() string {
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type Options struct {
|
|
|
|
|
type CreateOptions struct {
|
|
|
|
|
// command to pass in
|
|
|
|
|
Command string `protobuf:"bytes,1,opt,name=command,proto3" json:"command,omitempty"`
|
|
|
|
|
Command []string `protobuf:"bytes,1,rep,name=command,proto3" json:"command,omitempty"`
|
|
|
|
|
// environment to pass in
|
|
|
|
|
Env []string `protobuf:"bytes,2,rep,name=env,proto3" json:"env,omitempty"`
|
|
|
|
|
// output to send to
|
|
|
|
@@ -110,46 +108,46 @@ type Options struct {
|
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *Options) Reset() { *m = Options{} }
|
|
|
|
|
func (m *Options) String() string { return proto.CompactTextString(m) }
|
|
|
|
|
func (*Options) ProtoMessage() {}
|
|
|
|
|
func (*Options) Descriptor() ([]byte, []int) {
|
|
|
|
|
return fileDescriptor_4bc91a8efec81434, []int{1}
|
|
|
|
|
func (m *CreateOptions) Reset() { *m = CreateOptions{} }
|
|
|
|
|
func (m *CreateOptions) String() string { return proto.CompactTextString(m) }
|
|
|
|
|
func (*CreateOptions) ProtoMessage() {}
|
|
|
|
|
func (*CreateOptions) Descriptor() ([]byte, []int) {
|
|
|
|
|
return fileDescriptor_86e2dd377c869464, []int{1}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *Options) XXX_Unmarshal(b []byte) error {
|
|
|
|
|
return xxx_messageInfo_Options.Unmarshal(m, b)
|
|
|
|
|
func (m *CreateOptions) XXX_Unmarshal(b []byte) error {
|
|
|
|
|
return xxx_messageInfo_CreateOptions.Unmarshal(m, b)
|
|
|
|
|
}
|
|
|
|
|
func (m *Options) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
|
return xxx_messageInfo_Options.Marshal(b, m, deterministic)
|
|
|
|
|
func (m *CreateOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
|
return xxx_messageInfo_CreateOptions.Marshal(b, m, deterministic)
|
|
|
|
|
}
|
|
|
|
|
func (m *Options) XXX_Merge(src proto.Message) {
|
|
|
|
|
xxx_messageInfo_Options.Merge(m, src)
|
|
|
|
|
func (m *CreateOptions) XXX_Merge(src proto.Message) {
|
|
|
|
|
xxx_messageInfo_CreateOptions.Merge(m, src)
|
|
|
|
|
}
|
|
|
|
|
func (m *Options) XXX_Size() int {
|
|
|
|
|
return xxx_messageInfo_Options.Size(m)
|
|
|
|
|
func (m *CreateOptions) XXX_Size() int {
|
|
|
|
|
return xxx_messageInfo_CreateOptions.Size(m)
|
|
|
|
|
}
|
|
|
|
|
func (m *Options) XXX_DiscardUnknown() {
|
|
|
|
|
xxx_messageInfo_Options.DiscardUnknown(m)
|
|
|
|
|
func (m *CreateOptions) XXX_DiscardUnknown() {
|
|
|
|
|
xxx_messageInfo_CreateOptions.DiscardUnknown(m)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var xxx_messageInfo_Options proto.InternalMessageInfo
|
|
|
|
|
var xxx_messageInfo_CreateOptions proto.InternalMessageInfo
|
|
|
|
|
|
|
|
|
|
func (m *Options) GetCommand() string {
|
|
|
|
|
func (m *CreateOptions) GetCommand() []string {
|
|
|
|
|
if m != nil {
|
|
|
|
|
return m.Command
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *Options) GetEnv() []string {
|
|
|
|
|
func (m *CreateOptions) GetEnv() []string {
|
|
|
|
|
if m != nil {
|
|
|
|
|
return m.Env
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *Options) GetOutput() string {
|
|
|
|
|
func (m *CreateOptions) GetOutput() string {
|
|
|
|
|
if m != nil {
|
|
|
|
|
return m.Output
|
|
|
|
|
}
|
|
|
|
@@ -157,18 +155,18 @@ func (m *Options) GetOutput() string {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type CreateRequest struct {
|
|
|
|
|
Service *Service `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
|
|
|
|
|
Options *Options `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"`
|
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
|
Service *Service `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
|
|
|
|
|
Options *CreateOptions `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"`
|
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *CreateRequest) Reset() { *m = CreateRequest{} }
|
|
|
|
|
func (m *CreateRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
|
func (*CreateRequest) ProtoMessage() {}
|
|
|
|
|
func (*CreateRequest) Descriptor() ([]byte, []int) {
|
|
|
|
|
return fileDescriptor_4bc91a8efec81434, []int{2}
|
|
|
|
|
return fileDescriptor_86e2dd377c869464, []int{2}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *CreateRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
@@ -196,7 +194,7 @@ func (m *CreateRequest) GetService() *Service {
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *CreateRequest) GetOptions() *Options {
|
|
|
|
|
func (m *CreateRequest) GetOptions() *CreateOptions {
|
|
|
|
|
if m != nil {
|
|
|
|
|
return m.Options
|
|
|
|
|
}
|
|
|
|
@@ -213,7 +211,7 @@ func (m *CreateResponse) Reset() { *m = CreateResponse{} }
|
|
|
|
|
func (m *CreateResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
|
func (*CreateResponse) ProtoMessage() {}
|
|
|
|
|
func (*CreateResponse) Descriptor() ([]byte, []int) {
|
|
|
|
|
return fileDescriptor_4bc91a8efec81434, []int{3}
|
|
|
|
|
return fileDescriptor_86e2dd377c869464, []int{3}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *CreateResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
@@ -234,6 +232,132 @@ func (m *CreateResponse) XXX_DiscardUnknown() {
|
|
|
|
|
|
|
|
|
|
var xxx_messageInfo_CreateResponse proto.InternalMessageInfo
|
|
|
|
|
|
|
|
|
|
type GetOptions struct {
|
|
|
|
|
// version of the service
|
|
|
|
|
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
|
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *GetOptions) Reset() { *m = GetOptions{} }
|
|
|
|
|
func (m *GetOptions) String() string { return proto.CompactTextString(m) }
|
|
|
|
|
func (*GetOptions) ProtoMessage() {}
|
|
|
|
|
func (*GetOptions) Descriptor() ([]byte, []int) {
|
|
|
|
|
return fileDescriptor_86e2dd377c869464, []int{4}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *GetOptions) XXX_Unmarshal(b []byte) error {
|
|
|
|
|
return xxx_messageInfo_GetOptions.Unmarshal(m, b)
|
|
|
|
|
}
|
|
|
|
|
func (m *GetOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
|
return xxx_messageInfo_GetOptions.Marshal(b, m, deterministic)
|
|
|
|
|
}
|
|
|
|
|
func (m *GetOptions) XXX_Merge(src proto.Message) {
|
|
|
|
|
xxx_messageInfo_GetOptions.Merge(m, src)
|
|
|
|
|
}
|
|
|
|
|
func (m *GetOptions) XXX_Size() int {
|
|
|
|
|
return xxx_messageInfo_GetOptions.Size(m)
|
|
|
|
|
}
|
|
|
|
|
func (m *GetOptions) XXX_DiscardUnknown() {
|
|
|
|
|
xxx_messageInfo_GetOptions.DiscardUnknown(m)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var xxx_messageInfo_GetOptions proto.InternalMessageInfo
|
|
|
|
|
|
|
|
|
|
func (m *GetOptions) GetVersion() string {
|
|
|
|
|
if m != nil {
|
|
|
|
|
return m.Version
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type GetRequest struct {
|
|
|
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
|
|
|
Options *GetOptions `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"`
|
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *GetRequest) Reset() { *m = GetRequest{} }
|
|
|
|
|
func (m *GetRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
|
func (*GetRequest) ProtoMessage() {}
|
|
|
|
|
func (*GetRequest) Descriptor() ([]byte, []int) {
|
|
|
|
|
return fileDescriptor_86e2dd377c869464, []int{5}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *GetRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
|
return xxx_messageInfo_GetRequest.Unmarshal(m, b)
|
|
|
|
|
}
|
|
|
|
|
func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
|
return xxx_messageInfo_GetRequest.Marshal(b, m, deterministic)
|
|
|
|
|
}
|
|
|
|
|
func (m *GetRequest) XXX_Merge(src proto.Message) {
|
|
|
|
|
xxx_messageInfo_GetRequest.Merge(m, src)
|
|
|
|
|
}
|
|
|
|
|
func (m *GetRequest) XXX_Size() int {
|
|
|
|
|
return xxx_messageInfo_GetRequest.Size(m)
|
|
|
|
|
}
|
|
|
|
|
func (m *GetRequest) XXX_DiscardUnknown() {
|
|
|
|
|
xxx_messageInfo_GetRequest.DiscardUnknown(m)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var xxx_messageInfo_GetRequest proto.InternalMessageInfo
|
|
|
|
|
|
|
|
|
|
func (m *GetRequest) GetName() string {
|
|
|
|
|
if m != nil {
|
|
|
|
|
return m.Name
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *GetRequest) GetOptions() *GetOptions {
|
|
|
|
|
if m != nil {
|
|
|
|
|
return m.Options
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type GetResponse struct {
|
|
|
|
|
Services []*Service `protobuf:"bytes,1,rep,name=services,proto3" json:"services,omitempty"`
|
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *GetResponse) Reset() { *m = GetResponse{} }
|
|
|
|
|
func (m *GetResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
|
func (*GetResponse) ProtoMessage() {}
|
|
|
|
|
func (*GetResponse) Descriptor() ([]byte, []int) {
|
|
|
|
|
return fileDescriptor_86e2dd377c869464, []int{6}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *GetResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
|
return xxx_messageInfo_GetResponse.Unmarshal(m, b)
|
|
|
|
|
}
|
|
|
|
|
func (m *GetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
|
return xxx_messageInfo_GetResponse.Marshal(b, m, deterministic)
|
|
|
|
|
}
|
|
|
|
|
func (m *GetResponse) XXX_Merge(src proto.Message) {
|
|
|
|
|
xxx_messageInfo_GetResponse.Merge(m, src)
|
|
|
|
|
}
|
|
|
|
|
func (m *GetResponse) XXX_Size() int {
|
|
|
|
|
return xxx_messageInfo_GetResponse.Size(m)
|
|
|
|
|
}
|
|
|
|
|
func (m *GetResponse) XXX_DiscardUnknown() {
|
|
|
|
|
xxx_messageInfo_GetResponse.DiscardUnknown(m)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var xxx_messageInfo_GetResponse proto.InternalMessageInfo
|
|
|
|
|
|
|
|
|
|
func (m *GetResponse) GetServices() []*Service {
|
|
|
|
|
if m != nil {
|
|
|
|
|
return m.Services
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type DeleteRequest struct {
|
|
|
|
|
Service *Service `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
|
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
@@ -245,7 +369,7 @@ func (m *DeleteRequest) Reset() { *m = DeleteRequest{} }
|
|
|
|
|
func (m *DeleteRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
|
func (*DeleteRequest) ProtoMessage() {}
|
|
|
|
|
func (*DeleteRequest) Descriptor() ([]byte, []int) {
|
|
|
|
|
return fileDescriptor_4bc91a8efec81434, []int{4}
|
|
|
|
|
return fileDescriptor_86e2dd377c869464, []int{7}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *DeleteRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
@@ -283,7 +407,7 @@ func (m *DeleteResponse) Reset() { *m = DeleteResponse{} }
|
|
|
|
|
func (m *DeleteResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
|
func (*DeleteResponse) ProtoMessage() {}
|
|
|
|
|
func (*DeleteResponse) Descriptor() ([]byte, []int) {
|
|
|
|
|
return fileDescriptor_4bc91a8efec81434, []int{5}
|
|
|
|
|
return fileDescriptor_86e2dd377c869464, []int{8}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *DeleteResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
@@ -315,7 +439,7 @@ func (m *UpdateRequest) Reset() { *m = UpdateRequest{} }
|
|
|
|
|
func (m *UpdateRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
|
func (*UpdateRequest) ProtoMessage() {}
|
|
|
|
|
func (*UpdateRequest) Descriptor() ([]byte, []int) {
|
|
|
|
|
return fileDescriptor_4bc91a8efec81434, []int{6}
|
|
|
|
|
return fileDescriptor_86e2dd377c869464, []int{9}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *UpdateRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
@@ -353,7 +477,7 @@ func (m *UpdateResponse) Reset() { *m = UpdateResponse{} }
|
|
|
|
|
func (m *UpdateResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
|
func (*UpdateResponse) ProtoMessage() {}
|
|
|
|
|
func (*UpdateResponse) Descriptor() ([]byte, []int) {
|
|
|
|
|
return fileDescriptor_4bc91a8efec81434, []int{7}
|
|
|
|
|
return fileDescriptor_86e2dd377c869464, []int{10}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *UpdateResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
@@ -384,7 +508,7 @@ func (m *ListRequest) Reset() { *m = ListRequest{} }
|
|
|
|
|
func (m *ListRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
|
func (*ListRequest) ProtoMessage() {}
|
|
|
|
|
func (*ListRequest) Descriptor() ([]byte, []int) {
|
|
|
|
|
return fileDescriptor_4bc91a8efec81434, []int{8}
|
|
|
|
|
return fileDescriptor_86e2dd377c869464, []int{11}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *ListRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
@@ -416,7 +540,7 @@ func (m *ListResponse) Reset() { *m = ListResponse{} }
|
|
|
|
|
func (m *ListResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
|
func (*ListResponse) ProtoMessage() {}
|
|
|
|
|
func (*ListResponse) Descriptor() ([]byte, []int) {
|
|
|
|
|
return fileDescriptor_4bc91a8efec81434, []int{9}
|
|
|
|
|
return fileDescriptor_86e2dd377c869464, []int{12}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *ListResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
@@ -446,9 +570,12 @@ func (m *ListResponse) GetServices() []*Service {
|
|
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
|
proto.RegisterType((*Service)(nil), "go.micro.runtime.Service")
|
|
|
|
|
proto.RegisterType((*Options)(nil), "go.micro.runtime.Options")
|
|
|
|
|
proto.RegisterType((*CreateOptions)(nil), "go.micro.runtime.CreateOptions")
|
|
|
|
|
proto.RegisterType((*CreateRequest)(nil), "go.micro.runtime.CreateRequest")
|
|
|
|
|
proto.RegisterType((*CreateResponse)(nil), "go.micro.runtime.CreateResponse")
|
|
|
|
|
proto.RegisterType((*GetOptions)(nil), "go.micro.runtime.GetOptions")
|
|
|
|
|
proto.RegisterType((*GetRequest)(nil), "go.micro.runtime.GetRequest")
|
|
|
|
|
proto.RegisterType((*GetResponse)(nil), "go.micro.runtime.GetResponse")
|
|
|
|
|
proto.RegisterType((*DeleteRequest)(nil), "go.micro.runtime.DeleteRequest")
|
|
|
|
|
proto.RegisterType((*DeleteResponse)(nil), "go.micro.runtime.DeleteResponse")
|
|
|
|
|
proto.RegisterType((*UpdateRequest)(nil), "go.micro.runtime.UpdateRequest")
|
|
|
|
@@ -457,205 +584,35 @@ func init() {
|
|
|
|
|
proto.RegisterType((*ListResponse)(nil), "go.micro.runtime.ListResponse")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
|
proto.RegisterFile("micro/go-micro/runtime/service/proto/runtime.proto", fileDescriptor_4bc91a8efec81434)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var fileDescriptor_4bc91a8efec81434 = []byte{
|
|
|
|
|
// 379 bytes of a gzipped FileDescriptorProto
|
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x93, 0xcb, 0x4e, 0xc2, 0x40,
|
|
|
|
|
0x14, 0x86, 0x81, 0x22, 0x95, 0x83, 0x18, 0x32, 0x0b, 0x33, 0x92, 0xa8, 0x4d, 0x57, 0x6c, 0x2c,
|
|
|
|
|
0x09, 0xc4, 0x27, 0x10, 0xe3, 0x46, 0x62, 0x52, 0xe3, 0x03, 0xd4, 0x72, 0x82, 0x4d, 0x6c, 0xa7,
|
|
|
|
|
0xce, 0x4c, 0x51, 0x9f, 0xce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ress errors if they are not otherwise used.
|
|
|
|
|
var _ context.Context
|
|
|
|
|
var _ grpc.ClientConn
|
|
|
|
|
|
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
|
|
|
// is compatible with the grpc package it is being compiled against.
|
|
|
|
|
const _ = grpc.SupportPackageIsVersion4
|
|
|
|
|
|
|
|
|
|
// RuntimeClient is the client API for Runtime service.
|
|
|
|
|
//
|
|
|
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
|
|
|
type RuntimeClient interface {
|
|
|
|
|
Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error)
|
|
|
|
|
Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error)
|
|
|
|
|
Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error)
|
|
|
|
|
List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type runtimeClient struct {
|
|
|
|
|
cc *grpc.ClientConn
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func NewRuntimeClient(cc *grpc.ClientConn) RuntimeClient {
|
|
|
|
|
return &runtimeClient{cc}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (c *runtimeClient) Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) {
|
|
|
|
|
out := new(CreateResponse)
|
|
|
|
|
err := c.cc.Invoke(ctx, "/go.micro.runtime.Runtime/Create", in, out, opts...)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return out, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (c *runtimeClient) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) {
|
|
|
|
|
out := new(DeleteResponse)
|
|
|
|
|
err := c.cc.Invoke(ctx, "/go.micro.runtime.Runtime/Delete", in, out, opts...)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return out, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (c *runtimeClient) Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error) {
|
|
|
|
|
out := new(UpdateResponse)
|
|
|
|
|
err := c.cc.Invoke(ctx, "/go.micro.runtime.Runtime/Update", in, out, opts...)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return out, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (c *runtimeClient) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) {
|
|
|
|
|
out := new(ListResponse)
|
|
|
|
|
err := c.cc.Invoke(ctx, "/go.micro.runtime.Runtime/List", in, out, opts...)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return out, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// RuntimeServer is the server API for Runtime service.
|
|
|
|
|
type RuntimeServer interface {
|
|
|
|
|
Create(context.Context, *CreateRequest) (*CreateResponse, error)
|
|
|
|
|
Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
|
|
|
|
|
Update(context.Context, *UpdateRequest) (*UpdateResponse, error)
|
|
|
|
|
List(context.Context, *ListRequest) (*ListResponse, error)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func RegisterRuntimeServer(s *grpc.Server, srv RuntimeServer) {
|
|
|
|
|
s.RegisterService(&_Runtime_serviceDesc, srv)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func _Runtime_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
|
in := new(CreateRequest)
|
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
if interceptor == nil {
|
|
|
|
|
return srv.(RuntimeServer).Create(ctx, in)
|
|
|
|
|
}
|
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
|
Server: srv,
|
|
|
|
|
FullMethod: "/go.micro.runtime.Runtime/Create",
|
|
|
|
|
}
|
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
return srv.(RuntimeServer).Create(ctx, req.(*CreateRequest))
|
|
|
|
|
}
|
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func _Runtime_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.(RuntimeServer).Delete(ctx, in)
|
|
|
|
|
}
|
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
|
Server: srv,
|
|
|
|
|
FullMethod: "/go.micro.runtime.Runtime/Delete",
|
|
|
|
|
}
|
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
return srv.(RuntimeServer).Delete(ctx, req.(*DeleteRequest))
|
|
|
|
|
}
|
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func _Runtime_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
|
in := new(UpdateRequest)
|
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
if interceptor == nil {
|
|
|
|
|
return srv.(RuntimeServer).Update(ctx, in)
|
|
|
|
|
}
|
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
|
Server: srv,
|
|
|
|
|
FullMethod: "/go.micro.runtime.Runtime/Update",
|
|
|
|
|
}
|
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
return srv.(RuntimeServer).Update(ctx, req.(*UpdateRequest))
|
|
|
|
|
}
|
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func _Runtime_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
|
in := new(ListRequest)
|
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
if interceptor == nil {
|
|
|
|
|
return srv.(RuntimeServer).List(ctx, in)
|
|
|
|
|
}
|
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
|
Server: srv,
|
|
|
|
|
FullMethod: "/go.micro.runtime.Runtime/List",
|
|
|
|
|
}
|
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
return srv.(RuntimeServer).List(ctx, req.(*ListRequest))
|
|
|
|
|
}
|
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var _Runtime_serviceDesc = grpc.ServiceDesc{
|
|
|
|
|
ServiceName: "go.micro.runtime.Runtime",
|
|
|
|
|
HandlerType: (*RuntimeServer)(nil),
|
|
|
|
|
Methods: []grpc.MethodDesc{
|
|
|
|
|
{
|
|
|
|
|
MethodName: "Create",
|
|
|
|
|
Handler: _Runtime_Create_Handler,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
MethodName: "Delete",
|
|
|
|
|
Handler: _Runtime_Delete_Handler,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
MethodName: "Update",
|
|
|
|
|
Handler: _Runtime_Update_Handler,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
MethodName: "List",
|
|
|
|
|
Handler: _Runtime_List_Handler,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
Streams: []grpc.StreamDesc{},
|
|
|
|
|
Metadata: "micro/go-micro/runtime/service/proto/runtime.proto",
|
|
|
|
|
func init() { proto.RegisterFile("runtime.proto", fileDescriptor_86e2dd377c869464) }
|
|
|
|
|
|
|
|
|
|
var fileDescriptor_86e2dd377c869464 = []byte{
|
|
|
|
|
// 425 bytes of a gzipped FileDescriptorProto
|
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x54, 0xc9, 0xcb, 0xd3, 0x40,
|
|
|
|
|
0x14, 0xff, 0xda, 0xd4, 0x44, 0x5f, 0x8c, 0x94, 0x39, 0xc8, 0x58, 0x5c, 0xca, 0x1c, 0xc4, 0x53,
|
|
|
|
|
0x0e, 0x2d, 0x0a, 0x9e, 0x8d, 0xf4, 0x62, 0x11, 0x52, 0x04, 0xaf, 0x31, 0x7d, 0x68, 0xc0, 0x64,
|
|
|
|
|
0x62, 0x66, 0x52, 0xbd, 0x79, 0xf2, 0xff, 0x96, 0xd9, 0xba, 0xa4, 0x93, 0xef, 0xd2, 0xdb, 0xbc,
|
|
|
|
|
0xa5, 0xbf, 0xf7, 0x5b, 0x4a, 0x20, 0xe9, 0xfa, 0x46, 0x56, 0x35, 0xa6, 0x6d, 0xc7, 0x25, 0x27,
|
|
|
|
|
0xf3, 0xef, 0x3c, 0xad, 0xab, 0xb2, 0xe3, 0xa9, 0xed, 0xb3, 0xdf, 0x10, 0xed, 0xb0, 0x3b, 0x54,
|
|
|
|
|
0x25, 0x12, 0x02, 0xb3, 0xa6, 0xa8, 0x91, 0x4e, 0x96, 0x93, 0x37, 0x8f, 0x72, 0xfd, 0x26, 0x14,
|
|
|
|
|
0xa2, 0x03, 0x76, 0xa2, 0xe2, 0x0d, 0x9d, 0xea,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