Documentation
¶
Index ¶
- Constants
- Variables
- type ByValue
- type Consumer
- type HMACSigner
- type OrderedParams
- func (o *OrderedParams) Add(key, value string)
- func (o *OrderedParams) AddUnescaped(key, value string)
- func (o *OrderedParams) Get(key string) []string
- func (o *OrderedParams) Keys() []string
- func (o *OrderedParams) Len() int
- func (o *OrderedParams) Less(i int, j int) bool
- func (o *OrderedParams) Swap(i int, j int)
Constants ¶
View Source
const ( OAUTH_VERSION = "1.0" SIGNATURE_METHOD_HMAC = "HMAC-" HTTP_AUTH_HEADER = "Authorization" OAUTH_HEADER = "OAuth " CONSUMER_KEY_PARAM = "oauth_consumer_key" NONCE_PARAM = "oauth_nonce" SIGNATURE_METHOD_PARAM = "oauth_signature_method" SIGNATURE_PARAM = "oauth_signature" TIMESTAMP_PARAM = "oauth_timestamp" TOKEN_PARAM = "oauth_token" TOKEN_SECRET_PARAM = "oauth_token_secret" VERSION_PARAM = "oauth_version" )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Consumer ¶
type Consumer struct { AdditionalParams map[string]string // contains filtered or unexported fields }
type HMACSigner ¶
type HMACSigner struct {
// contains filtered or unexported fields
}
func (*HMACSigner) Debug ¶
func (s *HMACSigner) Debug(enabled bool)
func (*HMACSigner) HashFunc ¶
func (s *HMACSigner) HashFunc() crypto.Hash
func (*HMACSigner) SignatureMethod ¶
func (s *HMACSigner) SignatureMethod() string
type OrderedParams ¶
type OrderedParams struct {
// contains filtered or unexported fields
}
func NewOrderedParams ¶
func NewOrderedParams() *OrderedParams
func (*OrderedParams) Add ¶
func (o *OrderedParams) Add(key, value string)
func (*OrderedParams) AddUnescaped ¶
func (o *OrderedParams) AddUnescaped(key, value string)
func (*OrderedParams) Get ¶
func (o *OrderedParams) Get(key string) []string
func (*OrderedParams) Keys ¶
func (o *OrderedParams) Keys() []string
func (*OrderedParams) Len ¶
func (o *OrderedParams) Len() int
func (*OrderedParams) Swap ¶
func (o *OrderedParams) Swap(i int, j int)
Click to show internal directories.
Click to hide internal directories.