feat: administrator (#271)

* feat: get views and failed events

* feat: get views and failed events

* feat: get views and failed events

* Update internal/view/repository/sequence.go

Co-authored-by: Livio Amstutz <[email protected]>

* Update internal/view/repository/general_query.go

Co-authored-by: Livio Amstutz <[email protected]>

Co-authored-by: Livio Amstutz <[email protected]>
This commit is contained in:
Fabi
2020-06-25 08:01:13 +02:00
committed by GitHub
co-authored by Livio Amstutz
parent b88f200434
commit 8bfa1a083c
90 changed files with 3555 additions and 1661 deletions
+12 -10
View File
@@ -15,20 +15,22 @@ import (
var _ AdminServiceServer = (*Server)(nil)
type Server struct {
port string
org repository.OrgRepository
verifier auth.TokenVerifier
authZ auth.Config
repo repository.Repository
port string
org repository.OrgRepository
administrator repository.AdministratorRepository
verifier auth.TokenVerifier
authZ auth.Config
repo repository.Repository
}
func StartServer(conf grpc_util.ServerConfig, authZRepo *authz_repo.EsRepository, authZ auth.Config, repo repository.Repository) *Server {
return &Server{
port: conf.Port,
org: repo,
repo: repo,
authZ: authZ,
verifier: admin_auth.Start(authZRepo),
port: conf.Port,
org: repo,
administrator: repo,
repo: repo,
authZ: authZ,
verifier: admin_auth.Start(authZRepo),
}
}