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

datastore

package
v1.44.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 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) Get

func (ds Datastore) Get(index string) (res any, err error)

func (*Datastore) Set

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

func (*Datastore) SetMap

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

func (*Datastore) SetWithGjson added in v1.30.0

func (ds *Datastore) SetWithGjson(jsonResponse string, storeResponse map[string]string) (err 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

Jump to

Keyboard shortcuts

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