mgdb

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: 13 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 New

func New(options ...source.Option) (*Source, error)

New source

func (*Source) GetExtend

func (s *Source) GetExtend() string

GetExtend get extend

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 {
	mgm.DefaultModel `bson:",inline"`
	Name             string `bson:"name" json:"name"`
	Ext              string `bson:"ext" json:"ext"`
	Tags             []Tag  `bson:"tags" json:"tags"`
	Description      string `bson:"description" json:"description"`
	Metadata         any    `bson:"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