Documentation ¶
Index ¶
- Constants
- func BadgerConfiguration() string
- func BaseConfiguration() string
- func CDNConfiguration() string
- func EmbeddedOlricConfiguration() string
- func EmbeddedOlricPlainConfigurationWithoutAdditionalYAML() string
- func EtcdConfiguration() string
- func GetCacheProviderClientAndMatchedURL(key string, ...) (types.AbstractProviderInterface, configurationtypes.URL)
- func GetMatchedURL(key string) configurationtypes.URL
- func GetTokenName() string
- func GetValidToken() *http.Cookie
- func MockConfiguration(configurationToLoad func() string) *configuration.Configuration
- func MockInitializeRegexp(configurationInstance configurationtypes.AbstractConfigurationInterface) regexp.Regexp
- func NutsConfiguration() string
- func OlricConfiguration() string
- func RedisConfiguration() string
- func ValidatePanic(t *testing.T, f func())
Constants ¶
const DOMAIN = "domain.com"
DOMAIN is the domain constant
const PATH = "/testing"
PATH is the path constant
Variables ¶
This section is empty.
Functions ¶
func BadgerConfiguration ¶
func BadgerConfiguration() string
BadgerConfiguration simulate the configuration for the Badger storage
func BaseConfiguration ¶
func BaseConfiguration() string
BaseConfiguration is the legacy configuration
func CDNConfiguration ¶ added in v1.6.19
func CDNConfiguration() string
CDNConfiguration is the CDN configuration
func EmbeddedOlricConfiguration ¶
func EmbeddedOlricConfiguration() string
EmbeddedOlricConfiguration is the olric included configuration
func EmbeddedOlricPlainConfigurationWithoutAdditionalYAML ¶
func EmbeddedOlricPlainConfigurationWithoutAdditionalYAML() string
EmbeddedOlricPlainConfigurationWithoutAdditionalYAML simulate the configuration for the embedded Olric storage
func EtcdConfiguration ¶ added in v1.6.10
func EtcdConfiguration() string
EtcdConfiguration simulate the configuration for the Nuts storage
func GetCacheProviderClientAndMatchedURL ¶
func GetCacheProviderClientAndMatchedURL(key string, configurationMocker func() configurationtypes.AbstractConfigurationInterface, factory func(configurationInterface configurationtypes.AbstractConfigurationInterface) (types.AbstractProviderInterface, error)) (types.AbstractProviderInterface, configurationtypes.URL)
GetCacheProviderClientAndMatchedURL will work as a factory to build providers from configuration and get the URL from the key passed in parameter
func GetMatchedURL ¶
func GetMatchedURL(key string) configurationtypes.URL
GetMatchedURL is an helper to mock the matchedURL
func MockConfiguration ¶
func MockConfiguration(configurationToLoad func() string) *configuration.Configuration
MockConfiguration is an helper to mock the configuration
func MockInitializeRegexp ¶
func MockInitializeRegexp(configurationInstance configurationtypes.AbstractConfigurationInterface) regexp.Regexp
MockInitializeRegexp is an helper to mock the regexp initialization
func NutsConfiguration ¶ added in v1.6.9
func NutsConfiguration() string
NutsConfiguration simulate the configuration for the Nuts storage
func OlricConfiguration ¶
func OlricConfiguration() string
OlricConfiguration is the olric included configuration
func RedisConfiguration ¶ added in v1.6.19
func RedisConfiguration() string
RedisConfiguration simulate the configuration for the Nuts storage
func ValidatePanic ¶
ValidatePanic is an helper to check if function should panic
Types ¶
This section is empty.