Help us shape the future of Go! Take the 2026 Go Developer Survey

datastore

package
v1.41.1 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2025 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 any, err error)

func (*Datastore) Set

func (ds *Datastore) Set(index string, value any) error

func (*Datastore) SetMap

func (ds *Datastore) SetMap(smap map[string]any) error

func (*Datastore) SetWithGjson added in v1.30.0

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

SetWithGjson stores the given response driven by a map key => gjson

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