Documentation ¶
Index ¶
- Constants
- func CacheAnnotations(params *CacheAnnotationsParams) error
- func GetCachedAnnotations(params *CachedAnnotationsParams) ([]*models.GOAnnotation, bool, error)
- func GetGeneFromCache(ctx context.Context, cache repository.Repository, gene string) (*models.Gene, error)
- func GetUniprotIDForGene(gene string, redis repository.Repository) (string, error)
- type CacheAnnotationsParams
- type CachedAnnotationsParams
Constants ¶
View Source
const ( RedisKey = "redis" GenePrefix = "genelookup:" GeneHash = "GENE2NAME/geneids" )
Variables ¶
This section is empty.
Functions ¶
func CacheAnnotations ¶
func CacheAnnotations(params *CacheAnnotationsParams) error
func GetCachedAnnotations ¶
func GetCachedAnnotations( params *CachedAnnotationsParams, ) ([]*models.GOAnnotation, bool, error)
func GetGeneFromCache ¶
func GetGeneFromCache(ctx context.Context, cache repository.Repository, gene string) (*models.Gene, error)
func GetUniprotIDForGene ¶
func GetUniprotIDForGene( gene string, redis repository.Repository, ) (string, error)
Types ¶
type CacheAnnotationsParams ¶
type CacheAnnotationsParams struct { Ctx context.Context Gene string Annotations []*models.GOAnnotation Redis repository.Repository Logger *logrus.Entry }
type CachedAnnotationsParams ¶
type CachedAnnotationsParams struct { Ctx context.Context Gene string Redis repository.Repository Logger *logrus.Entry }
Click to show internal directories.
Click to hide internal directories.