grpc

package
v2.2.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2021 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 {
	// contains filtered or unexported fields
}

Handler definition.

func NewHandler added in v1.2.0

func NewHandler() *Handler

func (*Handler) ListUserMetaNamespace

List all namespaces from underlying DAO.

func (*Handler) ReadNodeStream

Implements ReadNodeStream to be a meta provider.

func (*Handler) SearchUserMeta

SearchUserMeta retrieves meta based on various criteria.

func (*Handler) Stop added in v1.4.1

func (h *Handler) Stop()

func (*Handler) UpdateUserMeta

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

UpdateUserMeta adds, updates or deletes user meta.

func (*Handler) UpdateUserMetaNamespace

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

Update/Delete a namespace.

Jump to

Keyboard shortcuts

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