Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultState ¶
type DefaultState struct {
// contains filtered or unexported fields
}
func NewDefaultState ¶
func NewDefaultState() *DefaultState
type Provider ¶
Provider represents a state provider.
func NewProvider ¶
NewProvider creates a new state provider.
type State ¶
type State interface {
// Get retrieves the value associated with the given key.
Get(key string) (lang.Object, bool)
// Set sets the value associated with the given key.
Set(key string, value lang.Object) bool
}
State represents a stateful object that can be used to store and retrieve data that is global and can be accessed by multiple threads.
Click to show internal directories.
Click to hide internal directories.