manager

package
v0.0.0-...-7dbb591 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Actor

type Actor struct {
	// contains filtered or unexported fields
}

Actor allows to perform operations on the servers.

func (*Actor) GetDBInfos

func (a *Actor) GetDBInfos() ([]database.Info, error)

GetDBInfos returns infos about the servers dbs.

func (*Actor) GetKey

func (a *Actor) GetKey(id string, dbInfo database.Info, client *client.PIR) (string, error)

GetKey performs a simple query that return a key from an email

func (*Actor) RunQueries

func (a *Actor) RunQueries(queries [][]byte) [][]byte

RunQueries dispatch queries in parallel to all servers. It then combines the answers.

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

Manager is used to initialize an actor that can manager servers

func NewManager

func NewManager(config utils.Config, opts []grpc.CallOption) Manager

NewManager returns a new initialized manager

func (*Manager) Connect

func (m *Manager) Connect() (Actor, error)

Connect connects to the server and returns an Actor that can query the servers.

Jump to

Keyboard shortcuts

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