Documentation ¶
Index ¶
- type VolumeHandler
- func (e *VolumeHandler) AddVolume(ctx context.Context, info *volume.VolumeInfo, rsp *volume.Response) error
- func (e *VolumeHandler) DeleteVolume(ctx context.Context, req *volume.VolumeId, rsp *volume.Response) error
- func (e *VolumeHandler) FindAllVolume(ctx context.Context, req *volume.FindAll, rsp *volume.AllVolume) error
- func (e *VolumeHandler) FindVolumeByID(ctx context.Context, req *volume.VolumeId, rsp *volume.VolumeInfo) error
- func (e *VolumeHandler) UpdateVolume(ctx context.Context, req *volume.VolumeInfo, rsp *volume.Response) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VolumeHandler ¶
type VolumeHandler struct { //注意这里的类型是 IVolumeDataService 接口类型 VolumeDataService service.IVolumeDataService }
func (*VolumeHandler) AddVolume ¶
func (e *VolumeHandler) AddVolume(ctx context.Context, info *volume.VolumeInfo, rsp *volume.Response) error
Call is a single request handler called via client.Call or the generated client code
func (*VolumeHandler) DeleteVolume ¶
func (e *VolumeHandler) DeleteVolume(ctx context.Context, req *volume.VolumeId, rsp *volume.Response) error
删除
func (*VolumeHandler) FindAllVolume ¶
func (*VolumeHandler) FindVolumeByID ¶
func (e *VolumeHandler) FindVolumeByID(ctx context.Context, req *volume.VolumeId, rsp *volume.VolumeInfo) error
根据 ID 查找 volume
func (*VolumeHandler) UpdateVolume ¶
func (e *VolumeHandler) UpdateVolume(ctx context.Context, req *volume.VolumeInfo, rsp *volume.Response) error
Click to show internal directories.
Click to hide internal directories.