Documentation ¶
Overview ¶
Package mevv is for accessing "MacroExpert VillĂĄmVilĂĄg" service.
Index ¶
Constants ¶
const ( V0 = Version("v0") V1 = Version("v1") V2 = Version("v2") )
const (
TestHost = "40.68.241.196"
)
Variables ¶
var ErrAuth = errors.New("authentication error")
var InsecureTransport = &http.Transport{ Proxy: http.ProxyFromEnvironment, TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, DialContext: (&net.Dialer{ Timeout: 30 * time.Second, KeepAlive: 30 * time.Second, DualStack: true, }).DialContext, MaxIdleConns: 100, IdleConnTimeout: 90 * time.Second, TLSHandshakeTimeout: 10 * time.Second, ExpectContinueTimeout: 1 * time.Second, }
var Log = func(...interface{}) error { return nil }
Log is used for logging.
Functions ¶
Types ¶
type Options ¶
type Options struct {
Since, Till time.Time
At time.Time
Address string
ContractID string
Host string
Lat, Lng float64
Interval int
NeedThunders, NeedIce, NeedWinds bool
NeedRains, NeedRainsIntensity bool
ExtendedLightning bool
WithStatistics bool
}
Options are the space/time coordinates and the required details.
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â��