datastore

package
v1.2.7 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Datastore

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

func NewStore

func NewStore(logDatastore bool) *Datastore

func (*Datastore) AppendResponse

func (ds *Datastore) AppendResponse(s string)

We store the response

func (*Datastore) Delete

func (ds *Datastore) Delete(k string)

func (Datastore) Get

func (ds Datastore) Get(index string) (res interface{}, err error)

func (*Datastore) Set

func (ds *Datastore) Set(index string, value interface{}) error

func (*Datastore) SetMap

func (ds *Datastore) SetMap(smap map[string]interface{}) error

func (*Datastore) SetWithQjson

func (ds *Datastore) SetWithQjson(jsonResponse string, storeResponse map[string]string) error

SetWithQjson stores the given response driven by a map key => qjson

func (*Datastore) UpdateLastResponse

func (ds *Datastore) UpdateLastResponse(s string)

We store the response

type DatastoreIndexError

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

func (DatastoreIndexError) Error

func (data DatastoreIndexError) Error() string

type DatastoreIndexOutOfBoundsError

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

func (DatastoreIndexOutOfBoundsError) Error

type DatastoreKeyNotFoundError

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

func (DatastoreKeyNotFoundError) Error

func (data DatastoreKeyNotFoundError) Error() string

Jump to

Keyboard shortcuts

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