Documentation ¶
Index ¶
- Constants
- type AddLinkRequest
- type CheckLinkRequest
- type GetLinksRequest
- type GetLinksResult
- type GetNewsRequest
- type GetNewsResult
- type Link
- type LinkCheckerEvents
- type LinkManager
- type LinkManagerEvent
- type LinkManagerEventTypeEnum
- type LinkManagerEvents
- type LinkStatus
- type NewsManager
- type SocialGraphManager
- type UpdateLinkRequest
- type User
- type UserManager
Constants ¶
View Source
const ( LinkStatusPending = "pending" LinkStatusValid = "valid" LinkStatusInvalid = "invalid" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddLinkRequest ¶
type CheckLinkRequest ¶
type GetLinksRequest ¶
type GetLinksResult ¶
type GetNewsRequest ¶
type GetNewsResult ¶
type GetNewsResult struct { Events []*LinkManagerEvent NextToken string }
type LinkCheckerEvents ¶
type LinkCheckerEvents interface {
OnLinkChecked(username string, url string, status LinkStatus)
}
type LinkManager ¶
type LinkManager interface { GetLinks(request GetLinksRequest) (GetLinksResult, error) AddLink(request AddLinkRequest) error UpdateLink(request UpdateLinkRequest) error DeleteLink(username string, url string) error }
type LinkManagerEvent ¶
type LinkManagerEvent struct { EventType LinkManagerEventTypeEnum Username string Url string Timestamp time.Time }
type LinkManagerEventTypeEnum ¶
type LinkManagerEventTypeEnum int
const ( LinkAdded LinkManagerEventTypeEnum = iota LinkUpdated LinkDeleted )
type LinkManagerEvents ¶
type LinkStatus ¶
type LinkStatus = string
type NewsManager ¶
type NewsManager interface {
GetNews(request GetNewsRequest) (GetNewsResult, error)
}
type SocialGraphManager ¶
type UpdateLinkRequest ¶
Click to show internal directories.
Click to hide internal directories.