houston package 독립

This commit is contained in:
2023-05-21 23:37:54 +09:00
commit 3e8c79a48b
20 changed files with 3152 additions and 0 deletions

View File

@ -0,0 +1,105 @@
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.2.0
// - protoc v3.21.10
// source: protos/monitor.proto
package protos
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
// 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.
type MonitorClient interface {
Report(ctx context.Context, in *Metrics, opts ...grpc.CallOption) (*Empty, error)
}
type monitorClient struct {
cc grpc.ClientConnInterface
}
func NewMonitorClient(cc grpc.ClientConnInterface) MonitorClient {
return &monitorClient{cc}
}
func (c *monitorClient) Report(ctx context.Context, in *Metrics, opts ...grpc.CallOption) (*Empty, error) {
out := new(Empty)
err := c.cc.Invoke(ctx, "/Monitor/Report", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// MonitorServer is the server API for Monitor service.
// All implementations must embed UnimplementedMonitorServer
// for forward compatibility
type MonitorServer interface {
Report(context.Context, *Metrics) (*Empty, error)
mustEmbedUnimplementedMonitorServer()
}
// UnimplementedMonitorServer must be embedded to have forward compatible implementations.
type UnimplementedMonitorServer struct {
}
func (UnimplementedMonitorServer) Report(context.Context, *Metrics) (*Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method Report not implemented")
}
func (UnimplementedMonitorServer) mustEmbedUnimplementedMonitorServer() {}
// 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.
type UnsafeMonitorServer interface {
mustEmbedUnimplementedMonitorServer()
}
func RegisterMonitorServer(s grpc.ServiceRegistrar, srv MonitorServer) {
s.RegisterService(&Monitor_ServiceDesc, srv)
}
func _Monitor_Report_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(Metrics)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MonitorServer).Report(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/Monitor/Report",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MonitorServer).Report(ctx, req.(*Metrics))
}
return interceptor(ctx, in, info, handler)
}
// 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)
var Monitor_ServiceDesc = grpc.ServiceDesc{
ServiceName: "Monitor",
HandlerType: (*MonitorServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Report",
Handler: _Monitor_Report_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "protos/monitor.proto",
}