-
Notifications
You must be signed in to change notification settings - Fork 0
/
APIs.go
39 lines (29 loc) · 1.12 KB
/
APIs.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
* weatherapi_lib
*
* This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
*/
package apis_pkg
import "time"
import "weatherapi_lib/configuration_pkg"
import "weatherapi_lib/models_pkg"
/*
* Interface for the APIS_IMPL
*/
type APIS interface {
GetRealtimeWeather (string, *string) (*models_pkg.CurrentJsonResponse, error)
GetForecastWeather (string, int64, *time.Time, *int64, *int64, *string) (*models_pkg.ForecastJsonResponse, error)
GetHistoryWeather (string, *time.Time, *int64, *time.Time, *int64, *int64, *string) (*models_pkg.HistoryJsonResponse, error)
SearchAutocompleteWeather (string) ([]*models_pkg.SearchJsonResponse, error)
GetIpLookup (string) (*models_pkg.IpJsonResponse, error)
GetTimeZone (string) (*models_pkg.TimezoneJsonResponse, error)
GetAstronomy (string, *time.Time) (*models_pkg.AstronomyJsonResponse, error)
}
/*
* Factory for the APIS interaface returning APIS_IMPL
*/
func NewAPIS(config configuration_pkg.CONFIGURATION) *APIS_IMPL {
client := new(APIS_IMPL)
client.config = config
return client
}