Documentation ¶
Index ¶
- func ClientTypesMap(cfg *domain.Config) (map[domain.ClientType]domain.TLSConfig, error)
- func NewAuthServer(authAdminService service.AuthAdminService, authorizer authz.Authorizer) (api.AuthZServiceServer, error)
- func NewGroupsServer(authAdminService service.AuthAdminService, authorizer authz.Authorizer) (api.GroupsServiceServer, error)
- func NewOrganizationsServer(authAdminService service.AuthAdminService, authorizer authz.Authorizer) (api.OrganizationsServiceServer, error)
- func NewPermissionsServer(authAdminService service.AuthAdminService, authorizer authz.Authorizer) (api.PermissionsServiceServer, error)
- func NewPrincipalsServer(authAdminService service.AuthAdminService, authorizer authz.Authorizer) (api.PrincipalsServiceServer, error)
- func NewRelationshipsServer(authAdminService service.AuthAdminService, authorizer authz.Authorizer) (api.RelationshipsServiceServer, error)
- func NewResourcesServer(authAdminService service.AuthAdminService, authorizer authz.Authorizer) (api.ResourcesServiceServer, error)
- func NewRolesServer(authAdminService service.AuthAdminService, authorizer authz.Authorizer) (api.RolesServiceServer, error)
- type Clients
- type GrpcAdapter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientTypesMap ¶
ClientTypesMap builds map with different client types
func NewAuthServer ¶
func NewAuthServer( authAdminService service.AuthAdminService, authorizer authz.Authorizer, ) (api.AuthZServiceServer, error)
NewAuthServer constructor.
func NewGroupsServer ¶
func NewGroupsServer( authAdminService service.AuthAdminService, authorizer authz.Authorizer, ) (api.GroupsServiceServer, error)
NewGroupsServer constructor
func NewOrganizationsServer ¶
func NewOrganizationsServer( authAdminService service.AuthAdminService, authorizer authz.Authorizer, ) (api.OrganizationsServiceServer, error)
NewOrganizationsServer constructor
func NewPermissionsServer ¶
func NewPermissionsServer( authAdminService service.AuthAdminService, authorizer authz.Authorizer, ) (api.PermissionsServiceServer, error)
NewPermissionsServer constructor
func NewPrincipalsServer ¶
func NewPrincipalsServer( authAdminService service.AuthAdminService, authorizer authz.Authorizer, ) (api.PrincipalsServiceServer, error)
NewPrincipalsServer constructor
func NewRelationshipsServer ¶
func NewRelationshipsServer( authAdminService service.AuthAdminService, authorizer authz.Authorizer, ) (api.RelationshipsServiceServer, error)
NewRelationshipsServer constructor
func NewResourcesServer ¶
func NewResourcesServer( authAdminService service.AuthAdminService, authorizer authz.Authorizer, ) (api.ResourcesServiceServer, error)
NewResourcesServer constructor
func NewRolesServer ¶
func NewRolesServer( authAdminService service.AuthAdminService, authorizer authz.Authorizer, ) (api.RolesServiceServer, error)
NewRolesServer constructor
Types ¶
type Clients ¶
type Clients struct { AuthClient services.AuthZServiceClient GroupsClient services.GroupsServiceClient OrganizationsClient services.OrganizationsServiceClient PermissionsClient services.PermissionsServiceClient PrincipalsClient services.PrincipalsServiceClient RelationshipsClient services.RelationshipsServiceClient ResourcesClient services.ResourcesServiceClient RolesClient services.RolesServiceClient ClientType domain.ClientType }
Clients for GRPC server
func NewClients ¶
func NewClients(caFile string, certFile string, keyFile string, addr string) ( conn *grpc.ClientConn, clients Clients, err error)
NewClients constructor
type GrpcAdapter ¶
type GrpcAdapter struct {
// contains filtered or unexported fields
}
GrpcAdapter for managing gRPC server.
func StartServers ¶
func StartServers( config *domain.Config, authService service.AuthAdminService, grpcOpts ...grpc.ServerOption) (adapter *GrpcAdapter, err error)
StartServers starts gRPC server.
func (*GrpcAdapter) Addr ¶
func (a *GrpcAdapter) Addr() net.Addr
Addr for managing address of gRPC server.
func (*GrpcAdapter) Serve ¶
func (a *GrpcAdapter) Serve() (err error)
Serve starts serving requests.
Click to show internal directories.
Click to hide internal directories.