dbd

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2023 License: GPL-3.0 Imports: 7 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseBuildRange

func ParseBuildRange(str string) (br vsn.BuildRange, err error)

Types

type ColumnDefinition

type ColumnDefinition struct {
	Name          string
	Type          ColumnType
	ForeignRecord string
	ForeignKey    string
	Verified      bool
	HintArray     bool // Set to true if any layout treats the field as an array.
	HintBits      int
}

type ColumnType

type ColumnType uint8
const (
	Uint ColumnType = iota
	Int
	Float
	Bool
	String
	LocString
)

type Definition

type Definition struct {
	Name    string
	Columns []ColumnDefinition
	Layouts []Layout
}

func DecodeDefinition

func DecodeDefinition(name string, rd io.Reader) (*Definition, error)

func (*Definition) Column

func (d *Definition) Column(name string) *ColumnDefinition

type Layout

type Layout struct {
	Hashes         []string
	VerifiedBuilds []vsn.Build
	BuildRanges    []vsn.BuildRange
	Columns        []LayoutColumn
}

func (*Layout) Column

func (l *Layout) Column(name string) *LayoutColumn

func (*Layout) IDColumn

func (l *Layout) IDColumn() *LayoutColumn

type LayoutColumn

type LayoutColumn struct {
	Options   []string
	Name      string
	Bits      int
	Signed    bool
	ArraySize int
}

func (LayoutColumn) HasOption

func (lc LayoutColumn) HasOption(name string) bool

Jump to

Keyboard shortcuts

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