Documentation
¶
Index ¶
- Constants
- type Alternative
- type Alternatives
- type AuthRequest
- type AuthResponse
- type ConversationRequest
- type ExternalProfileRequest
- type Feed
- type Feeds
- type FetchTwtsRequest
- type FollowRequest
- type Link
- type Links
- type MuteRequest
- type PagedRequest
- type PagedResponse
- type PagerResponse
- type PostRequest
- type Profile
- type ProfileResponse
- type RegisterRequest
- type ReportRequest
- type SupportRequest
- type Twt
- type TwtMap
- type Twter
- type Twts
- type UnfollowRequest
- type UnmuteRequest
Constants ¶
View Source
const (
HashLength = 7
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alternative ¶
type Alternatives ¶
type Alternatives []Alternative
type AuthRequest ¶
AuthRequest ...
func NewAuthRequest ¶
func NewAuthRequest(r io.Reader) (req AuthRequest, err error)
NewAuthRequest ...
type ConversationRequest ¶
ConversationRequest ...
func NewConversationRequest ¶
func NewConversationRequest(r io.Reader) (req ConversationRequest, err error)
NewConversationRequest ...
type ExternalProfileRequest ¶
ExternalProfileRequest ...
func NewExternalProfileRequest ¶
func NewExternalProfileRequest(r io.Reader) (req ExternalProfileRequest, err error)
NewExternalProfileRequest ...
type FetchTwtsRequest ¶
type FetchTwtsRequest struct {
URL string `json:"url"`
Nick string `json:"nick"`
Page int `json:"page"`
}
FetchTwtsRequest ...
func NewFetchTwtsRequest ¶
func NewFetchTwtsRequest(r io.Reader) (req FetchTwtsRequest, err error)
NewFetchTwtsRequest ...
type FollowRequest ¶
FollowRequest ...
func NewFollowRequest ¶
func NewFollowRequest(r io.Reader) (req FollowRequest, err error)
NewFollowRequest ...
type MuteRequest ¶
MuteRequest ...
func NewMuteRequest ¶
func NewMuteRequest(r io.Reader) (req MuteRequest, err error)
NewMuteRequest ...
type PagedRequest ¶
type PagedRequest struct {
Page int `json:"page"`
}
PagedRequest ...
func NewPagedRequest ¶
func NewPagedRequest(r io.Reader) (req PagedRequest, err error)
NewPagedRequest ...
type PagedResponse ¶
type PagedResponse struct {
Twts []Twt `json:"twts"`
Pager PagerResponse
}
PagedResponse ...
type PagerResponse ¶
type PagerResponse struct {
Current int `json:"current_page"`
MaxPages int `json:"max_pages"`
TotalTwts int `json:"total_twts"`
}
PagerResponse ...
type PostRequest ¶
PostRequest ...
func NewPostRequest ¶
func NewPostRequest(r io.Reader) (req PostRequest, err error)
NewPostRequest ...
type Profile ¶
type Profile struct {
Type string
Username string
Tagline string
URL string
TwtURL string
BlogsURL string
// `true` if the User viewing the Profile has muted this user/feed
Muted bool
// `true` if the User viewing the Profile has follows this user/feed
Follows bool
// `true` if user/feed follows the User viewing the Profile.
FollowedBy bool
Followers map[string]string
Following map[string]string
}
Profile represents a user/feed profile
type ProfileResponse ¶
type ProfileResponse struct {
Profile Profile `json:"profile"`
Links Links `json:"links"`
Alternatives Alternatives `json:"alternatives"`
Twter Twter `json:"twter"`
}
ProfileResponse ...
type RegisterRequest ¶
type RegisterRequest struct {
Username string `json:"username"`
Password string `json:"password"`
Email string `json:"email"`
}
RegisterRequest ...
func NewRegisterRequest ¶
func NewRegisterRequest(r io.Reader) (req RegisterRequest, err error)
NewRegisterRequest ...
type ReportRequest ¶
type ReportRequest struct {
Nick string `json:"nick"`
URL string `json:"url"`
Name string `json:"name"`
Email string `json:"email"`
Category string `json:"subject"`
Message string `json:"message"`
}
ReportRequest ...
func NewReportRequest ¶
func NewReportRequest(r io.Reader) (req ReportRequest, err error)
NewReportRequest ...
type SupportRequest ¶
type SupportRequest struct {
Name string `json:"name"`
Email string `json:"email"`
Subject string `json:"subject"`
Message string `json:"message"`
}
SupportRequest ...
func NewSupportRequest ¶
func NewSupportRequest(r io.Reader) (req SupportRequest, err error)
NewSupportRequest ...
type Twt ¶
type Twt struct {
Twter Twter
Text string
MarkdownText string
Created time.Time
// contains filtered or unexported fields
}
Twt ...
func (Twt) MarshalJSON ¶
type UnfollowRequest ¶
type UnfollowRequest struct {
Nick string `json:"nick"`
}
UnfollowRequest ...
func NewUnfollowRequest ¶
func NewUnfollowRequest(r io.Reader) (req UnfollowRequest, err error)
NewUnfollowRequest ...
type UnmuteRequest ¶
type UnmuteRequest struct {
Nick string `json:"nick"`
}
UnmuteRequest ...
func NewUnmuteRequest ¶
func NewUnmuteRequest(r io.Reader) (req UnmuteRequest, err error)
NewUnmuteRequest ...
Click to show internal directories.
Click to hide internal directories.