core

package
v0.0.0-...-b2a47e0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FieldSpec

type FieldSpec struct {
	Type     string `mapstructure:"type"`
	Nullable bool   `mapstructure:"nullable"`
}

type Row

type Row struct {
	Data map[string]interface{} `mapstructure:"data"`
}

type Schema

type Schema struct {
	Fields     map[string]FieldSpec `mapstructure:"fields"`
	PrimaryKey []string             `mapstructure:"primaryKey"`
}

func GenesisSchema

func GenesisSchema() Schema

func (Schema) ValidateRow

func (s Schema) ValidateRow(r Row) error

Jump to

Keyboard shortcuts

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