cfkv

package
v1.12.2 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: Apache-2.0 Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCFWorkersKV

func NewCFWorkersKV(logger logger.Logger) state.Store

NewCFWorkersKV returns a new CFWorkersKV.

Types

type CFWorkersKV

type CFWorkersKV struct {
	*workers.Base
	state.BulkStore
	// contains filtered or unexported fields
}

CFWorkersKV is a state store backed by Cloudflare Workers KV.

func (*CFWorkersKV) Close

func (q *CFWorkersKV) Close() error

Close the component

func (*CFWorkersKV) Delete

func (q *CFWorkersKV) Delete(parentCtx context.Context, stateReq *state.DeleteRequest) error

func (CFWorkersKV) Features

func (q CFWorkersKV) Features() []state.Feature

Features returns the features supported by this state store.

func (*CFWorkersKV) Get

func (q *CFWorkersKV) Get(parentCtx context.Context, stateReq *state.GetRequest) (*state.GetResponse, error)

func (*CFWorkersKV) GetComponentMetadata

func (q *CFWorkersKV) GetComponentMetadata() (metadataInfo metadata.MetadataMap)

func (*CFWorkersKV) Init

func (q *CFWorkersKV) Init(_ context.Context, metadata state.Metadata) error

Init the component.

func (*CFWorkersKV) Set

func (q *CFWorkersKV) Set(parentCtx context.Context, stateReq *state.SetRequest) error

Jump to

Keyboard shortcuts

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