Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type KVClient ¶
type KVClient interface { // Get retrieves the operation body from the KV store with the given operation hash as the key Get(ctx context.Context, operationHash string) ([]byte, error) // Set saves the operation body in the KV store with the given operation hash as the key and the ttl in seconds Set(ctx context.Context, operationHash string, operationBody []byte, ttl int) error // Close closes the KV store connection Close() }
func NewRedisClient ¶
func NewRedisClient(opts *RedisOptions) (KVClient, error)
type Options ¶
type Options struct { Logger *zap.Logger ApqConfig *config.AutomaticPersistedQueriesConfig KVClient KVClient }
type PersistedOperation ¶
type RedisOptions ¶
type RedisOptions struct { Logger *zap.Logger StorageConfig *config.BaseStorageProvider ApqConfig *config.AutomaticPersistedQueriesConfig Prefix string }
Click to show internal directories.
Click to hide internal directories.