redis

package
v0.0.0-...-f29e771 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// UniprotCacheKey is the key for storing the Redis hash field value
	// for UniprotID -> Gene Name/ID
	UniprotCacheKey = "UNIPROT2NAME/uniprot"
	// GeneCacheKey is the key for storing the Redis has field value
	// for Gene Name/ID -> Uniprot ID
	GeneCacheKey = "GENE2UNIPROT/gene"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisUniprotLoader

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

RedisUniprotLoader implements UniprotLoader for Redis

func (*RedisUniprotLoader) Load

func (r *RedisUniprotLoader) Load(maps []UniprotMap) error

type UniprotLoader

type UniprotLoader interface {
	Load(maps []UniprotMap) error
}

UniprotLoader defines the interface for loading Uniprot mappings

func NewRedisUniprotLoader

func NewRedisUniprotLoader(client *rds.Client) UniprotLoader

type UniprotMap

type UniprotMap struct {
	UniprotID string
	GeneID    string
	GeneSym   []string
}

Jump to

Keyboard shortcuts

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