Documentation
¶
Overview ¶
Package mevv is for accessing "MacroExpert VillĂĄmVilĂĄg" service.
Index ¶
Constants ¶
const ( V0 = Version("v0") V1 = Version("v1") V2 = Version("v2") V3 = Version("v3") )
const (
TestHost = "40.68.241.196"
)
Variables ¶
var ErrAuth = errors.New("authentication error")
Functions ¶
Types ¶
type GetPDFParams ¶ added in v0.26.10
type GetPDFParams struct { }
type Options ¶
type Options struct {
Since, Till time.Time `json:"-"`
At time.Time `json:"eventDate"`
Address string `json:"address"`
ContractID string `json:"-"`
Host string `json:"-"`
Lat float64 `json:"locationLat"`
Lng float64 `json:"locationLon"`
Interval int `json:"interval"`
NeedThunders, NeedIce, NeedWinds bool `json:"-"`
NeedRains, NeedRainsIntensity bool `json:"-"`
NeedTemperature bool `json:"-"`
ExtendedLightning bool `json:"extendedRange"`
NeedPDF, NeedData bool `json:"-"`
WithStatistics bool `json:"withStatistic"`
}
Options are the space/time coordinates and the required details.
type Request ¶ added in v0.26.10
type Version ¶
type Version string
func (Version) GetPDF ¶
func (V Version) GetPDF( ctx context.Context, username, password string, opt Options, ) (rc io.ReadCloser, fileName, mimeType string, err error)
GetPDF returns the meteorological data in PDF form.
address M varchar(45) Keresett cĂm hĂĄzszĂĄmmal lat M float(8,5) SzĂŠlessĂŠg pl.: â��47.17451â�� lng M float(8,5) HosszĂşsĂĄg pl.: â��17.04234â�� from_date M date(YYYY-MM-DD) KezdĹ� datum pl.: â��2014-11-25â�� to_date M date(YYYY-MM-DD) ZĂĄrĂł datum pl.: â��2014-11-29â�� contr_id O varchar(25) KĂĄrszĂĄm pl.: â��KSZ-112233â�� needThunders O varchar(1) VillĂĄm adatokat kĂŠrek â��1â��â��kĂŠrem, â��0â��-nem needRains O varchar(1) CsapadĂŠk adatokat kĂŠrek â��1â��â��kĂŠrem, â��0â��-nem needWinds O varchar(1) SzĂŠl adatokat kĂŠrek â��1â�� â�� kĂŠrem, â��0â��-nem needRainsInt O varchar(1) Fix - â��0â�� language O varchar(2) Fix - â��huâ��