Dictionary

Structin edgedictcompute-sdk-go v1.11.0View source
Deprecated: Deprecated: Use the configstore package instead.
type Dictionary struct {
// contains filtered or unexported fields
}

Dictionary is a read-only representation of an edge dictionary.

Deprecated: Use the configstore package instead.

Methods

func (d *Dictionary) Get(key string) (string, error)

Get returns the value in the dictionary with the given key, if it exists.

Parameters

key: string

Returns

(string, error)

GetBytes

View source
func (d *Dictionary) GetBytes(key string) ([]byte, error)

GetBytes returns the value in the dictionary for the given key, if it exists, as a byte slice.

Parameters

key: string

Returns

([]byte, error)
func (d *Dictionary) Has(key string) (bool, error)

Has returns true if the key exists in the dictionary, without allocating space to read a value.

Parameters

key: string

Returns

(bool, error)