storage

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2025 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logic

type Logic struct {
	// contains filtered or unexported fields
}

func NewLogic

func NewLogic(storage Persistence) *Logic

func (*Logic) Get

func (s *Logic) Get(ctx context.Context, key model.StorageKey) (*structpb.Struct, error)

func (*Logic) Set

func (s *Logic) Set(ctx context.Context, key model.StorageKey, value *structpb.Struct) error

type Persistence

type Persistence interface {
	Get(ctx context.Context, key model.StorageKey) (*structpb.Struct, error)
	Set(ctx context.Context, key model.StorageKey, value *structpb.Struct) error
}

Jump to

Keyboard shortcuts

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