Documentation ¶
Index ¶
Constants ¶
View Source
const ( EnvUsername = "TP_USERNAME" EnvPassword = "TP_PASSWORD" EnvToken = "TP_TOKEN" EnvAccessToken = "TP_ACCESS_TOKEN" EnvAddress = "TP_API_URL" )
Variables ¶
This section is empty.
Functions ¶
func AddComment ¶
Types ¶
type Config ¶
type Config struct { Address string HttpClient *http.Client MaxRetries int Timeout time.Duration Error error Creds *Credentials // contains filtered or unexported fields }
func DefaultConfig ¶
func DefaultConfig() *Config
func (*Config) ReadEnvironment ¶
type Credentials ¶
type TPoptions ¶
type TPoptions struct { Id int `json:"id"` Comment string `json:"comment,omitempty"` State string `json:"state,omitempty"` }
func ParseOptions ¶
Click to show internal directories.
Click to hide internal directories.