// LoadApplicationCounts loads ApplicationCounts data for a specific project from file store.
LoadApplicationCounts loads ApplicationCounts data for a specific project from file store.
// LoadApplicationCounts loads ApplicationCounts data for a specific project from file store .
func (s *store) LoadApplicationCounts(ctx context.Context, projectID string) (*insight.ApplicationCounts, error) {
	content, err := s.filestore.Get(ctx, determineFilePath(projectID))
	if err != nil {
		return nil, err
	}
	counts := &insight.ApplicationCounts{}
	if err := json.Unmarshal(content, counts); err != nil {
		return nil, err
	}
	return counts, nil
}
func ( s * store ) LoadApplicationCounts ( ctx context . Context , projectID string ) ( * insight . ApplicationCounts , error ) { content , err := s . filestore . Get ( ctx , determineFilePath ( projectID ) ) if err != nil { return nil , err } counts := & insight . ApplicationCounts { } if err := json . Unmarshal ( content , counts ) ; err != nil { return nil , err } return counts , nil }
LoadApplicationCounts loads ApplicationCounts data for a specific project from file store.
LoadApplicationCounts loads ApplicationCounts data for a specific project from file store .