storage

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

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

Go to latest
Published: Apr 18, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sqlite

type Sqlite struct {
	// contains filtered or unexported fields
}

func NewStorage

func NewStorage(filePath string) (*Sqlite, error)

func (*Sqlite) Close

func (storage *Sqlite) Close()

func (*Sqlite) GetSearchResults

func (storage *Sqlite) GetSearchResults(uuid string) (string, error)

func (*Sqlite) GetUsers

func (storage *Sqlite) GetUsers() ([]User, error)

func (*Sqlite) SaveSearchResults

func (storage *Sqlite) SaveSearchResults(uuid string, results string) error

type Storage

type Storage interface {
	Close()
	SaveSearchResults(uuid string, results string) error
	GetSearchResults(uuid string) (string, error)
	GetUsers() ([]User, error)
}

type User

type User struct {
	Id      int64
	OmbiUrl string
	OmbiKey string
}

Jump to

Keyboard shortcuts

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