mount_grpc.pb.go 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
  2. // versions:
  3. // - protoc-gen-go-grpc v1.2.0
  4. // - protoc v4.23.3
  5. // source: mount.proto
  6. package mount_pb
  7. import (
  8. context "context"
  9. grpc "google.golang.org/grpc"
  10. codes "google.golang.org/grpc/codes"
  11. status "google.golang.org/grpc/status"
  12. )
  13. // This is a compile-time assertion to ensure that this generated file
  14. // is compatible with the grpc package it is being compiled against.
  15. // Requires gRPC-Go v1.32.0 or later.
  16. const _ = grpc.SupportPackageIsVersion7
  17. // SeaweedMountClient is the client API for SeaweedMount service.
  18. //
  19. // 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.
  20. type SeaweedMountClient interface {
  21. Configure(ctx context.Context, in *ConfigureRequest, opts ...grpc.CallOption) (*ConfigureResponse, error)
  22. }
  23. type seaweedMountClient struct {
  24. cc grpc.ClientConnInterface
  25. }
  26. func NewSeaweedMountClient(cc grpc.ClientConnInterface) SeaweedMountClient {
  27. return &seaweedMountClient{cc}
  28. }
  29. func (c *seaweedMountClient) Configure(ctx context.Context, in *ConfigureRequest, opts ...grpc.CallOption) (*ConfigureResponse, error) {
  30. out := new(ConfigureResponse)
  31. err := c.cc.Invoke(ctx, "/messaging_pb.SeaweedMount/Configure", in, out, opts...)
  32. if err != nil {
  33. return nil, err
  34. }
  35. return out, nil
  36. }
  37. // SeaweedMountServer is the server API for SeaweedMount service.
  38. // All implementations must embed UnimplementedSeaweedMountServer
  39. // for forward compatibility
  40. type SeaweedMountServer interface {
  41. Configure(context.Context, *ConfigureRequest) (*ConfigureResponse, error)
  42. mustEmbedUnimplementedSeaweedMountServer()
  43. }
  44. // UnimplementedSeaweedMountServer must be embedded to have forward compatible implementations.
  45. type UnimplementedSeaweedMountServer struct {
  46. }
  47. func (UnimplementedSeaweedMountServer) Configure(context.Context, *ConfigureRequest) (*ConfigureResponse, error) {
  48. return nil, status.Errorf(codes.Unimplemented, "method Configure not implemented")
  49. }
  50. func (UnimplementedSeaweedMountServer) mustEmbedUnimplementedSeaweedMountServer() {}
  51. // UnsafeSeaweedMountServer may be embedded to opt out of forward compatibility for this service.
  52. // Use of this interface is not recommended, as added methods to SeaweedMountServer will
  53. // result in compilation errors.
  54. type UnsafeSeaweedMountServer interface {
  55. mustEmbedUnimplementedSeaweedMountServer()
  56. }
  57. func RegisterSeaweedMountServer(s grpc.ServiceRegistrar, srv SeaweedMountServer) {
  58. s.RegisterService(&SeaweedMount_ServiceDesc, srv)
  59. }
  60. func _SeaweedMount_Configure_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  61. in := new(ConfigureRequest)
  62. if err := dec(in); err != nil {
  63. return nil, err
  64. }
  65. if interceptor == nil {
  66. return srv.(SeaweedMountServer).Configure(ctx, in)
  67. }
  68. info := &grpc.UnaryServerInfo{
  69. Server: srv,
  70. FullMethod: "/messaging_pb.SeaweedMount/Configure",
  71. }
  72. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  73. return srv.(SeaweedMountServer).Configure(ctx, req.(*ConfigureRequest))
  74. }
  75. return interceptor(ctx, in, info, handler)
  76. }
  77. // SeaweedMount_ServiceDesc is the grpc.ServiceDesc for SeaweedMount service.
  78. // It's only intended for direct use with grpc.RegisterService,
  79. // and not to be introspected or modified (even as a copy)
  80. var SeaweedMount_ServiceDesc = grpc.ServiceDesc{
  81. ServiceName: "messaging_pb.SeaweedMount",
  82. HandlerType: (*SeaweedMountServer)(nil),
  83. Methods: []grpc.MethodDesc{
  84. {
  85. MethodName: "Configure",
  86. Handler: _SeaweedMount_Configure_Handler,
  87. },
  88. },
  89. Streams: []grpc.StreamDesc{},
  90. Metadata: "mount.proto",
  91. }