Versions in this module Expand all Collapse all v0 v0.0.2 Mar 4, 2021 v0.0.1 Mar 4, 2021 Changes in this version + const DefaultApiVersion + type AccessToken struct + AccessToken string + ExpireTime time.Time + ExpiresIn int32 + TokenType string + func NewAccessToken(js []byte) (AccessToken, error) + func (t AccessToken) IsExpired() bool + type ApiSettings struct + AgentTag string + ApiVersion string + BaseUrl string + ClientId string + ClientSecret string + FileName string + Timeout int32 + VerifySsl bool + func NewSettingsFromFile(file string, section *string) (ApiSettings, error) + type AuthSession struct + Config ApiSettings + Transport http.RoundTripper + func NewAuthSession(config ApiSettings) *AuthSession + func NewAuthSessionWithTransport(config ApiSettings, transport http.RoundTripper) *AuthSession + func (s *AuthSession) Authenticate(req *http.Request) error + func (s *AuthSession) Do(result interface{}, method, ver, path string, reqPars map[string]interface{}, ...) error + type DelimInt64 []int64 + func (i *DelimInt64) UnmarshalJSON(b []byte) error + func (i DelimInt64) MarshalJSON() ([]byte, error) + type DelimString []string + func (s *DelimString) UnmarshalJSON(b []byte) error + func (s DelimString) MarshalJSON() ([]byte, error)