service

package
v0.0.0-...-13800eb Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

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) Close

func (s *Service) Close()

func (*Service) DeleteApplication

func (s *Service) DeleteApplication(ctx context.Context, in *v1.DeleteApplicationRequest) (*v1.DeleteApplicationReply, error)

func (*Service) GenApplicationSecret

func (*Service) GetApplication

func (s *Service) GetApplication(ctx context.Context, in *v1.GetApplicationRequest) (*v1.Application, error)

func (*Service) GetTimer

func (s *Service) GetTimer(ctx context.Context, in *v1.GetTimerRequest) (*v1.Timer, error)

func (*Service) GetUser

func (s *Service) GetUser(ctx context.Context, in *v1.GetUserRequest) (*v1.User, error)

func (*Service) Healthy

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) UpdateUserStatus

func (s *Service) UpdateUserStatus(ctx context.Context, in *v1.UpdateUserStatusRequest) (*v1.UpdateUserStatusReply, error)

Jump to

Keyboard shortcuts

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