Files
catalyst/service/log.go
Jonas Plum 2bad1f5f28 Migrate to Go 1.18 (#45)
* Migrate to Go 1.18 and add linters
2022-03-20 03:17:18 +01:00

15 lines
279 B
Go

package service
import (
"context"
"net/url"
"github.com/SecurityBrewery/catalyst/generated/model"
)
func (s *Service) GetLogs(ctx context.Context, reference string) ([]*model.LogEntry, error) {
id, _ := url.QueryUnescape(reference)
return s.database.LogList(ctx, id)
}