zblob

package
v2.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMetamodel

func GetMetamodel(data string) metamodel.MetaModel

Types

type Document

type Document struct {
	ModelCid    string                      `json:"model_cid"`
	Title       string                      `json:"title"`
	Description string                      `json:"description"`
	Keywords    string                      `json:"keywords"`
	Declaration metamodel.DeclarationObject `json:"declaration"`
}

func (Document) Cid

func (d Document) Cid() string

type Zblob

type Zblob struct {
	ID           int64     `json:"-"`
	IpfsCid      string    `json:"cid"`
	Base64Zipped string    `json:"data"`
	Title        string    `json:"title"`
	Description  string    `json:"description"`
	Keywords     string    `json:"keywords"`
	Referer      string    `json:"-"`
	CreatedAt    time.Time `json:"created"`
}

Zblob is a data wrapper for encapsulating a model

func (*Zblob) ToDocument

func (z *Zblob) ToDocument() Document

Jump to

Keyboard shortcuts

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