grpc

package
v4.0.0-rc5 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2022 License: AGPL-3.0 Imports: 22 Imported by: 0

Documentation

Overview

Package grpc provides persistence layer for user-defined metadata

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Cleaner

type Cleaner struct {
	Dao meta.DAO
}

Cleaner cleans bookmarks on user deletion

func NewCleaner

func NewCleaner(dao dao.DAO) *Cleaner

func (*Cleaner) Handle

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

type Handler

type Handler struct {
	idm.UnimplementedUserMetaServiceServer
	tree.UnimplementedNodeProviderStreamerServer
	// contains filtered or unexported fields
}

Handler definition.

func NewHandler

func NewHandler(ctx context.Context, dao meta.DAO) *Handler

func (*Handler) ListUserMetaNamespace

ListUserMetaNamespace List all namespaces from underlying DAO.

func (*Handler) Name

func (h *Handler) Name() string

func (*Handler) ReadNodeStream

func (h *Handler) ReadNodeStream(stream tree.NodeProviderStreamer_ReadNodeStreamServer) error

ReadNodeStream Implements ReadNodeStream to be a meta provider.

func (*Handler) SearchUserMeta

func (h *Handler) SearchUserMeta(request *idm.SearchUserMetaRequest, stream idm.UserMetaService_SearchUserMetaServer) error

SearchUserMeta retrieves meta based on various criteria.

func (*Handler) Stop

func (h *Handler) Stop()

func (*Handler) UpdateUserMeta

func (h *Handler) UpdateUserMeta(ctx context.Context, request *idm.UpdateUserMetaRequest) (*idm.UpdateUserMetaResponse, error)

UpdateUserMeta adds, updates or deletes user meta.

func (*Handler) UpdateUserMetaNamespace

func (h *Handler) UpdateUserMetaNamespace(ctx context.Context, request *idm.UpdateUserMetaNamespaceRequest) (*idm.UpdateUserMetaNamespaceResponse, error)

UpdateUserMetaNamespace Update/Delete a namespace.

Jump to

Keyboard shortcuts

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