dbmarker

package
v2.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package dbmarker provides a tool for marking database data.

Index

Constants

View Source
const (

	// LogicalDataType defines a logical data type.
	LogicalDataType = "logical"

	// PhysicalDataType defines a physical data type.
	PhysicalDataType = "physical"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DataStateAt string `yaml:"dataStateAt"`
	DataType    string `yaml:"dataType"`
}

Config describes marked data.

type Marker

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

Marker marks database data depends on a retrieval process.

func NewMarker

func NewMarker(dataPath string) *Marker

NewMarker creates a new DBMarker.

func (*Marker) CreateConfig

func (m *Marker) CreateConfig() error

CreateConfig creates a new DBMarker config file.

func (*Marker) GetConfig

func (m *Marker) GetConfig() (*Config, error)

GetConfig provides a loaded DBMarker config.

func (*Marker) SaveConfig

func (m *Marker) SaveConfig(cfg *Config) error

SaveConfig stores a DBMarker config.

Jump to

Keyboard shortcuts

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