mirror of
https://github.com/sstent/go-garth.git
synced 2026-01-26 17:11:42 +00:00
20 lines
519 B
Go
20 lines
519 B
Go
package interfaces
|
|
|
|
import (
|
|
"io"
|
|
"net/url"
|
|
"time"
|
|
|
|
types "go-garth/internal/models/types"
|
|
"go-garth/internal/users"
|
|
)
|
|
|
|
// APIClient defines the interface for making API calls that data packages need.
|
|
type APIClient interface {
|
|
ConnectAPI(path string, method string, params url.Values, body io.Reader) ([]byte, error)
|
|
GetUsername() string
|
|
GetUserSettings() (*users.UserSettings, error)
|
|
GetUserProfile() (*types.UserProfile, error)
|
|
GetWellnessData(startDate, endDate time.Time) ([]types.WellnessData, error)
|
|
}
|