Documentation ¶
Index ¶
Constants ¶
View Source
const ( ConsumerKeyEnv = "GOTWIT_CONSUMER_KEY" ConsumerSecretEnv = "GOTWIT_CONSUMER_SECRET" AccessTokenEnv = "GOTWIT_ACCESS_TOKEN" AccessTokenSecretEnv = "GOTWIT_ACCESS_TOKEN_SECRET" )
Variables ¶
This section is empty.
Functions ¶
func BindConsumer ¶
func BindConsumer(consumerConfig ConsumerConfig)
func LoadConfigEnv ¶
func LoadConfigEnv() (c ConsumerConfig, a AccessConfig, err error)
func LoadConfigFile ¶
func LoadConfigFile(f string) (c ConsumerConfig, a AccessConfig, err error)
func UnbindConsumer ¶
func UnbindConsumer()
Types ¶
type AccessConfig ¶
type AccessConfig struct {
// contains filtered or unexported fields
}
func NewAccessConfig ¶
func NewAccessConfig(token string, tokenSecret string) AccessConfig
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
type ConsumerConfig ¶
type ConsumerConfig struct {
// contains filtered or unexported fields
}
func NewConsumerConfig ¶
func NewConsumerConfig(key string, secret string) ConsumerConfig
Click to show internal directories.
Click to hide internal directories.