storage

package
Version: v1.2.132559162 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseDB added in v1.2.84840979

func CloseDB()

CloseDB closes the db

func GetCache

func GetCache(key string) (string, error)

GetCache gets an item from the cache bucket

func LoadDB added in v1.1.514

func LoadDB()

LoadDB initializes and loads the DB instance

func PutCache

func PutCache(key, value string) error

PutCache puts an item in the cache bucket

Types

type Resource

type Resource struct {
	ID                string `json:"id"`
	Name              string `json:"n"`
	ResourceGroupID   string `json:"rgid"`
	ResourceGroupName string `json:"rgn"`
}

Resource is the struct used to store crawled resources

Source Files

Jump to

Keyboard shortcuts

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