Documentation ¶
Overview ¶
Package grpc provides the persistence for workspaces
Index ¶
- Constants
- func NewHandler(ctx context.Context, dao workspace.DAO) idm.NamedWorkspaceServiceServer
- type AclBatcher
- type Handler
- func (h *Handler) CreateWorkspace(ctx context.Context, req *idm.CreateWorkspaceRequest) (*idm.CreateWorkspaceResponse, error)
- func (h *Handler) DeleteWorkspace(ctx context.Context, req *idm.DeleteWorkspaceRequest) (*idm.DeleteWorkspaceResponse, error)
- func (h *Handler) ModifyLogin(ctx context.Context, req *service.ModifyLoginRequest) (*service.ModifyLoginResponse, error)
- func (h *Handler) Name() string
- func (h *Handler) SearchWorkspace(request *idm.SearchWorkspaceRequest, ...) error
- func (h *Handler) StreamWorkspace(streamer idm.WorkspaceService_StreamWorkspaceServer) error
- type WsCleaner
Constants ¶
View Source
const (
ServiceName = common.ServiceGrpcNamespace_ + common.ServiceWorkspace
)
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
Types ¶
type AclBatcher ¶
type AclBatcher struct {
// contains filtered or unexported fields
}
func NewAclBatcher ¶
func NewAclBatcher(wsId string, done chan string, timeout time.Duration) *AclBatcher
func (*AclBatcher) Start ¶
func (a *AclBatcher) Start()
type Handler ¶
type Handler struct { idm.UnimplementedWorkspaceServiceServer service.UnimplementedLoginModifierServer // contains filtered or unexported fields }
Handler definition
func (*Handler) CreateWorkspace ¶
func (h *Handler) CreateWorkspace(ctx context.Context, req *idm.CreateWorkspaceRequest) (*idm.CreateWorkspaceResponse, error)
CreateWorkspace in database
func (*Handler) DeleteWorkspace ¶
func (h *Handler) DeleteWorkspace(ctx context.Context, req *idm.DeleteWorkspaceRequest) (*idm.DeleteWorkspaceResponse, error)
DeleteWorkspace from database
func (*Handler) ModifyLogin ¶ added in v4.2.6
func (h *Handler) ModifyLogin(ctx context.Context, req *service.ModifyLoginRequest) (*service.ModifyLoginResponse, error)
ModifyLogin implements login modification
func (*Handler) SearchWorkspace ¶
func (h *Handler) SearchWorkspace(request *idm.SearchWorkspaceRequest, response idm.WorkspaceService_SearchWorkspaceServer) error
SearchWorkspace in database
func (*Handler) StreamWorkspace ¶
func (h *Handler) StreamWorkspace(streamer idm.WorkspaceService_StreamWorkspaceServer) error
StreamWorkspace from database
type WsCleaner ¶
type WsCleaner struct { Handler idm.WorkspaceServiceServer // contains filtered or unexported fields }
WsCleaner subscribe to ACL:Delete events to clean workspaces that do not have any ACLs anymore
func NewWsCleaner ¶
func NewWsCleaner(ctx context.Context, h idm.WorkspaceServiceServer) *WsCleaner
Click to show internal directories.
Click to hide internal directories.