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.

100 lines
3.5 KiB

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