Documentation ¶
Index ¶
- Variables
- func RegisterMonitorServer(s grpc.ServiceRegistrar, srv MonitorServer)
- type MonitorClient
- type MonitorServer
- type RequestAddService
- func (*RequestAddService) Descriptor() ([]byte, []int)deprecated
- func (x *RequestAddService) GetGroupType() string
- func (x *RequestAddService) GetKey() string
- func (x *RequestAddService) GetRepo() string
- func (*RequestAddService) ProtoMessage()
- func (x *RequestAddService) ProtoReflect() protoreflect.Message
- func (x *RequestAddService) Reset()
- func (x *RequestAddService) String() string
- type RequestDelService
- func (*RequestDelService) Descriptor() ([]byte, []int)deprecated
- func (x *RequestDelService) GetGroupType() string
- func (x *RequestDelService) GetKey() string
- func (*RequestDelService) ProtoMessage()
- func (x *RequestDelService) ProtoReflect() protoreflect.Message
- func (x *RequestDelService) Reset()
- func (x *RequestDelService) String() string
- type RequestRebuildService
- func (*RequestRebuildService) Descriptor() ([]byte, []int)deprecated
- func (x *RequestRebuildService) GetGroupType() string
- func (x *RequestRebuildService) GetKey() string
- func (*RequestRebuildService) ProtoMessage()
- func (x *RequestRebuildService) ProtoReflect() protoreflect.Message
- func (x *RequestRebuildService) Reset()
- func (x *RequestRebuildService) String() string
- type RequestSetService
- func (*RequestSetService) Descriptor() ([]byte, []int)deprecated
- func (x *RequestSetService) GetCommand() msaUtils.Commands
- func (x *RequestSetService) GetGroupType() string
- func (x *RequestSetService) GetKey() string
- func (*RequestSetService) ProtoMessage()
- func (x *RequestSetService) ProtoReflect() protoreflect.Message
- func (x *RequestSetService) Reset()
- func (x *RequestSetService) String() string
- type Response
- type UnimplementedMonitorServer
- func (UnimplementedMonitorServer) AddService(context.Context, *RequestAddService) (*Response, error)
- func (UnimplementedMonitorServer) DeleteService(context.Context, *RequestDelService) (*Response, error)
- func (UnimplementedMonitorServer) RebuildService(context.Context, *RequestRebuildService) (*Response, error)
- func (UnimplementedMonitorServer) SetService(context.Context, *RequestSetService) (*Response, error)
- type UnsafeMonitorServer
Constants ¶
This section is empty.
Variables ¶
var File_proto_msa_monitor_proto protoreflect.FileDescriptor
var Monitor_ServiceDesc = grpc.ServiceDesc{ ServiceName: "msaMonitor.Monitor", HandlerType: (*MonitorServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "AddService", Handler: _Monitor_AddService_Handler, }, { MethodName: "DeleteService", Handler: _Monitor_DeleteService_Handler, }, { MethodName: "RebuildService", Handler: _Monitor_RebuildService_Handler, }, { MethodName: "SetService", Handler: _Monitor_SetService_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "msa/proto/msaMonitor.proto", }
Monitor_ServiceDesc is the grpc.ServiceDesc for Monitor service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMonitorServer ¶
func RegisterMonitorServer(s grpc.ServiceRegistrar, srv MonitorServer)
Types ¶
type MonitorClient ¶
type MonitorClient interface { AddService(ctx context.Context, in *RequestAddService, opts ...grpc.CallOption) (*Response, error) DeleteService(ctx context.Context, in *RequestDelService, opts ...grpc.CallOption) (*Response, error) RebuildService(ctx context.Context, in *RequestRebuildService, opts ...grpc.CallOption) (*Response, error) SetService(ctx context.Context, in *RequestSetService, opts ...grpc.CallOption) (*Response, error) }
MonitorClient is the client API for Monitor service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewMonitorClient ¶
func NewMonitorClient(cc grpc.ClientConnInterface) MonitorClient
type MonitorServer ¶
type MonitorServer interface { AddService(context.Context, *RequestAddService) (*Response, error) DeleteService(context.Context, *RequestDelService) (*Response, error) RebuildService(context.Context, *RequestRebuildService) (*Response, error) SetService(context.Context, *RequestSetService) (*Response, error) // contains filtered or unexported methods }
MonitorServer is the server API for Monitor service. All implementations must embed UnimplementedMonitorServer for forward compatibility
type RequestAddService ¶
type RequestAddService struct { Repo string `protobuf:"bytes,1,opt,name=Repo,proto3" json:"Repo,omitempty"` GroupType string `protobuf:"bytes,2,opt,name=GroupType,proto3" json:"GroupType,omitempty"` Key string `protobuf:"bytes,3,opt,name=Key,proto3" json:"Key,omitempty"` // contains filtered or unexported fields }
func (*RequestAddService) Descriptor
deprecated
func (*RequestAddService) Descriptor() ([]byte, []int)
Deprecated: Use RequestAddService.ProtoReflect.Descriptor instead.
func (*RequestAddService) GetGroupType ¶
func (x *RequestAddService) GetGroupType() string
func (*RequestAddService) GetKey ¶
func (x *RequestAddService) GetKey() string
func (*RequestAddService) GetRepo ¶
func (x *RequestAddService) GetRepo() string
func (*RequestAddService) ProtoMessage ¶
func (*RequestAddService) ProtoMessage()
func (*RequestAddService) ProtoReflect ¶
func (x *RequestAddService) ProtoReflect() protoreflect.Message
func (*RequestAddService) Reset ¶
func (x *RequestAddService) Reset()
func (*RequestAddService) String ¶
func (x *RequestAddService) String() string
type RequestDelService ¶
type RequestDelService struct { GroupType string `protobuf:"bytes,1,opt,name=GroupType,proto3" json:"GroupType,omitempty"` Key string `protobuf:"bytes,2,opt,name=Key,proto3" json:"Key,omitempty"` // contains filtered or unexported fields }
func (*RequestDelService) Descriptor
deprecated
func (*RequestDelService) Descriptor() ([]byte, []int)
Deprecated: Use RequestDelService.ProtoReflect.Descriptor instead.
func (*RequestDelService) GetGroupType ¶
func (x *RequestDelService) GetGroupType() string
func (*RequestDelService) GetKey ¶
func (x *RequestDelService) GetKey() string
func (*RequestDelService) ProtoMessage ¶
func (*RequestDelService) ProtoMessage()
func (*RequestDelService) ProtoReflect ¶
func (x *RequestDelService) ProtoReflect() protoreflect.Message
func (*RequestDelService) Reset ¶
func (x *RequestDelService) Reset()
func (*RequestDelService) String ¶
func (x *RequestDelService) String() string
type RequestRebuildService ¶
type RequestRebuildService struct { GroupType string `protobuf:"bytes,1,opt,name=GroupType,proto3" json:"GroupType,omitempty"` Key string `protobuf:"bytes,2,opt,name=Key,proto3" json:"Key,omitempty"` // contains filtered or unexported fields }
func (*RequestRebuildService) Descriptor
deprecated
func (*RequestRebuildService) Descriptor() ([]byte, []int)
Deprecated: Use RequestRebuildService.ProtoReflect.Descriptor instead.
func (*RequestRebuildService) GetGroupType ¶
func (x *RequestRebuildService) GetGroupType() string
func (*RequestRebuildService) GetKey ¶
func (x *RequestRebuildService) GetKey() string
func (*RequestRebuildService) ProtoMessage ¶
func (*RequestRebuildService) ProtoMessage()
func (*RequestRebuildService) ProtoReflect ¶
func (x *RequestRebuildService) ProtoReflect() protoreflect.Message
func (*RequestRebuildService) Reset ¶
func (x *RequestRebuildService) Reset()
func (*RequestRebuildService) String ¶
func (x *RequestRebuildService) String() string
type RequestSetService ¶
type RequestSetService struct { GroupType string `protobuf:"bytes,1,opt,name=GroupType,proto3" json:"GroupType,omitempty"` Key string `protobuf:"bytes,2,opt,name=Key,proto3" json:"Key,omitempty"` Command msaUtils.Commands `protobuf:"varint,3,opt,name=Command,proto3,enum=msaUtils.Commands" json:"Command,omitempty"` // contains filtered or unexported fields }
func (*RequestSetService) Descriptor
deprecated
func (*RequestSetService) Descriptor() ([]byte, []int)
Deprecated: Use RequestSetService.ProtoReflect.Descriptor instead.
func (*RequestSetService) GetCommand ¶
func (x *RequestSetService) GetCommand() msaUtils.Commands
func (*RequestSetService) GetGroupType ¶
func (x *RequestSetService) GetGroupType() string
func (*RequestSetService) GetKey ¶
func (x *RequestSetService) GetKey() string
func (*RequestSetService) ProtoMessage ¶
func (*RequestSetService) ProtoMessage()
func (*RequestSetService) ProtoReflect ¶
func (x *RequestSetService) ProtoReflect() protoreflect.Message
func (*RequestSetService) Reset ¶
func (x *RequestSetService) Reset()
func (*RequestSetService) String ¶
func (x *RequestSetService) String() string
type Response ¶
type Response struct { Success bool `protobuf:"varint,1,opt,name=Success,proto3" json:"Success,omitempty"` // contains filtered or unexported fields }
func (*Response) Descriptor
deprecated
func (*Response) GetSuccess ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type UnimplementedMonitorServer ¶
type UnimplementedMonitorServer struct { }
UnimplementedMonitorServer must be embedded to have forward compatible implementations.
func (UnimplementedMonitorServer) AddService ¶
func (UnimplementedMonitorServer) AddService(context.Context, *RequestAddService) (*Response, error)
func (UnimplementedMonitorServer) DeleteService ¶
func (UnimplementedMonitorServer) DeleteService(context.Context, *RequestDelService) (*Response, error)
func (UnimplementedMonitorServer) RebuildService ¶
func (UnimplementedMonitorServer) RebuildService(context.Context, *RequestRebuildService) (*Response, error)
func (UnimplementedMonitorServer) SetService ¶
func (UnimplementedMonitorServer) SetService(context.Context, *RequestSetService) (*Response, error)
type UnsafeMonitorServer ¶
type UnsafeMonitorServer interface {
// contains filtered or unexported methods
}
UnsafeMonitorServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MonitorServer will result in compilation errors.