ravendb

package
v1.17.2 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRavenDB

func NewRavenDB(logger logger.Logger) state.Store

func RandStringRunes

func RandStringRunes(n int) string

Types

type Item

type Item struct {
	ID    string
	Value string
	Etag  string
	TTL   *time.Time
}

type RavenDB

type RavenDB struct {
	state.BulkStore
	// contains filtered or unexported fields
}

func (*RavenDB) BulkGet

func (*RavenDB) Close

func (r *RavenDB) Close() error

func (*RavenDB) Delete

func (r *RavenDB) Delete(ctx context.Context, req *state.DeleteRequest) error

func (*RavenDB) Features

func (r *RavenDB) Features() []state.Feature

Features returns the features available in this state store.

func (*RavenDB) Get

func (r *RavenDB) Get(ctx context.Context, req *state.GetRequest) (*state.GetResponse, error)

func (*RavenDB) GetComponentMetadata

func (r *RavenDB) GetComponentMetadata() (metadataInfo metadata.MetadataMap)

func (*RavenDB) Init

func (r *RavenDB) Init(ctx context.Context, metadata state.Metadata) (err error)

func (*RavenDB) Multi

func (r *RavenDB) Multi(ctx context.Context, request *state.TransactionalStateRequest) error

func (*RavenDB) Ping

func (r *RavenDB) Ping(ctx context.Context) error

func (*RavenDB) Set

func (r *RavenDB) Set(ctx context.Context, req *state.SetRequest) error

type RavenDBMetadata

type RavenDBMetadata struct {
	DatabaseName string
	ServerURL    string
	CertPath     string
	KeyPath      string
	EnableTTL    bool
	TTLFrequency int64
}

Jump to

Keyboard shortcuts

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