You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

109 lines
3.7 KiB

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