1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00

feat: implement computation of users first heartbeats data time

This commit is contained in:
Ferdinand Mütsch
2022-12-23 13:41:32 +01:00
parent ebcf87ea93
commit 8a94fef06b
10 changed files with 117 additions and 20 deletions

View File

@@ -22,6 +22,10 @@ func (srv *KeyValueService) GetString(key string) (*models.KeyStringValue, error
return srv.repository.GetString(key)
}
func (srv *KeyValueService) GetByPrefix(prefix string) ([]*models.KeyStringValue, error) {
return srv.repository.Search(prefix + "%")
}
func (srv *KeyValueService) MustGetString(key string) *models.KeyStringValue {
kv, err := srv.repository.GetString(key)
if err != nil {