Remove unused GRPC service

This commit is contained in:
Zac Bergquist 2022-03-23 13:32:50 -06:00 committed by Zac Bergquist
parent 3dc33ccc32
commit 58b2aac411
2 changed files with 18 additions and 147 deletions

View file

@ -4,13 +4,8 @@
package events
import (
context "context"
fmt "fmt"
proto "github.com/gogo/protobuf/proto"
empty "github.com/golang/protobuf/ptypes/empty"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
io "io"
math "math"
math_bits "math/bits"
@ -215,142 +210,24 @@ func init() {
func init() { proto.RegisterFile("slice.proto", fileDescriptor_3fd6ee261cc16ff1) }
var fileDescriptor_3fd6ee261cc16ff1 = []byte{
// 323 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x91, 0xcf, 0x4e, 0xc2, 0x40,
0x10, 0xc6, 0x5d, 0x0b, 0x05, 0x06, 0x4e, 0x1b, 0x42, 0x36, 0x68, 0x9a, 0x86, 0x53, 0x0f, 0xa6,
0x24, 0xf8, 0x04, 0x2a, 0x98, 0x90, 0x18, 0x4d, 0x16, 0xe2, 0xbd, 0xc0, 0x80, 0x8d, 0xf4, 0x4f,
0xd8, 0xad, 0x91, 0xd7, 0xf0, 0x91, 0x3c, 0x79, 0xf4, 0x11, 0x0c, 0x4f, 0x62, 0x76, 0xb6, 0x58,
0xf5, 0xb6, 0xdf, 0xef, 0xfb, 0x76, 0x66, 0x32, 0x03, 0x6d, 0xb5, 0x8d, 0x97, 0x18, 0xe6, 0xbb,
0x4c, 0x67, 0xdc, 0xc5, 0x17, 0x4c, 0xb5, 0xea, 0x9f, 0x6d, 0xb2, 0x6c, 0xb3, 0xc5, 0x21, 0xd1,
0x45, 0xb1, 0x1e, 0x62, 0x92, 0xeb, 0xbd, 0x0d, 0x0d, 0xde, 0x18, 0x74, 0x66, 0xa8, 0x54, 0x9c,
0xa5, 0x33, 0xf3, 0x97, 0x9f, 0x43, 0x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, 0x07,
0x8f, 0x2d, 0x5c, 0x4a, 0x5c, 0x7e, 0x07, 0x00, 0x00, 0xff, 0xff, 0x85, 0xfe, 0x48, 0x73, 0xf6,
0x01, 0x00, 0x00,
}
// 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
// AuditLogClient is the client API for AuditLog service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type AuditLogClient interface {
SubmitSessionSlice(ctx context.Context, opts ...grpc.CallOption) (AuditLog_SubmitSessionSliceClient, error)
}
type auditLogClient struct {
cc *grpc.ClientConn
}
func NewAuditLogClient(cc *grpc.ClientConn) AuditLogClient {
return &auditLogClient{cc}
}
func (c *auditLogClient) SubmitSessionSlice(ctx context.Context, opts ...grpc.CallOption) (AuditLog_SubmitSessionSliceClient, error) {
stream, err := c.cc.NewStream(ctx, &_AuditLog_serviceDesc.Streams[0], "/events.AuditLog/SubmitSessionSlice", opts...)
if err != nil {
return nil, err
}
x := &auditLogSubmitSessionSliceClient{stream}
return x, nil
}
type AuditLog_SubmitSessionSliceClient interface {
Send(*SessionSlice) error
CloseAndRecv() (*empty.Empty, error)
grpc.ClientStream
}
type auditLogSubmitSessionSliceClient struct {
grpc.ClientStream
}
func (x *auditLogSubmitSessionSliceClient) Send(m *SessionSlice) error {
return x.ClientStream.SendMsg(m)
}
func (x *auditLogSubmitSessionSliceClient) CloseAndRecv() (*empty.Empty, error) {
if err := x.ClientStream.CloseSend(); err != nil {
return nil, err
}
m := new(empty.Empty)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
// AuditLogServer is the server API for AuditLog service.
type AuditLogServer interface {
SubmitSessionSlice(AuditLog_SubmitSessionSliceServer) error
}
// UnimplementedAuditLogServer can be embedded to have forward compatible implementations.
type UnimplementedAuditLogServer struct {
}
func (*UnimplementedAuditLogServer) SubmitSessionSlice(srv AuditLog_SubmitSessionSliceServer) error {
return status.Errorf(codes.Unimplemented, "method SubmitSessionSlice not implemented")
}
func RegisterAuditLogServer(s *grpc.Server, srv AuditLogServer) {
s.RegisterService(&_AuditLog_serviceDesc, srv)
}
func _AuditLog_SubmitSessionSlice_Handler(srv interface{}, stream grpc.ServerStream) error {
return srv.(AuditLogServer).SubmitSessionSlice(&auditLogSubmitSessionSliceServer{stream})
}
type AuditLog_SubmitSessionSliceServer interface {
SendAndClose(*empty.Empty) error
Recv() (*SessionSlice, error)
grpc.ServerStream
}
type auditLogSubmitSessionSliceServer struct {
grpc.ServerStream
}
func (x *auditLogSubmitSessionSliceServer) SendAndClose(m *empty.Empty) error {
return x.ServerStream.SendMsg(m)
}
func (x *auditLogSubmitSessionSliceServer) Recv() (*SessionSlice, error) {
m := new(SessionSlice)
if err := x.ServerStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
var _AuditLog_serviceDesc = grpc.ServiceDesc{
ServiceName: "events.AuditLog",
HandlerType: (*AuditLogServer)(nil),
Methods: []grpc.MethodDesc{},
Streams: []grpc.StreamDesc{
{
StreamName: "SubmitSessionSlice",
Handler: _AuditLog_SubmitSessionSlice_Handler,
ClientStreams: true,
},
},
Metadata: "slice.proto",
// 263 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x4c, 0x90, 0x31, 0x4e, 0xc3, 0x30,
0x14, 0x86, 0x65, 0xdc, 0xba, 0xe4, 0x35, 0x93, 0x55, 0xa1, 0x37, 0xa0, 0x28, 0xea, 0x94, 0x01,
0x65, 0x80, 0x1b, 0x40, 0x18, 0xba, 0x80, 0xe4, 0x56, 0xec, 0xa6, 0xbc, 0x8a, 0x88, 0x36, 0x89,
0xea, 0x80, 0xe8, 0x35, 0x38, 0x12, 0x13, 0x23, 0x47, 0x40, 0x39, 0x09, 0xf2, 0x73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78, 0x54, 0xfc, 0xed, 0x57, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x87,
0xfe, 0xfc, 0xe5, 0x85, 0x01, 0x00, 0x00,
}
func (m *SessionSlice) Marshal() (dAtA []byte, err error) {

View file

@ -15,8 +15,6 @@
syntax = "proto3";
package events;
import "google/protobuf/empty.proto";
// SessionSlice is a slice of submitted chunks
message SessionSlice {
// Namespace is a session namespace
@ -47,7 +45,3 @@ message SessionChunk {
// Delay is a delay from the previous event in milliseconds
int64 Delay = 8;
}
service AuditLog {
rpc SubmitSessionSlice(stream SessionSlice) returns (google.protobuf.Empty) {}
}