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.

101 lines
3.6 KiB

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