mdai-data-core

module
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2025 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/decisiveai/mdai-data-core

Usage

Basic usage example:

package main

import (
	"context"

	datacore "github.com/decisiveai/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.

Jump to

Keyboard shortcuts

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