Documentation
¶
Index ¶
- type Entry
- type Store
- func (s *Store) Count() int
- func (s *Store) Create(uuid string, metadata map[string]any) (*Entry, error)
- func (s *Store) Delete(uuid string) error
- func (s *Store) Exists(uuid string) bool
- func (s *Store) FindOrCreate(uuid string, metadata map[string]any) (*Entry, bool, error)
- func (s *Store) Get(uuid string) (*Entry, bool)
- func (s *Store) List() []*Entry
- func (s *Store) Update(oldUUID string, newUUID string, metadata map[string]any) (*Entry, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Entry struct {
UUID string `json:"uuid"`
Metadata map[string]any `json:"metadata,omitempty"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
}
Entry represents a registered UUID with its metadata
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store manages UUID registration with file-based persistence
func (*Store) FindOrCreate ¶
FindOrCreate returns existing entry or creates a new one
Click to show internal directories.
Click to hide internal directories.