InMemoryModelStore is the default ModelStore backed by a plain map.
| 13 | |
| 14 | // InMemoryModelStore is the default ModelStore backed by a plain map. |
| 15 | type InMemoryModelStore struct { |
| 16 | mu sync.RWMutex |
| 17 | models map[string]*Model |
| 18 | } |
| 19 | |
| 20 | func NewInMemoryModelStore() *InMemoryModelStore { |
| 21 | return &InMemoryModelStore{models: make(map[string]*Model)} |
nothing calls this directly
no outgoing calls
no test coverage detected