Documentation
¶
Index ¶
- Constants
- Variables
- type AuthService
- func (s *AuthService) Auth(ctx context.Context, req *pb.AuthRequest) (*pb.AuthReply, error)
- func (s *AuthService) AuthWithID(ctx context.Context, id int64) (string, error)
- func (s *AuthService) Callback(ctx context.Context, req *pb.CallbackRequest) (*pb.CallbackReply, error)
- func (s *AuthService) Login(_ context.Context, req *pb.LoginRequest) (*pb.LoginReply, error)
- type ChatService
- type CronService
- type TGService
- type UserService
Constants ¶
View Source
const (
SYNC_LOOP_TIMEOUT = 10 * time.Minute
)
Variables ¶
View Source
var Jobs = map[string]func(){}
View Source
var ProviderSet = wire.NewSet( NewAuthService, NewUserService, NewCronService, NewChatService, NewTGService, )
ProviderSet is service providers.
Functions ¶
This section is empty.
Types ¶
type AuthService ¶
type AuthService struct { pb.UnimplementedAuthServiceServer // contains filtered or unexported fields }
func NewAuthService ¶
func NewAuthService( logger log.Logger, uc *biz.AuthUsecase, gg *biz.GoogleUseCase, ) *AuthService
func (*AuthService) Auth ¶
func (s *AuthService) Auth(ctx context.Context, req *pb.AuthRequest) (*pb.AuthReply, error)
func (*AuthService) AuthWithID ¶
func (*AuthService) Callback ¶
func (s *AuthService) Callback(ctx context.Context, req *pb.CallbackRequest) (*pb.CallbackReply, error)
func (*AuthService) Login ¶
func (s *AuthService) Login(_ context.Context, req *pb.LoginRequest) (*pb.LoginReply, error)
type ChatService ¶
type ChatService struct { pb.UnimplementedChatServer // contains filtered or unexported fields }
func NewChatService ¶
func NewChatService(uc *biz.ChatUseCase, guc *biz.GoogleUseCase, uuc *biz.UserUseCase, logger log.Logger) *ChatService
func (*ChatService) UserChat ¶
func (s *ChatService) UserChat(ctx context.Context, req *pb.UserChatRequest) (*pb.UserChatResponse, error)
type CronService ¶
type CronService struct {
// contains filtered or unexported fields
}
func NewCronService ¶
func NewCronService( c *conf.Cron, logger log.Logger, uuc *biz.UserUseCase, cuc *biz.CalendarUseCase, euc *biz.EventUseCase, ehuc *biz.EventHistoryUseCase, guc *biz.GoogleUseCase, aiuc *biz.OpenAIUseCase, ) *CronService
type TGService ¶
type TGService struct {
// contains filtered or unexported fields
}
func NewTGService ¶
type UserService ¶
type UserService struct { pb.UnimplementedUserServiceServer // contains filtered or unexported fields }
func NewUserService ¶
func NewUserService( logger log.Logger, uc *biz.UserUseCase, gg *biz.GoogleUseCase, ) *UserService
func (*UserService) CreateUser ¶
func (s *UserService) CreateUser(ctx context.Context, req *pb.CreateUserRequest) (*pb.CreateUserReply, error)
Click to show internal directories.
Click to hide internal directories.