Rainbond/appruntimesync/pb/app_runtime_sync.pb.go
2018-07-04 10:48:02 +08:00

391 lines
14 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
DiskMessage
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 DiskMessage struct {
Disks map[string]float64 `protobuf:"bytes,1,rep,name=disks" json:"disks,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"fixed64,2,opt,name=value"`
}
func (m *DiskMessage) Reset() { *m = DiskMessage{} }
func (m *DiskMessage) String() string { return proto.CompactTextString(m) }
func (*DiskMessage) ProtoMessage() {}
func (*DiskMessage) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
func (m *DiskMessage) GetDisks() map[string]float64 {
if m != nil {
return m.Disks
}
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{4} }
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((*DiskMessage)(nil), "pb.DiskMessage")
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)
GetAppDisk(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*DiskMessage, 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) GetAppDisk(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*DiskMessage, error) {
out := new(DiskMessage)
err := grpc.Invoke(ctx, "/pb.AppRuntimeSync/GetAppDisk", 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)
GetAppDisk(context.Context, *StatusRequest) (*DiskMessage, 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_GetAppDisk_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).GetAppDisk(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.AppRuntimeSync/GetAppDisk",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AppRuntimeSyncServer).GetAppDisk(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: "GetAppDisk",
Handler: _AppRuntimeSync_GetAppDisk_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{
// 361 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0xc1, 0x4e, 0xc2, 0x40,
0x10, 0x86, 0x69, 0x11, 0x8c, 0x53, 0x44,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