config.pb.go 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. package command
  2. import proto "github.com/golang/protobuf/proto"
  3. import fmt "fmt"
  4. import math "math"
  5. import (
  6. "context"
  7. grpc "google.golang.org/grpc"
  8. )
  9. // Reference imports to suppress errors if they are not otherwise used.
  10. var _ = proto.Marshal
  11. var _ = fmt.Errorf
  12. var _ = math.Inf
  13. // This is a compile-time assertion to ensure that this generated file
  14. // is compatible with the proto package it is being compiled against.
  15. // A compilation error at this line likely means your copy of the
  16. // proto package needs to be updated.
  17. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  18. type Config struct {
  19. }
  20. func (m *Config) Reset() { *m = Config{} }
  21. func (m *Config) String() string { return proto.CompactTextString(m) }
  22. func (*Config) ProtoMessage() {}
  23. func (*Config) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  24. type RestartLoggerRequest struct {
  25. }
  26. func (m *RestartLoggerRequest) Reset() { *m = RestartLoggerRequest{} }
  27. func (m *RestartLoggerRequest) String() string { return proto.CompactTextString(m) }
  28. func (*RestartLoggerRequest) ProtoMessage() {}
  29. func (*RestartLoggerRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
  30. type RestartLoggerResponse struct {
  31. }
  32. func (m *RestartLoggerResponse) Reset() { *m = RestartLoggerResponse{} }
  33. func (m *RestartLoggerResponse) String() string { return proto.CompactTextString(m) }
  34. func (*RestartLoggerResponse) ProtoMessage() {}
  35. func (*RestartLoggerResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
  36. func init() {
  37. proto.RegisterType((*Config)(nil), "v2ray.core.app.log.command.Config")
  38. proto.RegisterType((*RestartLoggerRequest)(nil), "v2ray.core.app.log.command.RestartLoggerRequest")
  39. proto.RegisterType((*RestartLoggerResponse)(nil), "v2ray.core.app.log.command.RestartLoggerResponse")
  40. }
  41. // Reference imports to suppress errors if they are not otherwise used.
  42. var _ context.Context
  43. var _ grpc.ClientConn
  44. // This is a compile-time assertion to ensure that this generated file
  45. // is compatible with the grpc package it is being compiled against.
  46. const _ = grpc.SupportPackageIsVersion4
  47. // Client API for LoggerService service
  48. type LoggerServiceClient interface {
  49. RestartLogger(ctx context.Context, in *RestartLoggerRequest, opts ...grpc.CallOption) (*RestartLoggerResponse, error)
  50. }
  51. type loggerServiceClient struct {
  52. cc *grpc.ClientConn
  53. }
  54. func NewLoggerServiceClient(cc *grpc.ClientConn) LoggerServiceClient {
  55. return &loggerServiceClient{cc}
  56. }
  57. func (c *loggerServiceClient) RestartLogger(ctx context.Context, in *RestartLoggerRequest, opts ...grpc.CallOption) (*RestartLoggerResponse, error) {
  58. out := new(RestartLoggerResponse)
  59. err := grpc.Invoke(ctx, "/v2ray.core.app.log.command.LoggerService/RestartLogger", in, out, c.cc, opts...)
  60. if err != nil {
  61. return nil, err
  62. }
  63. return out, nil
  64. }
  65. // Server API for LoggerService service
  66. type LoggerServiceServer interface {
  67. RestartLogger(context.Context, *RestartLoggerRequest) (*RestartLoggerResponse, error)
  68. }
  69. func RegisterLoggerServiceServer(s *grpc.Server, srv LoggerServiceServer) {
  70. s.RegisterService(&_LoggerService_serviceDesc, srv)
  71. }
  72. func _LoggerService_RestartLogger_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  73. in := new(RestartLoggerRequest)
  74. if err := dec(in); err != nil {
  75. return nil, err
  76. }
  77. if interceptor == nil {
  78. return srv.(LoggerServiceServer).RestartLogger(ctx, in)
  79. }
  80. info := &grpc.UnaryServerInfo{
  81. Server: srv,
  82. FullMethod: "/v2ray.core.app.log.command.LoggerService/RestartLogger",
  83. }
  84. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  85. return srv.(LoggerServiceServer).RestartLogger(ctx, req.(*RestartLoggerRequest))
  86. }
  87. return interceptor(ctx, in, info, handler)
  88. }
  89. var _LoggerService_serviceDesc = grpc.ServiceDesc{
  90. ServiceName: "v2ray.core.app.log.command.LoggerService",
  91. HandlerType: (*LoggerServiceServer)(nil),
  92. Methods: []grpc.MethodDesc{
  93. {
  94. MethodName: "RestartLogger",
  95. Handler: _LoggerService_RestartLogger_Handler,
  96. },
  97. },
  98. Streams: []grpc.StreamDesc{},
  99. Metadata: "v2ray.com/core/app/log/command/config.proto",
  100. }
  101. func init() { proto.RegisterFile("v2ray.com/core/app/log/command/config.proto", fileDescriptor0) }
  102. var fileDescriptor0 = []byte{
  103. // 210 bytes of a gzipped FileDescriptorProto
  104. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x2e, 0x33, 0x2a, 0x4a,
  105. 0xac, 0xd4, 0x4b, 0xce, 0xcf, 0xd5, 0x4f, 0xce, 0x2f, 0x4a, 0xd5, 0x4f, 0x2c, 0x28, 0xd0, 0xcf,
  106. 0xc9, 0x4f, 0xd7, 0x4f, 0xce, 0xcf, 0xcd, 0x4d, 0xcc, 0x4b, 0xd1, 0x4f, 0xce, 0xcf, 0x4b, 0xcb,
  107. 0x4c, 0xd7, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x92, 0x82, 0x29, 0x2e, 0x4a, 0xd5, 0x4b, 0x2c,
  108. 0x28, 0xd0, 0xcb, 0xc9, 0x4f, 0xd7, 0x83, 0x2a, 0x54, 0xe2, 0xe0, 0x62, 0x73, 0x06, 0xab, 0x55,
  109. 0x12, 0xe3, 0x12, 0x09, 0x4a, 0x2d, 0x2e, 0x49, 0x2c, 0x2a, 0xf1, 0xc9, 0x4f, 0x4f, 0x4f, 0x2d,
  110. 0x0a, 0x4a, 0x2d, 0x2c, 0x4d, 0x2d, 0x2e, 0x51, 0x12, 0xe7, 0x12, 0x45, 0x13, 0x2f, 0x2e, 0xc8,
  111. 0xcf, 0x2b, 0x4e, 0x35, 0x6a, 0x67, 0xe4, 0xe2, 0x85, 0x08, 0x05, 0xa7, 0x16, 0x95, 0x65, 0x26,
  112. 0xa7, 0x0a, 0x95, 0x71, 0xf1, 0xa2, 0x28, 0x15, 0x32, 0xd0, 0xc3, 0x6d, 0xb5, 0x1e, 0x36, 0xdb,
  113. 0xa4, 0x0c, 0x49, 0xd0, 0x01, 0x71, 0x87, 0x12, 0x83, 0x93, 0x07, 0x97, 0x5c, 0x72, 0x7e, 0x2e,
  114. 0x1e, 0x9d, 0x01, 0x8c, 0x51, 0xec, 0x50, 0xe6, 0x2a, 0x26, 0xa9, 0x30, 0xa3, 0xa0, 0xc4, 0x4a,
  115. 0x3d, 0x67, 0x90, 0x3a, 0xc7, 0x82, 0x02, 0x3d, 0x9f, 0xfc, 0x74, 0x3d, 0x67, 0x88, 0x64, 0x12,
  116. 0x1b, 0x38, 0xc4, 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0x37, 0xc7, 0xfc, 0xda, 0x60, 0x01,
  117. 0x00, 0x00,
  118. }