database

package
v0.0.0-...-34558e8 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2020 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDocument

func CreateDocument(content string) string

func GetDocument

func GetDocument(key string) (string, bool)

func InitiateClient

func InitiateClient() bool

InitiateClient - Initialize the database client

Types

type Document

type Document struct {
	Key         string `json:"_id"`
	FileContent string `json:"fileContent"`
}

type RawDocument

type RawDocument struct {
	FileContent string `json:"fileContent"`
	CreatedAt   int64  `json:"createdAt"`
}

Jump to

Keyboard shortcuts

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