mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-04 04:38:04 +08:00
338 lines
12 KiB
Go
338 lines
12 KiB
Go
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||
|
// source: app_runtime_sync.proto
|
||
|
|
||
|
/*
|
||
|
Package pb is a generated protocol buffer package.
|
||
|
|
||
|
It is generated from these files:
|
||
|
app_runtime_sync.proto
|
||
|
|
||
|
It has these top-level messages:
|
||
|
Ignore
|
||
|
StatusRequest
|
||
|
StatusMessage
|
||
|
ErrorMessage
|
||
|
*/
|
||
|
package pb
|
||
|
|
||
|
import proto "github.com/golang/protobuf/proto"
|
||
|
import fmt "fmt"
|
||
|
import math "math"
|
||
|
|
||
|
import (
|
||
|
context "golang.org/x/net/context"
|
||
|
grpc "google.golang.org/grpc"
|
||
|
)
|
||
|
|
||
|
// Reference imports to suppress errors if they are not otherwise used.
|
||
|
var _ = proto.Marshal
|
||
|
var _ = fmt.Errorf
|
||
|
var _ = math.Inf
|
||
|
|
||
|
// This is a compile-time assertion to ensure that this generated file
|
||
|
// is compatible with the proto package it is being compiled against.
|
||
|
// A compilation error at this line likely means your copy of the
|
||
|
// proto package needs to be updated.
|
||
|
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||
|
|
||
|
type Ignore struct {
|
||
|
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (m *Ignore) Reset() { *m = Ignore{} }
|
||
|
func (m *Ignore) String() string { return proto.CompactTextString(m) }
|
||
|
func (*Ignore) ProtoMessage() {}
|
||
|
func (*Ignore) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
|
||
|
|
||
|
func (m *Ignore) GetName() string {
|
||
|
if m != nil {
|
||
|
return m.Name
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
type StatusRequest struct {
|
||
|
ServiceIds string `protobuf:"bytes,1,opt,name=service_ids,json=serviceIds" json:"service_ids,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (m *StatusRequest) Reset() { *m = StatusRequest{} }
|
||
|
func (m *StatusRequest) String() string { return proto.CompactTextString(m) }
|
||
|
func (*StatusRequest) ProtoMessage() {}
|
||
|
func (*StatusRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
|
||
|
|
||
|
func (m *StatusRequest) GetServiceIds() string {
|
||
|
if m != nil {
|
||
|
return m.ServiceIds
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
type StatusMessage struct {
|
||
|
Status map[string]string `protobuf:"bytes,1,rep,name=status" json:"status,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
||
|
}
|
||
|
|
||
|
func (m *StatusMessage) Reset() { *m = StatusMessage{} }
|
||
|
func (m *StatusMessage) String() string { return proto.CompactTextString(m) }
|
||
|
func (*StatusMessage) ProtoMessage() {}
|
||
|
func (*StatusMessage) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
|
||
|
|
||
|
func (m *StatusMessage) GetStatus() map[string]string {
|
||
|
if m != nil {
|
||
|
return m.Status
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
type ErrorMessage struct {
|
||
|
Message string `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (m *ErrorMessage) Reset() { *m = ErrorMessage{} }
|
||
|
func (m *ErrorMessage) String() string { return proto.CompactTextString(m) }
|
||
|
func (*ErrorMessage) ProtoMessage() {}
|
||
|
func (*ErrorMessage) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
|
||
|
|
||
|
func (m *ErrorMessage) GetMessage() string {
|
||
|
if m != nil {
|
||
|
return m.Message
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func init() {
|
||
|
proto.RegisterType((*Ignore)(nil), "pb.Ignore")
|
||
|
proto.RegisterType((*StatusRequest)(nil), "pb.StatusRequest")
|
||
|
proto.RegisterType((*StatusMessage)(nil), "pb.StatusMessage")
|
||
|
proto.RegisterType((*ErrorMessage)(nil), "pb.ErrorMessage")
|
||
|
}
|
||
|
|
||
|
// Reference imports to suppress 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
|
||
|
|
||
|
// Client API for AppRuntimeSync service
|
||
|
|
||
|
type AppRuntimeSyncClient interface {
|
||
|
GetAppStatus(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*StatusMessage, error)
|
||
|
SetAppStatus(ctx context.Context, in *StatusMessage, opts ...grpc.CallOption) (*ErrorMessage, error)
|
||
|
CheckAppStatus(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*ErrorMessage, error)
|
||
|
IgnoreDeleteEvent(ctx context.Context, in *Ignore, opts ...grpc.CallOption) (*ErrorMessage, error)
|
||
|
RmIgnoreDeleteEvent(ctx context.Context, in *Ignore, opts ...grpc.CallOption) (*ErrorMessage, error)
|
||
|
}
|
||
|
|
||
|
type appRuntimeSyncClient struct {
|
||
|
cc *grpc.ClientConn
|
||
|
}
|
||
|
|
||
|
func NewAppRuntimeSyncClient(cc *grpc.ClientConn) AppRuntimeSyncClient {
|
||
|
return &appRuntimeSyncClient{cc}
|
||
|
}
|
||
|
|
||
|
func (c *appRuntimeSyncClient) GetAppStatus(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*StatusMessage, error) {
|
||
|
out := new(StatusMessage)
|
||
|
err := grpc.Invoke(ctx, "/pb.AppRuntimeSync/GetAppStatus", in, out, c.cc, opts...)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return out, nil
|
||
|
}
|
||
|
|
||
|
func (c *appRuntimeSyncClient) SetAppStatus(ctx context.Context, in *StatusMessage, opts ...grpc.CallOption) (*ErrorMessage, error) {
|
||
|
out := new(ErrorMessage)
|
||
|
err := grpc.Invoke(ctx, "/pb.AppRuntimeSync/SetAppStatus", in, out, c.cc, opts...)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return out, nil
|
||
|
}
|
||
|
|
||
|
func (c *appRuntimeSyncClient) CheckAppStatus(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*ErrorMessage, error) {
|
||
|
out := new(ErrorMessage)
|
||
|
err := grpc.Invoke(ctx, "/pb.AppRuntimeSync/CheckAppStatus", in, out, c.cc, opts...)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return out, nil
|
||
|
}
|
||
|
|
||
|
func (c *appRuntimeSyncClient) IgnoreDeleteEvent(ctx context.Context, in *Ignore, opts ...grpc.CallOption) (*ErrorMessage, error) {
|
||
|
out := new(ErrorMessage)
|
||
|
err := grpc.Invoke(ctx, "/pb.AppRuntimeSync/IgnoreDeleteEvent", in, out, c.cc, opts...)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return out, nil
|
||
|
}
|
||
|
|
||
|
func (c *appRuntimeSyncClient) RmIgnoreDeleteEvent(ctx context.Context, in *Ignore, opts ...grpc.CallOption) (*ErrorMessage, error) {
|
||
|
out := new(ErrorMessage)
|
||
|
err := grpc.Invoke(ctx, "/pb.AppRuntimeSync/RmIgnoreDeleteEvent", in, out, c.cc, opts...)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return out, nil
|
||
|
}
|
||
|
|
||
|
// Server API for AppRuntimeSync service
|
||
|
|
||
|
type AppRuntimeSyncServer interface {
|
||
|
GetAppStatus(context.Context, *StatusRequest) (*StatusMessage, error)
|
||
|
SetAppStatus(context.Context, *StatusMessage) (*ErrorMessage, error)
|
||
|
CheckAppStatus(context.Context, *StatusRequest) (*ErrorMessage, error)
|
||
|
IgnoreDeleteEvent(context.Context, *Ignore) (*ErrorMessage, error)
|
||
|
RmIgnoreDeleteEvent(context.Context, *Ignore) (*ErrorMessage, error)
|
||
|
}
|
||
|
|
||
|
func RegisterAppRuntimeSyncServer(s *grpc.Server, srv AppRuntimeSyncServer) {
|
||
|
s.RegisterService(&_AppRuntimeSync_serviceDesc, srv)
|
||
|
}
|
||
|
|
||
|
func _AppRuntimeSync_GetAppStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||
|
in := new(StatusRequest)
|
||
|
if err := dec(in); err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
if interceptor == nil {
|
||
|
return srv.(AppRuntimeSyncServer).GetAppStatus(ctx, in)
|
||
|
}
|
||
|
info := &grpc.UnaryServerInfo{
|
||
|
Server: srv,
|
||
|
FullMethod: "/pb.AppRuntimeSync/GetAppStatus",
|
||
|
}
|
||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||
|
return srv.(AppRuntimeSyncServer).GetAppStatus(ctx, req.(*StatusRequest))
|
||
|
}
|
||
|
return interceptor(ctx, in, info, handler)
|
||
|
}
|
||
|
|
||
|
func _AppRuntimeSync_SetAppStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||
|
in := new(StatusMessage)
|
||
|
if err := dec(in); err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
if interceptor == nil {
|
||
|
return srv.(AppRuntimeSyncServer).SetAppStatus(ctx, in)
|
||
|
}
|
||
|
info := &grpc.UnaryServerInfo{
|
||
|
Server: srv,
|
||
|
FullMethod: "/pb.AppRuntimeSync/SetAppStatus",
|
||
|
}
|
||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||
|
return srv.(AppRuntimeSyncServer).SetAppStatus(ctx, req.(*StatusMessage))
|
||
|
}
|
||
|
return interceptor(ctx, in, info, handler)
|
||
|
}
|
||
|
|
||
|
func _AppRuntimeSync_CheckAppStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||
|
in := new(StatusRequest)
|
||
|
if err := dec(in); err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
if interceptor == nil {
|
||
|
return srv.(AppRuntimeSyncServer).CheckAppStatus(ctx, in)
|
||
|
}
|
||
|
info := &grpc.UnaryServerInfo{
|
||
|
Server: srv,
|
||
|
FullMethod: "/pb.AppRuntimeSync/CheckAppStatus",
|
||
|
}
|
||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||
|
return srv.(AppRuntimeSyncServer).CheckAppStatus(ctx, req.(*StatusRequest))
|
||
|
}
|
||
|
return interceptor(ctx, in, info, handler)
|
||
|
}
|
||
|
|
||
|
func _AppRuntimeSync_IgnoreDeleteEvent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||
|
in := new(Ignore)
|
||
|
if err := dec(in); err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
if interceptor == nil {
|
||
|
return srv.(AppRuntimeSyncServer).IgnoreDeleteEvent(ctx, in)
|
||
|
}
|
||
|
info := &grpc.UnaryServerInfo{
|
||
|
Server: srv,
|
||
|
FullMethod: "/pb.AppRuntimeSync/IgnoreDeleteEvent",
|
||
|
}
|
||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||
|
return srv.(AppRuntimeSyncServer).IgnoreDeleteEvent(ctx, req.(*Ignore))
|
||
|
}
|
||
|
return interceptor(ctx, in, info, handler)
|
||
|
}
|
||
|
|
||
|
func _AppRuntimeSync_RmIgnoreDeleteEvent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||
|
in := new(Ignore)
|
||
|
if err := dec(in); err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
if interceptor == nil {
|
||
|
return srv.(AppRuntimeSyncServer).RmIgnoreDeleteEvent(ctx, in)
|
||
|
}
|
||
|
info := &grpc.UnaryServerInfo{
|
||
|
Server: srv,
|
||
|
FullMethod: "/pb.AppRuntimeSync/RmIgnoreDeleteEvent",
|
||
|
}
|
||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||
|
return srv.(AppRuntimeSyncServer).RmIgnoreDeleteEvent(ctx, req.(*Ignore))
|
||
|
}
|
||
|
return interceptor(ctx, in, info, handler)
|
||
|
}
|
||
|
|
||
|
var _AppRuntimeSync_serviceDesc = grpc.ServiceDesc{
|
||
|
ServiceName: "pb.AppRuntimeSync",
|
||
|
HandlerType: (*AppRuntimeSyncServer)(nil),
|
||
|
Methods: []grpc.MethodDesc{
|
||
|
{
|
||
|
MethodName: "GetAppStatus",
|
||
|
Handler: _AppRuntimeSync_GetAppStatus_Handler,
|
||
|
},
|
||
|
{
|
||
|
MethodName: "SetAppStatus",
|
||
|
Handler: _AppRuntimeSync_SetAppStatus_Handler,
|
||
|
},
|
||
|
{
|
||
|
MethodName: "CheckAppStatus",
|
||
|
Handler: _AppRuntimeSync_CheckAppStatus_Handler,
|
||
|
},
|
||
|
{
|
||
|
MethodName: "IgnoreDeleteEvent",
|
||
|
Handler: _AppRuntimeSync_IgnoreDeleteEvent_Handler,
|
||
|
},
|
||
|
{
|
||
|
MethodName: "RmIgnoreDeleteEvent",
|
||
|
Handler: _AppRuntimeSync_RmIgnoreDeleteEvent_Handler,
|
||
|
},
|
||
|
},
|
||
|
Streams: []grpc.StreamDesc{},
|
||
|
Metadata: "app_runtime_sync.proto",
|
||
|
}
|
||
|
|
||
|
func init() { proto.RegisterFile("app_runtime_sync.proto", fileDescriptor0) }
|
||
|
|
||
|
var fileDescriptor0 = []byte{
|
||
|
// 314 bytes of a gzipped FileDescriptorProto
|
||
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0xcf, 0x4e, 0xc2, 0x40,
|
||
|
0x10, 0x87, 0x69, 0x51, 0x8c, 0x03, 0x12, 0x18, 0x8d,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