cistore

package
v0.0.0-...-2215086 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCacheProductStore

func NewCacheProductStore(cloudInfoExpiration, cleanupInterval time.Duration, logger cloudinfo.Logger) cloudinfo.CloudInfoStore

NewCacheProductStore creates a new store instance. the backing cache is initialized with the defaultExpiration and cleanupInterval

func NewCassandraProductStore

func NewCassandraProductStore(config cassandra.Config, logger cloudinfo.Logger) cloudinfo.CloudInfoStore

func NewCloudInfoStore

func NewCloudInfoStore(conf Config, log cloudinfo.Logger) cloudinfo.CloudInfoStore

NewCloudInfoStore builds a new cloudinfo store based on the passed in configuration This method is in charge to create the appropriate store instance eventually to implement a fallback mechanism to the default store

func NewRedisProductStore

func NewRedisProductStore(config redis.Config, log cloudinfo.Logger) cloudinfo.CloudInfoStore

Types

type Config

type Config struct {
	Redis     redis.Config
	GoCache   GoCacheConfig
	Cassandra cassandra.Config
}

CloudInfoStore configuration

type GoCacheConfig

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

GoCacheConfig configuration

Jump to

Keyboard shortcuts

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