gorm

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: May 28, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Source

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

func (*Source) Open

func (s *Source) Open(string) (fs.File, error)

func (*Source) ReadFile

func (s *Source) ReadFile(name string) ([]byte, error)

type SystemConfig

type SystemConfig struct {
	gorm.Model
	Name        string `gorm:"column:name" json:"name"`
	Ext         string `gorm:"column:ext" json:"ext"`
	Description string `gorm:"column:description" json:"description"`
	Tags        []Tag  `gorm:"-" json:"tags"`
	Metadata    []byte `gorm:"column:metadata" json:"metadata"`
}

func (*SystemConfig) GenerateBytes

func (c *SystemConfig) GenerateBytes() ([]byte, error)

GenerateBytes generate bytes

type Tag

type Tag struct {
	Name     string `json:"name"`
	Value    string `json:"value"`
	DataType string `json:"dataType"`
}

Jump to

Keyboard shortcuts

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