dbOperator

package
v0.0.0-...-5c498b8 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2018 License: MIT Imports: 11 Imported by: 1

Documentation

Overview

package main

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CrawlAllSchema

func CrawlAllSchema(db *bolt.DB)

func CrawlData

func CrawlData()

func GetAllResources

func GetAllResources(db *sql.DB, tablename string) ([][]byte, error)

func GetElementById

func GetElementById(db *sql.DB, tablename string, key string) ([]byte, error)

func GetElementsBySearchField

func GetElementsBySearchField(db *sql.DB, tablename string, value string) ([][]byte, error)

func GetSchemaByBucket

func GetSchemaByBucket(db *sql.DB, blockName string) ([]byte, error)

Types

type Node

type Node struct {
	Description string `json:"description"`
	Type        string `json:"type"`
	Format      string `json:"format"`
}

type Schema

type Schema struct {
	Required    []string        `json:"required"`
	Title       string          `json:"title"`
	Properties  map[string]Node `json:"properties"`
	Description string          `json:"description"`
	SSchema     string          `json:"$schema"`
	Type        string          `json:"type"`
}

func CrawlSchema

func CrawlSchema(addr string) (Schema, error)

Jump to

Keyboard shortcuts

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