NewState creates a new instance of State.
()
| 25 | |
| 26 | // NewState creates a new instance of State. |
| 27 | func newState() *State { |
| 28 | // Initialize the services state prefix using a hashed random string |
| 29 | return &State{ |
| 30 | dependencies: sync.Map{}, |
| 31 | servicePrefix: servicesStatePrefixHash, |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | // Set sets a key-value pair in the State. |
| 36 | func (s *State) Set(key string, value any) { |
no outgoing calls