Skip to content

Commit

Permalink
Refactor event polling by removing legacy implementation and updating…
Browse files Browse the repository at this point in the history
… event repository initialization
  • Loading branch information
L4B0MB4 committed Nov 29, 2024
1 parent 6b932f8 commit bfc1de2
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 142 deletions.
5 changes: 3 additions & 2 deletions cmd/queryer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ import (

"github.com/L4B0MB4/EVTSRC/pkg/client"
"github.com/L4B0MB4/PRYVT/identification/pkg/query/eventhandling"
"github.com/L4B0MB4/PRYVT/identification/pkg/query/eventpolling"
"github.com/L4B0MB4/PRYVT/identification/pkg/query/httphandler"
"github.com/L4B0MB4/PRYVT/identification/pkg/query/httphandler/controller"
"github.com/L4B0MB4/PRYVT/identification/pkg/query/store"
"github.com/L4B0MB4/PRYVT/identification/pkg/query/store/repository"
"github.com/PRYVT/utils/pkg/auth"
"github.com/PRYVT/utils/pkg/eventpolling"
utilsRepo "github.com/PRYVT/utils/pkg/store/repository"
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
)
Expand All @@ -36,7 +37,7 @@ func main() {
log.Error().Err(err).Msg("Unsuccessful initialization of token manager")
return
}
eventRepo := repository.NewEventRepository(conn)
eventRepo := utilsRepo.NewEventRepository(conn)
userRepo := repository.NewUserRepository(conn)
uc := controller.NewUserController(userRepo, tokenManager)
aut := auth.NewAuthMiddleware(tokenManager)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ require github.com/mattn/go-sqlite3 v1.14.24

require (
github.com/L4B0MB4/EVTSRC v0.4.5 // indirect
github.com/PRYVT/utils v0.1.2 // indirect
github.com/PRYVT/utils v0.2.0 // indirect
github.com/bytedance/sonic v1.12.2 // indirect
github.com/bytedance/sonic/loader v0.2.0 // indirect
github.com/cloudwego/base64x v0.1.4 // indirect
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ github.com/PRYVT/utils v0.1.1 h1:Y/WHkTHID0T40O2XfzlLM1QsDyQWE8FtH8ncaU4ags8=
github.com/PRYVT/utils v0.1.1/go.mod h1:b7zk2FAGwJ8BPJx2JQ8qd+bA59g5EY7Y1vZQPWZHK3s=
github.com/PRYVT/utils v0.1.2 h1:U9qhq+18iIblQDrM4I0fmJkvlZ+BCY+DIjjKI4ebtlk=
github.com/PRYVT/utils v0.1.2/go.mod h1:b7zk2FAGwJ8BPJx2JQ8qd+bA59g5EY7Y1vZQPWZHK3s=
github.com/PRYVT/utils v0.2.0 h1:hWdHchXlGOYlJ1nfMmGffq/EjFn3ncvzTgsGCLUpiEE=
github.com/PRYVT/utils v0.2.0/go.mod h1:j61GmoyWWXgnCq/laZTIJm4yhD0PreLDMZnYQqjSv7w=
github.com/bytedance/sonic v1.11.6 h1:oUp34TzMlL+OY1OUWxHqsdkgC/Zfc85zGqw9siXjrc0=
github.com/bytedance/sonic v1.11.6/go.mod h1:LysEHSvpvDySVdC2f87zGWf6CIKJcAvqab1ZaiQtds4=
github.com/bytedance/sonic v1.12.2 h1:oaMFuRTpMHYLpCntGca65YWt5ny+wAceDERTkT2L9lg=
Expand Down
7 changes: 0 additions & 7 deletions pkg/query/eventpolling/event_handler.go

This file was deleted.

66 changes: 0 additions & 66 deletions pkg/query/eventpolling/polling.go

This file was deleted.

66 changes: 0 additions & 66 deletions pkg/query/store/repository/event_repository.go

This file was deleted.

0 comments on commit bfc1de2

Please sign in to comment.