mem
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Overview¶
Package mem provides an in-memory ipn.StateStore implementation.
Index¶
Constants¶
This section is empty.
Variables¶
This section is empty.
Functions¶
Types¶
typeStore¶
type Store struct {// contains filtered or unexported fields}Store is an ipn.StateStore that keeps state in memory only.
func (*Store)ExportToJSON¶
ExportToJSON exports the content of the cache toJSON formatted []byte.
func (*Store)LoadFromJSON¶
LoadFromJSON attempts to unmarshal json content into thein-memory cache.
func (*Store)LoadFromMap¶added inv1.78.0
LoadFromMap loads the in-memory cache from the provided map.Any existing content is cleared, and the provided map iscopied into the cache.