redisstate

package
v0.0.0-...-68f06ca Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: MIT Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CastRedisPropertiesToStateEntry

func CastRedisPropertiesToStateEntry(id string, properties map[string]string) (states.StateEntry, error)

Types

type RedisStateProvider

type RedisStateProvider struct {
	Config  RedisStateProviderConfig
	Context *contexts.ManagerContext
	Client  *redis.Client
	Ctx     context.Context
	Cancel  context.CancelFunc
}

func (*RedisStateProvider) Delete

func (r *RedisStateProvider) Delete(ctx context.Context, request states.DeleteRequest) error

func (*RedisStateProvider) Get

func (*RedisStateProvider) ID

func (r *RedisStateProvider) ID() string

func (*RedisStateProvider) Init

func (*RedisStateProvider) InitWithMap

func (i *RedisStateProvider) InitWithMap(properties map[string]string) error

func (*RedisStateProvider) List

func (*RedisStateProvider) SetContext

func (r *RedisStateProvider) SetContext(ctx *contexts.ManagerContext)

func (*RedisStateProvider) Upsert

type RedisStateProviderConfig

type RedisStateProviderConfig struct {
	Name        string `json:"name"`
	Host        string `json:"host"`
	Password    string `json:"password,omitempty"`
	RequiresTLS bool   `json:"requiresTLS,omitempty"`
}

func RedisStateProviderConfigFromMap

func RedisStateProviderConfigFromMap(properties map[string]string) (RedisStateProviderConfig, error)

Jump to

Keyboard shortcuts

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