helpers

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const AuthTokenEnvVariable string = "TEST_AUTH_TOKEN"

Variables

This section is empty.

Functions

This section is empty.

Types

type SharedContext

type SharedContext struct {
	// If set to true using command line argument, the same set of tests will be run against Redis on port 6379
	UseRedis bool

	// Client the wrapper Client implements all methods of the Cmdable interface supporting all Redis commands.
	// Note that this doesn't include commands exposed by ClusterClient, which isn't applicable if you're
	// using Momento as we provide resource-level isolation and have no notion of a cluster exposed to our customers.
	// This type declaration here serves as a validation and compile-time errors will occur if we do not implement
	// any particular API exposed the go-redis Client
	Client        redis.Cmdable
	MomentoClient momento.CacheClient
	Ctx           context.Context
}

func NewSharedContext

func NewSharedContext() SharedContext

func (SharedContext) CreateCache

func (SharedContext) CreateCache(ctx context.Context, client momento.CacheClient, cacheName string) (responses.CreateCacheResponse, error)

func (SharedContext) DeleteCache

func (SharedContext) DeleteCache(ctx context.Context, client momento.CacheClient, cacheName string) (responses.DeleteCacheResponse, error)

Jump to

Keyboard shortcuts

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