mdai-data-core

module
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: AGPL-3.0

README

Chores codecov

mdai-data-core

Overview

mdai-data-core is a Go library designed for efficient and structured interaction with Valkey storage.

It simplifies:

  • Variable Access: Conveniently encapsulates and manages variables stored in Valkey.
  • Audit Management: Provides robust auditing capabilities for operations performed on Valkey variables and other critical MDAI operations.
  • Handlers Integration: Offers streamlined handlers interface for interacting directly with Valkey-stored data.

Installation

go get github.com/mydecisive/mdai-data-core

Usage

Basic usage example:

package main

import (
	"context"

	datacore "github.com/mydecisive/mdai-data-core/variables"
)

func main() {
	// initialize your valkeyClient (valkey-go), provide logger
	client := datacore .NewValkeyAdapter(valKeyClient, zapLogger)
	value, found, err := client.GetString(context.TODO(), "your_variable_name", "hub_name")
	// proceed with error hadling and the rest of your logic
}

To Generate Mocks

run

make generate

Directories

Path Synopsis
internal
mocks/eventing/publisher
Package publisher is a generated GoMock package.
Package publisher is a generated GoMock package.
Package mock and its sub packages contains mocks that will be used for testing purposes.
Package mock and its sub packages contains mocks that will be used for testing purposes.

Jump to

Keyboard shortcuts

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