schemas

package
v0.0.0-...-4f7ee9a Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package schemas provides a [somewhat] simplified way to add new structures into the project.

Index

Constants

This section is empty.

Variables

View Source
var Registry = make(map[string]Schema)

Registry contains all registered schemas.

Functions

func LoadSchemas

func LoadSchemas(dirPath string) error

LoadSchemas loads and registers YAML schemas.

func Register

func Register(name string, columns []string, stringCols []string, floatCols []string, fieldSize int)

Register is a helper function to register schemas.

Types

type Schema

type Schema struct {
	FieldSize int
	Columns   []string
	Strings   map[string]bool
	Floats    map[string]bool
}

Schema defines a structure for DBC.

Jump to

Keyboard shortcuts

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