Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( EmptyModel = &model.Zblob{ Title: "Empty", Description: "empty petriNet Model", Keywords: "empty", Base64Zipped: emptyModel, IpfsCid: emptyModelCid, } EmptySnippet = &model.Zblob{ Title: "Empty", Description: "empty js Snippet", Keywords: "empty", Base64Zipped: emptySnippet, IpfsCid: emptySnippetCid, } )
Functions ¶
func CreateBlobTable ¶
func CreateTables ¶
Types ¶
type ModelTable ¶
type ModelTable struct {
// contains filtered or unexported fields
}
func NewModelTable ¶
func NewModelTable(db *sql.DB) ModelTable
func (ModelTable) Create ¶
func (m ModelTable) Create(ipfsCid, base64Zipped, title, description, keywords, referrer string) (int64, error)
func (ModelTable) GetMaxId ¶
func (m ModelTable) GetMaxId() int64
type SnippetTable ¶
type SnippetTable struct {
// contains filtered or unexported fields
}
func NewSnippetTable ¶
func NewSnippetTable(db *sql.DB) SnippetTable
func (SnippetTable) Create ¶
func (m SnippetTable) Create(ipfsCid, base64Zipped, title, description, keywords, referrer string) (int64, error)
func (SnippetTable) GetMaxId ¶
func (m SnippetTable) GetMaxId() int64
Click to show internal directories.
Click to hide internal directories.