handler

package
v0.0.0-...-7109ca6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 17, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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 (e *VolumeHandler) FindAllVolume(ctx context.Context, req *volume.FindAll, rsp *volume.AllVolume) error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL