package
0.0.0-20240701064118-96e69a6460fb
Repository: https://github.com/relex/slog-agent.git
Documentation: pkg.go.dev
# Functions
NewGlobalMap creates a globalMap.
# Structs
GlobalCachedMap keeps a global map of objects that can be looked up in thread-local cache
The objects can only be added, never removed or replaced, because their references are copied to local cache for fast access.
LocalCachedMap keeps local cache of global map for fast access, unprotected by mutex.
# Type aliases
GlobalObjectConstructor defines a function that creates a new global item in GlobalCachedMap.
GlobalObjectDestructor defines a function that destroys a global item in GlobalCachedMap.
LocalWrapperConstructor defines a function that creates a local wrapper for a global item in GlobalCachedMap.