queryhandler

package
v0.5.0-rc7 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuditLogClient added in v0.3.5

func NewAuditLogClient(ctx context.Context, queryHandlerAddr string) (*grpc.ClientConn, doApi.AuditLogClient, error)

NewAuditLogClient returns a new configured instance of AuditLogClient along with the connection used

func NewAuditLogServer added in v0.3.5

func NewAuditLogServer(esClient esApi.EventStoreClient, efRegistry event.EventFormatterRegistry, userRepo repositories.UserRepository) *auditLogServer

NewAuditLogServer returns a new configured instance of auditLogServer

func NewClusterAccessClient added in v0.3.0

func NewClusterAccessClient(ctx context.Context, queryHandlerAddr string) (*grpc.ClientConn, api.ClusterAccessClient, error)

func NewClusterAccessServer added in v0.3.0

func NewClusterAccessServer(clusterAccessRepo repositories.ClusterAccessRepository, tenantClusterBindingRepo repositories.TenantClusterBindingRepository) *clusterAccessServer

NewClusterServiceServer returns a new configured instance of clusterServiceServer

func NewClusterClient

func NewClusterClient(ctx context.Context, queryHandlerAddr string) (*grpc.ClientConn, api.ClusterClient, error)

func NewClusterServer

func NewClusterServer(clusterRepo repositories.ClusterRepository) *clusterServer

NewClusterServiceServer returns a new configured instance of clusterServiceServer

func NewTenantClient

func NewTenantClient(ctx context.Context, queryHandlerAddr string) (*grpc.ClientConn, api.TenantClient, error)

func NewTenantServer

func NewTenantServer(tenantRepo repositories.TenantRepository, tenantUserRepo repositories.TenantUserRepository) *tenantServer

NewTenantServiceServer returns a new configured instance of tenantServiceServer

Types

type TestEnv

type TestEnv struct {
	*test.TestEnv
	// contains filtered or unexported fields
}

func NewTestEnvWithParent

func NewTestEnvWithParent(testeEnv *test.TestEnv, eventStoreTestEnv *eventstore.TestEnv, gatewayTestEnv *gateway.TestEnv) (*TestEnv, error)

func (*TestEnv) GetApiAddr

func (env *TestEnv) GetApiAddr() string

func (*TestEnv) Shutdown

func (env *TestEnv) Shutdown() error

type UserServer

type UserServer struct {
	api.UnimplementedUserServer
	// contains filtered or unexported fields
}

UserServer is the implementation of the TenantService API

func NewUserServer

func NewUserServer(userRepo repositories.UserRepository) *UserServer

NewUserServer returns a new configured instance of UserServer

func (*UserServer) GetAll

func (s *UserServer) GetAll(request *api.GetAllRequest, stream api.User_GetAllServer) error

func (*UserServer) GetByEmail

func (s *UserServer) GetByEmail(ctx context.Context, email *wrappers.StringValue) (*projections.User, error)

GetByEmail returns the user found by the given email address.

func (*UserServer) GetById

func (s *UserServer) GetById(ctx context.Context, userId *wrappers.StringValue) (*projections.User, error)

GetById returns the user found by the given id.

func (*UserServer) GetCount added in v0.3.0

func (s *UserServer) GetCount(ctx context.Context, request *api.GetCountRequest) (*api.GetCountResult, error)

func (*UserServer) GetRoleBindingsById

func (s *UserServer) GetRoleBindingsById(userId *wrappers.StringValue, stream api.User_GetRoleBindingsByIdServer) error

Jump to

Keyboard shortcuts

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