registry

package
v1.52.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: BSD-2-Clause Imports: 14 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	PhenoOntology            = "Dicty Phenotypes"
	EnvOntology              = "Dicty Environment"
	AssayOntology            = "Dictyostelium Assay"
	MutagenesisOntology      = "Dd Mutagenesis Method"
	DictyAnnoOntology        = "dicty_annotation"
	StrainCharOnto           = "dicty_strain_characteristics"
	StrainInvOnto            = "strain_inventory"
	PlasmidInvOnto           = "plasmid_inventory"
	StrainInvTag             = "strain_inventory"
	PlasmidInvTag            = "plasmid inventory"
	DictyStrainPropOntology  = "dicty_strain_property"
	DictyPlasmidPropOntology = "dicty_plasmid_keyword"
	InvLocationTag           = "location"
	GwdiStrainTag            = "REMI-seq"
	GeneralStrainTag         = "general strain"
	BacterialStrainTag       = "bacterial strain"
	BacterialFoodSourceTag   = "bacterial food source"
	LiteratureTag            = "pubmed id"
	NoteTag                  = "public note"
	SysnameTag               = "systematic name"
	MutmethodTag             = "mutagenesis method"
	MuttypeTag               = "mutant type"
	GenoTag                  = "genotype"
	GoldenBraidPlasmidTag    = "GB vector"
	RegularPlasmidTag        = "vector"
	SynTag                   = "synonym"
	EmptyValue               = "novalue"
	S3Bucket                 = "s3bucket"
	S3BucketPath             = "s3bucket_path"
	// NcbiAPIKey is the registry record key of the NCBI api key, not the key.
	NcbiAPIKey = "ncbi_api_key" //nolint:gosec
	NcbiEmail  = "ncbi_email"
	NcbiTool   = "ncbi_tool"
)

constants used with modware-annotation

View Source
const (
	USER       = "user"
	ROLE       = "role"
	PERMISSION = "permission"
	STOCK      = "stock"
	ORDER      = "order"
	CONTENT    = "content"
	FeatAnno   = "feature-annotation"
	ANNOTATION = "annotation"
	AUTH       = "auth"
	IDENTITY   = "identity"
	ORGANISM   = "organism"
	REDISREPO  = "redis"
	S3CLIENT   = "s3client"
	S3STORAGE  = "s3storage"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Registry

type Registry interface {
	ServiceMap() map[string]string
	AddAPIEndpoint(key, endpoint string)
	AddAPIConnection(key string, conn *grpc.ClientConn)
	AddRepository(key string, st repository.Repository)
	AddAuthClient(key string, auth authentication.LogtoClient)
	AddS3Client(key string, client *minio.Client)
	GetS3Client(key string) *minio.Client
	GetAuthClient(key string) authentication.LogtoClient
	GetAPIConnection(key string) (conn *grpc.ClientConn)
	GetAPIEndpoint(key string) string
	GetUserClient(key string) user.UserServiceClient
	GetRoleClient(key string) user.RoleServiceClient
	GetPermissionClient(key string) user.PermissionServiceClient
	GetStockClient(key string) stock.StockServiceClient
	GetOrderClient(key string) order.OrderServiceClient
	GetContentClient(key string) content.ContentServiceClient
	GetAnnotationClient(key string) annotation.TaggedAnnotationServiceClient
	GetFeatAnnotationClient(key string) feature.FeatureAnnotationServiceClient
	GetIdentityClient(key string) identity.IdentityServiceClient
	GetRedisRepository(key string) repository.Repository
	AddRecord(string, string)
	GetRecord(string) string
}

func NewRegistry

func NewRegistry() Registry

NewRegistry constructs a hashmap for our grpc clients

Jump to

Keyboard shortcuts

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