Documentation ¶
Index ¶
- type Service
- func (s *Service) CreateHook(ctx context.Context, req *hookapi.CreateHookRequest) (*hookapi.CreateHookReply, error)
- func (s *Service) DeleteHook(ctx context.Context, req *hookapi.DeleteHookRequest) (*hookapi.DeleteHookReply, error)
- func (s *Service) GetHook(ctx context.Context, req *hookapi.GetHookRequest) (*hookapi.GetHookReply, error)
- func (s *Service) ListHook(ctx context.Context, req *hookapi.ListHookRequest) (*hookapi.ListHookReply, error)
- func (s *Service) ListHookSelectList(ctx context.Context, req *hookapi.ListHookRequest) (*hookapi.ListHookSelectListReply, error)
- func (s *Service) UpdateHook(ctx context.Context, req *hookapi.UpdateHookRequest) (*hookapi.UpdateHookReply, error)
- func (s *Service) UpdateHookStatus(ctx context.Context, req *hookapi.UpdateHookStatusRequest) (*hookapi.UpdateHookStatusReply, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct { hookapi.UnimplementedHookServer // contains filtered or unexported fields }
Service is a service that implements the HookServer interface.
func NewHookService ¶
func NewHookService(alarmHook *biz.AlarmHookBiz) *Service
NewHookService creates a new Service.
func (*Service) CreateHook ¶
func (s *Service) CreateHook(ctx context.Context, req *hookapi.CreateHookRequest) (*hookapi.CreateHookReply, error)
CreateHook creates a new hook.
func (*Service) DeleteHook ¶
func (s *Service) DeleteHook(ctx context.Context, req *hookapi.DeleteHookRequest) (*hookapi.DeleteHookReply, error)
DeleteHook deletes an existing hook.
func (*Service) GetHook ¶
func (s *Service) GetHook(ctx context.Context, req *hookapi.GetHookRequest) (*hookapi.GetHookReply, error)
GetHook gets an existing hook.
func (*Service) ListHook ¶
func (s *Service) ListHook(ctx context.Context, req *hookapi.ListHookRequest) (*hookapi.ListHookReply, error)
ListHook lists all hooks.
func (*Service) ListHookSelectList ¶
func (s *Service) ListHookSelectList(ctx context.Context, req *hookapi.ListHookRequest) (*hookapi.ListHookSelectListReply, error)
ListHookSelectList 获取hook下拉列表
func (*Service) UpdateHook ¶
func (s *Service) UpdateHook(ctx context.Context, req *hookapi.UpdateHookRequest) (*hookapi.UpdateHookReply, error)
UpdateHook updates an existing hook.
func (*Service) UpdateHookStatus ¶
func (s *Service) UpdateHookStatus(ctx context.Context, req *hookapi.UpdateHookStatusRequest) (*hookapi.UpdateHookStatusReply, error)
UpdateHookStatus updates the status of an existing hook.
Click to show internal directories.
Click to hide internal directories.