Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewVercelHandler ¶
Types ¶
type Config ¶
type Config struct {
Server ServerConfig `json:"server"`
Security SecurityConfig `json:"security"`
X XAuthConfig `json:"x"`
}
type Poster ¶
type Poster struct {
// contains filtered or unexported fields
}
func (*Poster) CreateTweet ¶
type SecurityConfig ¶
type SecurityConfig struct {
APIToken string `json:"api_token"`
}
type ServerConfig ¶
type ServerConfig struct {
Addr string `json:"addr"`
}
type XAuthConfig ¶
type XAuthConfig struct {
APIKey string `json:"api_key,omitempty"`
APISecret string `json:"api_secret,omitempty"`
AccessToken string `json:"access_token,omitempty"`
AccessTokenSecret string `json:"access_token_secret,omitempty"`
OAuth2ClientID string `json:"oauth2_client_id,omitempty"`
OAuth2ClientSecret string `json:"oauth2_client_secret,omitempty"`
OAuth2RedirectURI string `json:"oauth2_redirect_uri,omitempty"`
OAuth2Scope []string `json:"oauth2_scope,omitempty"`
OAuth2AccessToken string `json:"oauth2_access_token,omitempty"`
OAuth2RefreshToken string `json:"oauth2_refresh_token,omitempty"`
OAuth2TokenType string `json:"oauth2_token_type,omitempty"`
OAuth2ExpiresAt int64 `json:"oauth2_expires_at,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.