Documentation ¶
Index ¶
- Variables
- type Service
- func (s *Service) AddApplication(ctx context.Context, in *v1.AddApplicationRequest) (*v1.Application, error)
- func (s *Service) AddTimer(ctx context.Context, in *v1.AddTimerRequest) (*v1.AddTimerReply, error)
- func (s *Service) AddUser(ctx context.Context, in *v1.AddUserRequest) (*v1.AddUserReply, error)
- func (s *Service) Close()
- func (s *Service) DeleteApplication(ctx context.Context, in *v1.DeleteApplicationRequest) (*v1.DeleteApplicationReply, error)
- func (s *Service) GenApplicationSecret(ctx context.Context, in *v1.GenApplicationSecretRequest) (*v1.GenApplicationSecretReply, error)
- func (s *Service) GetApplication(ctx context.Context, in *v1.GetApplicationRequest) (*v1.Application, error)
- func (s *Service) GetTimer(ctx context.Context, in *v1.GetTimerRequest) (*v1.Timer, error)
- func (s *Service) GetUser(ctx context.Context, in *v1.GetUserRequest) (*v1.User, error)
- func (s *Service) Healthy(_ context.Context, _ *common.EmptyRequest) (*common.HealthyReply, error)
- func (s *Service) ListApplication(ctx context.Context, in *v1.ListApplicationRequest) (*v1.ListApplicationReply, error)
- func (s *Service) ListTimer(ctx context.Context, in *v1.ListTimerRequest) (*v1.ListTimerReply, error)
- func (s *Service) ListTimerCallback(ctx context.Context, in *v1.ListTimerCallbackRequest) (*v1.ListTimerCallbackReply, error)
- func (s *Service) ListUser(ctx context.Context, in *v1.ListUserRequest) (*v1.ListUserReply, error)
- func (s *Service) ReplayTimer(ctx context.Context, in *v1.ReplayTimerRequest) (*v1.ReplayTimerReply, error)
- func (s *Service) RevokeTimer(ctx context.Context, in *v1.RevokeTimerRequest) (*v1.RevokeTimerReply, error)
- func (s *Service) UpdateApplication(ctx context.Context, in *v1.UpdateApplicationRequest) (*v1.UpdateApplicationReply, error)
- func (s *Service) UpdateApplicationStatus(ctx context.Context, in *v1.UpdateApplicationStatusRequest) (*v1.UpdateApplicationStatusReply, error)
- func (s *Service) UpdateUserStatus(ctx context.Context, in *v1.UpdateUserStatusRequest) (*v1.UpdateUserStatusReply, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewService)
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct { v1.UnimplementedServiceServer // contains filtered or unexported fields }
func NewService ¶
func NewService( business *conf.Business, user *dao.User, application *dao.Application, timer *dao.TimerRecord, timerCallback *dao.TimerCallback, ) (*Service, func())
func (*Service) AddApplication ¶
func (s *Service) AddApplication(ctx context.Context, in *v1.AddApplicationRequest) (*v1.Application, error)
func (*Service) AddTimer ¶
func (s *Service) AddTimer(ctx context.Context, in *v1.AddTimerRequest) (*v1.AddTimerReply, error)
func (*Service) AddUser ¶
func (s *Service) AddUser(ctx context.Context, in *v1.AddUserRequest) (*v1.AddUserReply, error)
func (*Service) DeleteApplication ¶
func (s *Service) DeleteApplication(ctx context.Context, in *v1.DeleteApplicationRequest) (*v1.DeleteApplicationReply, error)
func (*Service) GenApplicationSecret ¶
func (s *Service) GenApplicationSecret(ctx context.Context, in *v1.GenApplicationSecretRequest) (*v1.GenApplicationSecretReply, error)
func (*Service) GetApplication ¶
func (s *Service) GetApplication(ctx context.Context, in *v1.GetApplicationRequest) (*v1.Application, error)
func (*Service) Healthy ¶
func (s *Service) Healthy(_ context.Context, _ *common.EmptyRequest) (*common.HealthyReply, error)
func (*Service) ListApplication ¶
func (s *Service) ListApplication(ctx context.Context, in *v1.ListApplicationRequest) (*v1.ListApplicationReply, error)
func (*Service) ListTimer ¶
func (s *Service) ListTimer(ctx context.Context, in *v1.ListTimerRequest) (*v1.ListTimerReply, error)
func (*Service) ListTimerCallback ¶
func (s *Service) ListTimerCallback(ctx context.Context, in *v1.ListTimerCallbackRequest) (*v1.ListTimerCallbackReply, error)
func (*Service) ListUser ¶
func (s *Service) ListUser(ctx context.Context, in *v1.ListUserRequest) (*v1.ListUserReply, error)
func (*Service) ReplayTimer ¶
func (s *Service) ReplayTimer(ctx context.Context, in *v1.ReplayTimerRequest) (*v1.ReplayTimerReply, error)
func (*Service) RevokeTimer ¶
func (s *Service) RevokeTimer(ctx context.Context, in *v1.RevokeTimerRequest) (*v1.RevokeTimerReply, error)
func (*Service) UpdateApplication ¶
func (s *Service) UpdateApplication(ctx context.Context, in *v1.UpdateApplicationRequest) (*v1.UpdateApplicationReply, error)
func (*Service) UpdateApplicationStatus ¶
func (s *Service) UpdateApplicationStatus(ctx context.Context, in *v1.UpdateApplicationStatusRequest) (*v1.UpdateApplicationStatusReply, error)
func (*Service) UpdateUserStatus ¶
func (s *Service) UpdateUserStatus(ctx context.Context, in *v1.UpdateUserStatusRequest) (*v1.UpdateUserStatusReply, error)
Click to show internal directories.
Click to hide internal directories.