feat: Initial prototype

This commit is contained in:
2023-03-04 18:56:03 +01:00
commit 415a6c8337
9 changed files with 578 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
package prayer
import (
"context"
"errors"
"time"
)
var ErrInvalidLocation = errors.New("invalid location")
type TimesProvider interface {
Get(ctx context.Context, location string) ([]Times, error)
}
type Times struct {
Date time.Time `json:"date"`
Fajr string `json:"fajr"`
Sunrise string `json:"sunrise"`
Dhuhr string `json:"dhuhr"`
Asr string `json:"asr"`
Maghrib string `json:"maghrib"`
Isha string `json:"isha"`
}