Versions in this module Expand all Collapse all v0 v0.2.0 Mar 5, 2024 Changes in this version + func URL(s Server, path string, queries map[string]string) string + type AccessToken struct + AccessToken string + Created time.Time + ExpiresIn time.Duration + func Refresh(conf *common.Config) (*AccessToken, error) + func (at *AccessToken) IsExpired() bool + type DefaultServer struct + func (s *DefaultServer) Config() *common.Config + func (s *DefaultServer) Refresh() (*AccessToken, error) + func (s *DefaultServer) Token() *AccessToken + type Server interface + Config func() *common.Config + Refresh func() (*AccessToken, error) + Token func() *AccessToken + func NewDefaultServer(conf *common.Config, errlog *log.Logger) Server