package
3.0.0+incompatible
Repository: https://github.com/ldsec/medco.git
Documentation: pkg.go.dev

# Functions

AuthenticateUser authenticates user and creates principal with user information, including its authorizations returns error if user is not authorized.
AuthorizeRestAPIEndpoint authorizes the REST API endpoint requested by the user.
FetchAuthorizedExploreQueryType returns the highest permission query type for a given user.
InitializeConnectionToDB initializes the database handle.
SetForTesting changes utility variables for unit tests.
SetLogLevel initializes the log levels of all loggers.
TestDBConnection tests the connection to medco connector postgresql data base.
TestI2B2DBConnection tests the connection to I2B2 data base.

# Variables

DBConnection is the connection to the database.
DBHost is the host of the DB.
DBLoginPassword is the database login password.
DBLoginUser is the database login user.
DBName is the name of the database.
DBPort is the number of the port used by the DB.
ExploreQueryPermissionLevel assigns a permission level to each ExploreQueryType.
I2B2DBConnection is the connection to the i2b2 database.
I2B2DBHost is the host of the I2B2 DB.
I2B2DBLoginPassword is the I2B2 database login password.
I2B2DBLoginUser is the I2B2 database login user.
I2B2DBName is the name of the I2B2 database.
I2B2DBPort is the number of the port used by the I2B2 DB.
I2b2HiveURL is the URL of the i2b2 hive this connector is using.
I2b2LoginDomain is the i2b2 login domain.
I2b2LoginPassword is the i2b2 login password.
I2b2LoginProject is the i2b2 login project.
I2b2LoginUser is the i2b2 login user.
I2b2OntMaxElements is the maximum number of elements retrieved from the i2b2 ontology by the connector.
I2b2WaitTimeSeconds is the i2b2 timeout (seconds).
JwksTimeout is the timeout for JWKS requests made to OIDC providers.
LogLevel is the log level, assuming the same convention as the cothority / unlynx log levels: TRACE(5), DEBUG(4), INFO(3), WARNING(2), ERROR(1), FATAL(0).
MedCoNodeIdx is the index of this node in the list of nodes.
MedCoNodesURL is the slice of the URL of all the MedCo nodes, with the order matching the position in the slice.
MedCoObfuscationMin is the minimum variance passed to the random distribution for the obfuscation.
OidcProviders are the OIDC providers this node trusts.
UnlynxGroupFilePath is the path of the unlynx group file from which is derived the cothority public key.
UnlynxTimeoutSeconds is the unlynx communication timeout (seconds).