Documentation ¶
Index ¶
- Variables
- func RegisterFsServer(s grpc.ServiceRegistrar, srv FsServer)
- type CreateRequest
- func (*CreateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRequest) GetAccountId() int64
- func (x *CreateRequest) GetAddress() string
- func (x *CreateRequest) GetFileName() string
- func (*CreateRequest) ProtoMessage()
- func (x *CreateRequest) ProtoReflect() protoreflect.Message
- func (x *CreateRequest) Reset()
- func (x *CreateRequest) String() string
- type CreateResponse
- func (*CreateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateResponse) GetCode() string
- func (x *CreateResponse) GetStatus() string
- func (*CreateResponse) ProtoMessage()
- func (x *CreateResponse) ProtoReflect() protoreflect.Message
- func (x *CreateResponse) Reset()
- func (x *CreateResponse) String() string
- type DeleteRequest
- func (*DeleteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteRequest) GetAccountId() int64
- func (x *DeleteRequest) GetFileName() string
- func (*DeleteRequest) ProtoMessage()
- func (x *DeleteRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteRequest) Reset()
- func (x *DeleteRequest) String() string
- type DeleteResponse
- func (*DeleteResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteResponse) GetCode() string
- func (x *DeleteResponse) GetStatus() string
- func (*DeleteResponse) ProtoMessage()
- func (x *DeleteResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteResponse) Reset()
- func (x *DeleteResponse) String() string
- type FsClient
- type FsServer
- type GetRequest
- type GetResponse
- func (*GetResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetResponse) GetAddress() string
- func (x *GetResponse) GetCode() string
- func (x *GetResponse) GetFileName() string
- func (*GetResponse) ProtoMessage()
- func (x *GetResponse) ProtoReflect() protoreflect.Message
- func (x *GetResponse) Reset()
- func (x *GetResponse) String() string
- type UnimplementedFsServer
- type UnsafeFsServer
Constants ¶
This section is empty.
Variables ¶
var File_proto_v1alpha1_fs_fs_proto protoreflect.FileDescriptor
var Fs_ServiceDesc = grpc.ServiceDesc{ ServiceName: "hvx.api.v1alpha1.fs.proto.Fs", HandlerType: (*FsServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Create", Handler: _Fs_Create_Handler, }, { MethodName: "Delete", Handler: _Fs_Delete_Handler, }, { MethodName: "Get", Handler: _Fs_Get_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/v1alpha1/fs/fs.proto", }
Fs_ServiceDesc is the grpc.ServiceDesc for Fs service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterFsServer ¶
func RegisterFsServer(s grpc.ServiceRegistrar, srv FsServer)
Types ¶
type CreateRequest ¶
type CreateRequest struct { AccountId int64 `protobuf:"varint,1,opt,name=accountId,proto3" json:"accountId,omitempty"` FileName string `protobuf:"bytes,2,opt,name=fileName,proto3" json:"fileName,omitempty"` Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
func (*CreateRequest) Descriptor
deprecated
func (*CreateRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead.
func (*CreateRequest) GetAccountId ¶
func (x *CreateRequest) GetAccountId() int64
func (*CreateRequest) GetAddress ¶
func (x *CreateRequest) GetAddress() string
func (*CreateRequest) GetFileName ¶
func (x *CreateRequest) GetFileName() string
func (*CreateRequest) ProtoMessage ¶
func (*CreateRequest) ProtoMessage()
func (*CreateRequest) ProtoReflect ¶
func (x *CreateRequest) ProtoReflect() protoreflect.Message
func (*CreateRequest) Reset ¶
func (x *CreateRequest) Reset()
func (*CreateRequest) String ¶
func (x *CreateRequest) String() string
type CreateResponse ¶
type CreateResponse struct { Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*CreateResponse) Descriptor
deprecated
func (*CreateResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateResponse.ProtoReflect.Descriptor instead.
func (*CreateResponse) GetCode ¶
func (x *CreateResponse) GetCode() string
func (*CreateResponse) GetStatus ¶
func (x *CreateResponse) GetStatus() string
func (*CreateResponse) ProtoMessage ¶
func (*CreateResponse) ProtoMessage()
func (*CreateResponse) ProtoReflect ¶
func (x *CreateResponse) ProtoReflect() protoreflect.Message
func (*CreateResponse) Reset ¶
func (x *CreateResponse) Reset()
func (*CreateResponse) String ¶
func (x *CreateResponse) String() string
type DeleteRequest ¶
type DeleteRequest struct { AccountId int64 `protobuf:"varint,1,opt,name=accountId,proto3" json:"accountId,omitempty"` FileName string `protobuf:"bytes,2,opt,name=fileName,proto3" json:"fileName,omitempty"` // contains filtered or unexported fields }
func (*DeleteRequest) Descriptor
deprecated
func (*DeleteRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.
func (*DeleteRequest) GetAccountId ¶
func (x *DeleteRequest) GetAccountId() int64
func (*DeleteRequest) GetFileName ¶
func (x *DeleteRequest) GetFileName() string
func (*DeleteRequest) ProtoMessage ¶
func (*DeleteRequest) ProtoMessage()
func (*DeleteRequest) ProtoReflect ¶
func (x *DeleteRequest) ProtoReflect() protoreflect.Message
func (*DeleteRequest) Reset ¶
func (x *DeleteRequest) Reset()
func (*DeleteRequest) String ¶
func (x *DeleteRequest) String() string
type DeleteResponse ¶
type DeleteResponse struct { Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*DeleteResponse) Descriptor
deprecated
func (*DeleteResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead.
func (*DeleteResponse) GetCode ¶
func (x *DeleteResponse) GetCode() string
func (*DeleteResponse) GetStatus ¶
func (x *DeleteResponse) GetStatus() string
func (*DeleteResponse) ProtoMessage ¶
func (*DeleteResponse) ProtoMessage()
func (*DeleteResponse) ProtoReflect ¶
func (x *DeleteResponse) ProtoReflect() protoreflect.Message
func (*DeleteResponse) Reset ¶
func (x *DeleteResponse) Reset()
func (*DeleteResponse) String ¶
func (x *DeleteResponse) String() string
type FsClient ¶
type FsClient interface { Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) }
FsClient is the client API for Fs service.
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.
func NewFsClient ¶
func NewFsClient(cc grpc.ClientConnInterface) FsClient
type FsServer ¶
type FsServer interface { Create(context.Context, *CreateRequest) (*CreateResponse, error) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error) Get(context.Context, *GetRequest) (*GetResponse, error) }
FsServer is the server API for Fs service. All implementations should embed UnimplementedFsServer for forward compatibility
type GetRequest ¶
type GetRequest struct { AccountId int64 `protobuf:"varint,1,opt,name=accountId,proto3" json:"accountId,omitempty"` FileName string `protobuf:"bytes,2,opt,name=fileName,proto3" json:"fileName,omitempty"` // contains filtered or unexported fields }
func (*GetRequest) Descriptor
deprecated
func (*GetRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.
func (*GetRequest) GetAccountId ¶
func (x *GetRequest) GetAccountId() int64
func (*GetRequest) GetFileName ¶
func (x *GetRequest) GetFileName() string
func (*GetRequest) ProtoMessage ¶
func (*GetRequest) ProtoMessage()
func (*GetRequest) ProtoReflect ¶
func (x *GetRequest) ProtoReflect() protoreflect.Message
func (*GetRequest) Reset ¶
func (x *GetRequest) Reset()
func (*GetRequest) String ¶
func (x *GetRequest) String() string
type GetResponse ¶
type GetResponse struct { Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` FileName string `protobuf:"bytes,2,opt,name=fileName,proto3" json:"fileName,omitempty"` Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
func (*GetResponse) Descriptor
deprecated
func (*GetResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetResponse.ProtoReflect.Descriptor instead.
func (*GetResponse) GetAddress ¶
func (x *GetResponse) GetAddress() string
func (*GetResponse) GetCode ¶
func (x *GetResponse) GetCode() string
func (*GetResponse) GetFileName ¶
func (x *GetResponse) GetFileName() string
func (*GetResponse) ProtoMessage ¶
func (*GetResponse) ProtoMessage()
func (*GetResponse) ProtoReflect ¶
func (x *GetResponse) ProtoReflect() protoreflect.Message
func (*GetResponse) Reset ¶
func (x *GetResponse) Reset()
func (*GetResponse) String ¶
func (x *GetResponse) String() string
type UnimplementedFsServer ¶
type UnimplementedFsServer struct { }
UnimplementedFsServer should be embedded to have forward compatible implementations.
func (UnimplementedFsServer) Create ¶
func (UnimplementedFsServer) Create(context.Context, *CreateRequest) (*CreateResponse, error)
func (UnimplementedFsServer) Delete ¶
func (UnimplementedFsServer) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
func (UnimplementedFsServer) Get ¶
func (UnimplementedFsServer) Get(context.Context, *GetRequest) (*GetResponse, error)
type UnsafeFsServer ¶
type UnsafeFsServer interface {
// contains filtered or unexported methods
}
UnsafeFsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FsServer will result in compilation errors.