grpc

package
v4.3.2-rc1 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2023 License: AGPL-3.0 Imports: 23 Imported by: 0

Documentation

Overview

Package grpc provides the persistence for workspaces

Index

Constants

Variables

This section is empty.

Functions

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

CreateWorkspace in database

func (*Handler) DeleteWorkspace

DeleteWorkspace from database

func (*Handler) ModifyLogin added in v4.2.6

ModifyLogin implements login modification

func (*Handler) Name

func (h *Handler) Name() string

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 (*WsCleaner) Handle

func (c *WsCleaner) Handle(ctx context.Context, msg *idm.ChangeEvent) error

Jump to

Keyboard shortcuts

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