config.pb.go 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. package command
  2. import (
  3. "context"
  4. fmt "fmt"
  5. math "math"
  6. proto "github.com/golang/protobuf/proto"
  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. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  20. XXX_unrecognized []byte `json:"-"`
  21. XXX_sizecache int32 `json:"-"`
  22. }
  23. func (m *Config) Reset() { *m = Config{} }
  24. func (m *Config) String() string { return proto.CompactTextString(m) }
  25. func (*Config) ProtoMessage() {}
  26. func (*Config) Descriptor() ([]byte, []int) {
  27. return fileDescriptor_46d95b63a682e4a6, []int{0}
  28. }
  29. func (m *Config) XXX_Unmarshal(b []byte) error {
  30. return xxx_messageInfo_Config.Unmarshal(m, b)
  31. }
  32. func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  33. return xxx_messageInfo_Config.Marshal(b, m, deterministic)
  34. }
  35. func (m *Config) XXX_Merge(src proto.Message) {
  36. xxx_messageInfo_Config.Merge(m, src)
  37. }
  38. func (m *Config) XXX_Size() int {
  39. return xxx_messageInfo_Config.Size(m)
  40. }
  41. func (m *Config) XXX_DiscardUnknown() {
  42. xxx_messageInfo_Config.DiscardUnknown(m)
  43. }
  44. var xxx_messageInfo_Config proto.InternalMessageInfo
  45. type RestartLoggerRequest struct {
  46. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  47. XXX_unrecognized []byte `json:"-"`
  48. XXX_sizecache int32 `json:"-"`
  49. }
  50. func (m *RestartLoggerRequest) Reset() { *m = RestartLoggerRequest{} }
  51. func (m *RestartLoggerRequest) String() string { return proto.CompactTextString(m) }
  52. func (*RestartLoggerRequest) ProtoMessage() {}
  53. func (*RestartLoggerRequest) Descriptor() ([]byte, []int) {
  54. return fileDescriptor_46d95b63a682e4a6, []int{1}
  55. }
  56. func (m *RestartLoggerRequest) XXX_Unmarshal(b []byte) error {
  57. return xxx_messageInfo_RestartLoggerRequest.Unmarshal(m, b)
  58. }
  59. func (m *RestartLoggerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  60. return xxx_messageInfo_RestartLoggerRequest.Marshal(b, m, deterministic)
  61. }
  62. func (m *RestartLoggerRequest) XXX_Merge(src proto.Message) {
  63. xxx_messageInfo_RestartLoggerRequest.Merge(m, src)
  64. }
  65. func (m *RestartLoggerRequest) XXX_Size() int {
  66. return xxx_messageInfo_RestartLoggerRequest.Size(m)
  67. }
  68. func (m *RestartLoggerRequest) XXX_DiscardUnknown() {
  69. xxx_messageInfo_RestartLoggerRequest.DiscardUnknown(m)
  70. }
  71. var xxx_messageInfo_RestartLoggerRequest proto.InternalMessageInfo
  72. type RestartLoggerResponse struct {
  73. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  74. XXX_unrecognized []byte `json:"-"`
  75. XXX_sizecache int32 `json:"-"`
  76. }
  77. func (m *RestartLoggerResponse) Reset() { *m = RestartLoggerResponse{} }
  78. func (m *RestartLoggerResponse) String() string { return proto.CompactTextString(m) }
  79. func (*RestartLoggerResponse) ProtoMessage() {}
  80. func (*RestartLoggerResponse) Descriptor() ([]byte, []int) {
  81. return fileDescriptor_46d95b63a682e4a6, []int{2}
  82. }
  83. func (m *RestartLoggerResponse) XXX_Unmarshal(b []byte) error {
  84. return xxx_messageInfo_RestartLoggerResponse.Unmarshal(m, b)
  85. }
  86. func (m *RestartLoggerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  87. return xxx_messageInfo_RestartLoggerResponse.Marshal(b, m, deterministic)
  88. }
  89. func (m *RestartLoggerResponse) XXX_Merge(src proto.Message) {
  90. xxx_messageInfo_RestartLoggerResponse.Merge(m, src)
  91. }
  92. func (m *RestartLoggerResponse) XXX_Size() int {
  93. return xxx_messageInfo_RestartLoggerResponse.Size(m)
  94. }
  95. func (m *RestartLoggerResponse) XXX_DiscardUnknown() {
  96. xxx_messageInfo_RestartLoggerResponse.DiscardUnknown(m)
  97. }
  98. var xxx_messageInfo_RestartLoggerResponse proto.InternalMessageInfo
  99. func init() {
  100. proto.RegisterType((*Config)(nil), "v2ray.core.app.log.command.Config")
  101. proto.RegisterType((*RestartLoggerRequest)(nil), "v2ray.core.app.log.command.RestartLoggerRequest")
  102. proto.RegisterType((*RestartLoggerResponse)(nil), "v2ray.core.app.log.command.RestartLoggerResponse")
  103. }
  104. func init() {
  105. proto.RegisterFile("v2ray.com/core/app/log/command/config.proto", fileDescriptor_46d95b63a682e4a6)
  106. }
  107. var fileDescriptor_46d95b63a682e4a6 = []byte{
  108. // 210 bytes of a gzipped FileDescriptorProto
  109. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x2e, 0x33, 0x2a, 0x4a,
  110. 0xac, 0xd4, 0x4b, 0xce, 0xcf, 0xd5, 0x4f, 0xce, 0x2f, 0x4a, 0xd5, 0x4f, 0x2c, 0x28, 0xd0, 0xcf,
  111. 0xc9, 0x4f, 0xd7, 0x4f, 0xce, 0xcf, 0xcd, 0x4d, 0xcc, 0x4b, 0xd1, 0x4f, 0xce, 0xcf, 0x4b, 0xcb,
  112. 0x4c, 0xd7, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x92, 0x82, 0x29, 0x2e, 0x4a, 0xd5, 0x4b, 0x2c,
  113. 0x28, 0xd0, 0xcb, 0xc9, 0x4f, 0xd7, 0x83, 0x2a, 0x54, 0xe2, 0xe0, 0x62, 0x73, 0x06, 0xab, 0x55,
  114. 0x12, 0xe3, 0x12, 0x09, 0x4a, 0x2d, 0x2e, 0x49, 0x2c, 0x2a, 0xf1, 0xc9, 0x4f, 0x4f, 0x4f, 0x2d,
  115. 0x0a, 0x4a, 0x2d, 0x2c, 0x4d, 0x2d, 0x2e, 0x51, 0x12, 0xe7, 0x12, 0x45, 0x13, 0x2f, 0x2e, 0xc8,
  116. 0xcf, 0x2b, 0x4e, 0x35, 0x6a, 0x67, 0xe4, 0xe2, 0x85, 0x08, 0x05, 0xa7, 0x16, 0x95, 0x65, 0x26,
  117. 0xa7, 0x0a, 0x95, 0x71, 0xf1, 0xa2, 0x28, 0x15, 0x32, 0xd0, 0xc3, 0x6d, 0xb5, 0x1e, 0x36, 0xdb,
  118. 0xa4, 0x0c, 0x49, 0xd0, 0x01, 0x71, 0x87, 0x12, 0x83, 0x93, 0x07, 0x97, 0x5c, 0x72, 0x7e, 0x2e,
  119. 0x1e, 0x9d, 0x01, 0x8c, 0x51, 0xec, 0x50, 0xe6, 0x2a, 0x26, 0xa9, 0x30, 0xa3, 0xa0, 0xc4, 0x4a,
  120. 0x3d, 0x67, 0x90, 0x3a, 0xc7, 0x82, 0x02, 0x3d, 0x9f, 0xfc, 0x74, 0x3d, 0x67, 0x88, 0x64, 0x12,
  121. 0x1b, 0x38, 0xc4, 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0x37, 0xc7, 0xfc, 0xda, 0x60, 0x01,
  122. 0x00, 0x00,
  123. }
  124. // Reference imports to suppress errors if they are not otherwise used.
  125. var _ context.Context
  126. var _ grpc.ClientConn
  127. // This is a compile-time assertion to ensure that this generated file
  128. // is compatible with the grpc package it is being compiled against.
  129. const _ = grpc.SupportPackageIsVersion4
  130. // LoggerServiceClient is the client API for LoggerService service.
  131. //
  132. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  133. type LoggerServiceClient interface {
  134. RestartLogger(ctx context.Context, in *RestartLoggerRequest, opts ...grpc.CallOption) (*RestartLoggerResponse, error)
  135. }
  136. type loggerServiceClient struct {
  137. cc *grpc.ClientConn
  138. }
  139. func NewLoggerServiceClient(cc *grpc.ClientConn) LoggerServiceClient {
  140. return &loggerServiceClient{cc}
  141. }
  142. func (c *loggerServiceClient) RestartLogger(ctx context.Context, in *RestartLoggerRequest, opts ...grpc.CallOption) (*RestartLoggerResponse, error) {
  143. out := new(RestartLoggerResponse)
  144. err := c.cc.Invoke(ctx, "/v2ray.core.app.log.command.LoggerService/RestartLogger", in, out, opts...)
  145. if err != nil {
  146. return nil, err
  147. }
  148. return out, nil
  149. }
  150. // LoggerServiceServer is the server API for LoggerService service.
  151. type LoggerServiceServer interface {
  152. RestartLogger(context.Context, *RestartLoggerRequest) (*RestartLoggerResponse, error)
  153. }
  154. func RegisterLoggerServiceServer(s *grpc.Server, srv LoggerServiceServer) {
  155. s.RegisterService(&_LoggerService_serviceDesc, srv)
  156. }
  157. func _LoggerService_RestartLogger_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  158. in := new(RestartLoggerRequest)
  159. if err := dec(in); err != nil {
  160. return nil, err
  161. }
  162. if interceptor == nil {
  163. return srv.(LoggerServiceServer).RestartLogger(ctx, in)
  164. }
  165. info := &grpc.UnaryServerInfo{
  166. Server: srv,
  167. FullMethod: "/v2ray.core.app.log.command.LoggerService/RestartLogger",
  168. }
  169. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  170. return srv.(LoggerServiceServer).RestartLogger(ctx, req.(*RestartLoggerRequest))
  171. }
  172. return interceptor(ctx, in, info, handler)
  173. }
  174. var _LoggerService_serviceDesc = grpc.ServiceDesc{
  175. ServiceName: "v2ray.core.app.log.command.LoggerService",
  176. HandlerType: (*LoggerServiceServer)(nil),
  177. Methods: []grpc.MethodDesc{
  178. {
  179. MethodName: "RestartLogger",
  180. Handler: _LoggerService_RestartLogger_Handler,
  181. },
  182. },
  183. Streams: []grpc.StreamDesc{},
  184. Metadata: "v2ray.com/core/app/log/command/config.proto",
  185. }