config.pb.go 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. package command
  2. import (
  3. fmt "fmt"
  4. math "math"
  5. proto "github.com/golang/protobuf/proto"
  6. )
  7. import (
  8. "context"
  9. grpc "google.golang.org/grpc"
  10. )
  11. // Reference imports to suppress errors if they are not otherwise used.
  12. var _ = proto.Marshal
  13. var _ = fmt.Errorf
  14. var _ = math.Inf
  15. // This is a compile-time assertion to ensure that this generated file
  16. // is compatible with the proto package it is being compiled against.
  17. // A compilation error at this line likely means your copy of the
  18. // proto package needs to be updated.
  19. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  20. type Config struct {
  21. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  22. XXX_unrecognized []byte `json:"-"`
  23. XXX_sizecache int32 `json:"-"`
  24. }
  25. func (m *Config) Reset() { *m = Config{} }
  26. func (m *Config) String() string { return proto.CompactTextString(m) }
  27. func (*Config) ProtoMessage() {}
  28. func (*Config) Descriptor() ([]byte, []int) {
  29. return fileDescriptor_46d95b63a682e4a6, []int{0}
  30. }
  31. func (m *Config) XXX_Unmarshal(b []byte) error {
  32. return xxx_messageInfo_Config.Unmarshal(m, b)
  33. }
  34. func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  35. return xxx_messageInfo_Config.Marshal(b, m, deterministic)
  36. }
  37. func (m *Config) XXX_Merge(src proto.Message) {
  38. xxx_messageInfo_Config.Merge(m, src)
  39. }
  40. func (m *Config) XXX_Size() int {
  41. return xxx_messageInfo_Config.Size(m)
  42. }
  43. func (m *Config) XXX_DiscardUnknown() {
  44. xxx_messageInfo_Config.DiscardUnknown(m)
  45. }
  46. var xxx_messageInfo_Config proto.InternalMessageInfo
  47. type RestartLoggerRequest struct {
  48. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  49. XXX_unrecognized []byte `json:"-"`
  50. XXX_sizecache int32 `json:"-"`
  51. }
  52. func (m *RestartLoggerRequest) Reset() { *m = RestartLoggerRequest{} }
  53. func (m *RestartLoggerRequest) String() string { return proto.CompactTextString(m) }
  54. func (*RestartLoggerRequest) ProtoMessage() {}
  55. func (*RestartLoggerRequest) Descriptor() ([]byte, []int) {
  56. return fileDescriptor_46d95b63a682e4a6, []int{1}
  57. }
  58. func (m *RestartLoggerRequest) XXX_Unmarshal(b []byte) error {
  59. return xxx_messageInfo_RestartLoggerRequest.Unmarshal(m, b)
  60. }
  61. func (m *RestartLoggerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  62. return xxx_messageInfo_RestartLoggerRequest.Marshal(b, m, deterministic)
  63. }
  64. func (m *RestartLoggerRequest) XXX_Merge(src proto.Message) {
  65. xxx_messageInfo_RestartLoggerRequest.Merge(m, src)
  66. }
  67. func (m *RestartLoggerRequest) XXX_Size() int {
  68. return xxx_messageInfo_RestartLoggerRequest.Size(m)
  69. }
  70. func (m *RestartLoggerRequest) XXX_DiscardUnknown() {
  71. xxx_messageInfo_RestartLoggerRequest.DiscardUnknown(m)
  72. }
  73. var xxx_messageInfo_RestartLoggerRequest proto.InternalMessageInfo
  74. type RestartLoggerResponse struct {
  75. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  76. XXX_unrecognized []byte `json:"-"`
  77. XXX_sizecache int32 `json:"-"`
  78. }
  79. func (m *RestartLoggerResponse) Reset() { *m = RestartLoggerResponse{} }
  80. func (m *RestartLoggerResponse) String() string { return proto.CompactTextString(m) }
  81. func (*RestartLoggerResponse) ProtoMessage() {}
  82. func (*RestartLoggerResponse) Descriptor() ([]byte, []int) {
  83. return fileDescriptor_46d95b63a682e4a6, []int{2}
  84. }
  85. func (m *RestartLoggerResponse) XXX_Unmarshal(b []byte) error {
  86. return xxx_messageInfo_RestartLoggerResponse.Unmarshal(m, b)
  87. }
  88. func (m *RestartLoggerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  89. return xxx_messageInfo_RestartLoggerResponse.Marshal(b, m, deterministic)
  90. }
  91. func (m *RestartLoggerResponse) XXX_Merge(src proto.Message) {
  92. xxx_messageInfo_RestartLoggerResponse.Merge(m, src)
  93. }
  94. func (m *RestartLoggerResponse) XXX_Size() int {
  95. return xxx_messageInfo_RestartLoggerResponse.Size(m)
  96. }
  97. func (m *RestartLoggerResponse) XXX_DiscardUnknown() {
  98. xxx_messageInfo_RestartLoggerResponse.DiscardUnknown(m)
  99. }
  100. var xxx_messageInfo_RestartLoggerResponse proto.InternalMessageInfo
  101. func init() {
  102. proto.RegisterType((*Config)(nil), "v2ray.core.app.log.command.Config")
  103. proto.RegisterType((*RestartLoggerRequest)(nil), "v2ray.core.app.log.command.RestartLoggerRequest")
  104. proto.RegisterType((*RestartLoggerResponse)(nil), "v2ray.core.app.log.command.RestartLoggerResponse")
  105. }
  106. // Reference imports to suppress errors if they are not otherwise used.
  107. var _ context.Context
  108. var _ grpc.ClientConn
  109. // This is a compile-time assertion to ensure that this generated file
  110. // is compatible with the grpc package it is being compiled against.
  111. const _ = grpc.SupportPackageIsVersion4
  112. // LoggerServiceClient is the client API for LoggerService service.
  113. //
  114. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  115. type LoggerServiceClient interface {
  116. RestartLogger(ctx context.Context, in *RestartLoggerRequest, opts ...grpc.CallOption) (*RestartLoggerResponse, error)
  117. }
  118. type loggerServiceClient struct {
  119. cc *grpc.ClientConn
  120. }
  121. func NewLoggerServiceClient(cc *grpc.ClientConn) LoggerServiceClient {
  122. return &loggerServiceClient{cc}
  123. }
  124. func (c *loggerServiceClient) RestartLogger(ctx context.Context, in *RestartLoggerRequest, opts ...grpc.CallOption) (*RestartLoggerResponse, error) {
  125. out := new(RestartLoggerResponse)
  126. err := c.cc.Invoke(ctx, "/v2ray.core.app.log.command.LoggerService/RestartLogger", in, out, opts...)
  127. if err != nil {
  128. return nil, err
  129. }
  130. return out, nil
  131. }
  132. // LoggerServiceServer is the server API for LoggerService service.
  133. type LoggerServiceServer interface {
  134. RestartLogger(context.Context, *RestartLoggerRequest) (*RestartLoggerResponse, error)
  135. }
  136. func RegisterLoggerServiceServer(s *grpc.Server, srv LoggerServiceServer) {
  137. s.RegisterService(&_LoggerService_serviceDesc, srv)
  138. }
  139. func _LoggerService_RestartLogger_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  140. in := new(RestartLoggerRequest)
  141. if err := dec(in); err != nil {
  142. return nil, err
  143. }
  144. if interceptor == nil {
  145. return srv.(LoggerServiceServer).RestartLogger(ctx, in)
  146. }
  147. info := &grpc.UnaryServerInfo{
  148. Server: srv,
  149. FullMethod: "/v2ray.core.app.log.command.LoggerService/RestartLogger",
  150. }
  151. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  152. return srv.(LoggerServiceServer).RestartLogger(ctx, req.(*RestartLoggerRequest))
  153. }
  154. return interceptor(ctx, in, info, handler)
  155. }
  156. var _LoggerService_serviceDesc = grpc.ServiceDesc{
  157. ServiceName: "v2ray.core.app.log.command.LoggerService",
  158. HandlerType: (*LoggerServiceServer)(nil),
  159. Methods: []grpc.MethodDesc{
  160. {
  161. MethodName: "RestartLogger",
  162. Handler: _LoggerService_RestartLogger_Handler,
  163. },
  164. },
  165. Streams: []grpc.StreamDesc{},
  166. Metadata: "v2ray.com/core/app/log/command/config.proto",
  167. }
  168. func init() {
  169. proto.RegisterFile("v2ray.com/core/app/log/command/config.proto", fileDescriptor_46d95b63a682e4a6)
  170. }
  171. var fileDescriptor_46d95b63a682e4a6 = []byte{
  172. // 210 bytes of a gzipped FileDescriptorProto
  173. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0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9f, 0xfc, 0x74, 0x3d, 0x67, 0x88, 0x64, 0x12,
  185. 0x1b, 0x38, 0xc4, 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0x37, 0xc7, 0xfc, 0xda, 0x60, 0x01,
  186. 0x00, 0x00,
  187. }