Documentation ¶
Index ¶
- Constants
- Variables
- type ExternalFollow
- type FeedGenerator
- func (fg *FeedGenerator) GetActorProfile(ctx context.Context, actor string) (*types.ActorInfo, error)
- func (fg *FeedGenerator) GetActorProfileByID(ctx context.Context, actor uint) (*types.ActorInfo, error)
- func (fg *FeedGenerator) GetAuthorFeed(ctx context.Context, user *User, before string, limit int) ([]*bsky.FeedFeedViewPost, error)
- func (fg *FeedGenerator) GetFollows(ctx context.Context, user string, limit int, before string) ([]*FollowInfo, error)
- func (fg *FeedGenerator) GetPostThread(ctx context.Context, uri string, depth int) (*ThreadPost, error)
- func (fg *FeedGenerator) GetTimeline(ctx context.Context, user *User, algo string, before string, limit int) ([]*bsky.FeedFeedViewPost, error)
- func (fg *FeedGenerator) GetVotes(ctx context.Context, uri string, pcid cid.Cid, dir string, limit int, ...) ([]*HydratedVote, error)
- type FollowInfo
- type HydratedVote
- type IndexCallback
- type Peering
- type ReadRecordFunc
- type RefreshToken
- type Server
- func (s *Server) AddRemoteFollow(ctx context.Context, opdsdid string, u string) error
- func (s *Server) EventsHandler(c echo.Context) error
- func (s *Server) HackAddPeering(host string, did string) error
- func (s *Server) HandleAppBskyActorCreateScene(c echo.Context) error
- func (s *Server) HandleAppBskyActorGetProfile(c echo.Context) error
- func (s *Server) HandleAppBskyActorGetSuggestions(c echo.Context) error
- func (s *Server) HandleAppBskyActorSearch(c echo.Context) error
- func (s *Server) HandleAppBskyActorSearchTypeahead(c echo.Context) error
- func (s *Server) HandleAppBskyActorUpdateProfile(c echo.Context) error
- func (s *Server) HandleAppBskyFeedGetAuthorFeed(c echo.Context) error
- func (s *Server) HandleAppBskyFeedGetPostThread(c echo.Context) error
- func (s *Server) HandleAppBskyFeedGetRepostedBy(c echo.Context) error
- func (s *Server) HandleAppBskyFeedGetTimeline(c echo.Context) error
- func (s *Server) HandleAppBskyFeedGetVotes(c echo.Context) error
- func (s *Server) HandleAppBskyFeedSetVote(c echo.Context) error
- func (s *Server) HandleAppBskyGraphGetAssertions(c echo.Context) error
- func (s *Server) HandleAppBskyGraphGetFollowers(c echo.Context) error
- func (s *Server) HandleAppBskyGraphGetFollows(c echo.Context) error
- func (s *Server) HandleAppBskyGraphGetMembers(c echo.Context) error
- func (s *Server) HandleAppBskyGraphGetMemberships(c echo.Context) error
- func (s *Server) HandleAppBskyGraphGetMutes(c echo.Context) error
- func (s *Server) HandleAppBskyGraphMute(c echo.Context) error
- func (s *Server) HandleAppBskyGraphUnmute(c echo.Context) error
- func (s *Server) HandleAppBskyNotificationGetCount(c echo.Context) error
- func (s *Server) HandleAppBskyNotificationList(c echo.Context) error
- func (s *Server) HandleAppBskyNotificationUpdateSeen(c echo.Context) error
- func (s *Server) HandleComAtprotoAccountCreate(c echo.Context) error
- func (s *Server) HandleComAtprotoAccountCreateInviteCode(c echo.Context) error
- func (s *Server) HandleComAtprotoAccountDelete(c echo.Context) error
- func (s *Server) HandleComAtprotoAccountGet(c echo.Context) error
- func (s *Server) HandleComAtprotoAccountRequestPasswordReset(c echo.Context) error
- func (s *Server) HandleComAtprotoAccountResetPassword(c echo.Context) error
- func (s *Server) HandleComAtprotoBlobUpload(c echo.Context) error
- func (s *Server) HandleComAtprotoHandleResolve(c echo.Context) error
- func (s *Server) HandleComAtprotoPeeringFollow(c echo.Context) error
- func (s *Server) HandleComAtprotoPeeringInit(c echo.Context) error
- func (s *Server) HandleComAtprotoPeeringList(c echo.Context) error
- func (s *Server) HandleComAtprotoPeeringPropose(c echo.Context) error
- func (s *Server) HandleComAtprotoRepoBatchWrite(c echo.Context) error
- func (s *Server) HandleComAtprotoRepoCreateRecord(c echo.Context) error
- func (s *Server) HandleComAtprotoRepoDeleteRecord(c echo.Context) error
- func (s *Server) HandleComAtprotoRepoDescribe(c echo.Context) error
- func (s *Server) HandleComAtprotoRepoGetRecord(c echo.Context) error
- func (s *Server) HandleComAtprotoRepoListRecords(c echo.Context) error
- func (s *Server) HandleComAtprotoRepoPutRecord(c echo.Context) error
- func (s *Server) HandleComAtprotoServerGetAccountsConfig(c echo.Context) error
- func (s *Server) HandleComAtprotoSessionCreate(c echo.Context) error
- func (s *Server) HandleComAtprotoSessionDelete(c echo.Context) error
- func (s *Server) HandleComAtprotoSessionGet(c echo.Context) error
- func (s *Server) HandleComAtprotoSessionRefresh(c echo.Context) error
- func (s *Server) HandleComAtprotoSyncGetRepo(c echo.Context) error
- func (s *Server) HandleComAtprotoSyncGetRoot(c echo.Context) error
- func (s *Server) HandleComAtprotoSyncUpdateRepo(c echo.Context) error
- func (s *Server) RegisterHandlersAppBsky(e *echo.Echo) error
- func (s *Server) RegisterHandlersComAtproto(e *echo.Echo) error
- func (s *Server) RunAPI(listen string) error
- func (s *Server) Shutdown(ctx context.Context) error
- type Slurper
- type ThreadPost
- type User
Constants ¶
View Source
const UserActorDeclCid = "bafyreid27zk7lbis4zw5fz4podbvbs4fc5ivwji3dmrwa6zggnj4bnd57u"
View Source
const UserActorDeclType = "app.bsky.system.actorUser"
Variables ¶
View Source
var ErrNoSuchUser = fmt.Errorf("no such user")
Functions ¶
This section is empty.
Types ¶
type FeedGenerator ¶
type FeedGenerator struct {
// contains filtered or unexported fields
}
func NewFeedGenerator ¶
func NewFeedGenerator(db *gorm.DB, ix *indexer.Indexer, readRecord ReadRecordFunc) (*FeedGenerator, error)
func (*FeedGenerator) GetActorProfile ¶
func (*FeedGenerator) GetActorProfileByID ¶
func (*FeedGenerator) GetAuthorFeed ¶
func (fg *FeedGenerator) GetAuthorFeed(ctx context.Context, user *User, before string, limit int) ([]*bsky.FeedFeedViewPost, error)
func (*FeedGenerator) GetFollows ¶
func (fg *FeedGenerator) GetFollows(ctx context.Context, user string, limit int, before string) ([]*FollowInfo, error)
func (*FeedGenerator) GetPostThread ¶
func (fg *FeedGenerator) GetPostThread(ctx context.Context, uri string, depth int) (*ThreadPost, error)
func (*FeedGenerator) GetTimeline ¶
func (fg *FeedGenerator) GetTimeline(ctx context.Context, user *User, algo string, before string, limit int) ([]*bsky.FeedFeedViewPost, error)
type FollowInfo ¶
type FollowInfo struct { Follower *bsky.ActorRef_WithInfo Subject *bsky.ActorRef_WithInfo CreatedAt string IndexedAt string }
type HydratedVote ¶
type RefreshToken ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) AddRemoteFollow ¶
func (*Server) EventsHandler ¶
func (*Server) HandleAppBskyActorCreateScene ¶
func (*Server) HandleAppBskyActorGetProfile ¶
func (*Server) HandleAppBskyActorGetSuggestions ¶
func (*Server) HandleAppBskyActorSearch ¶
func (*Server) HandleAppBskyActorSearchTypeahead ¶
func (*Server) HandleAppBskyActorUpdateProfile ¶
func (*Server) HandleAppBskyFeedGetAuthorFeed ¶
func (*Server) HandleAppBskyFeedGetPostThread ¶
func (*Server) HandleAppBskyFeedGetRepostedBy ¶
func (*Server) HandleAppBskyFeedGetTimeline ¶
func (*Server) HandleAppBskyFeedGetVotes ¶
func (*Server) HandleAppBskyFeedSetVote ¶
func (*Server) HandleAppBskyGraphGetAssertions ¶
func (*Server) HandleAppBskyGraphGetFollowers ¶
func (*Server) HandleAppBskyGraphGetFollows ¶
func (*Server) HandleAppBskyGraphGetMembers ¶
func (*Server) HandleAppBskyGraphGetMemberships ¶
func (*Server) HandleAppBskyGraphGetMutes ¶
func (*Server) HandleAppBskyGraphMute ¶
func (*Server) HandleAppBskyGraphUnmute ¶
func (*Server) HandleAppBskyNotificationGetCount ¶
func (*Server) HandleAppBskyNotificationList ¶
func (*Server) HandleAppBskyNotificationUpdateSeen ¶
func (*Server) HandleComAtprotoAccountCreate ¶
func (*Server) HandleComAtprotoAccountCreateInviteCode ¶
func (*Server) HandleComAtprotoAccountDelete ¶
func (*Server) HandleComAtprotoAccountGet ¶
func (*Server) HandleComAtprotoAccountRequestPasswordReset ¶
func (*Server) HandleComAtprotoAccountResetPassword ¶
func (*Server) HandleComAtprotoBlobUpload ¶
func (*Server) HandleComAtprotoHandleResolve ¶
func (*Server) HandleComAtprotoPeeringFollow ¶
func (*Server) HandleComAtprotoPeeringInit ¶
func (*Server) HandleComAtprotoPeeringList ¶
func (*Server) HandleComAtprotoPeeringPropose ¶
func (*Server) HandleComAtprotoRepoBatchWrite ¶
func (*Server) HandleComAtprotoRepoCreateRecord ¶
func (*Server) HandleComAtprotoRepoDeleteRecord ¶
func (*Server) HandleComAtprotoRepoDescribe ¶
func (*Server) HandleComAtprotoRepoGetRecord ¶
func (*Server) HandleComAtprotoRepoListRecords ¶
func (*Server) HandleComAtprotoRepoPutRecord ¶
func (*Server) HandleComAtprotoServerGetAccountsConfig ¶
func (*Server) HandleComAtprotoSessionCreate ¶
func (*Server) HandleComAtprotoSessionDelete ¶
func (*Server) HandleComAtprotoSessionGet ¶
func (*Server) HandleComAtprotoSessionRefresh ¶
func (*Server) HandleComAtprotoSyncGetRepo ¶
func (*Server) HandleComAtprotoSyncGetRoot ¶
func (*Server) HandleComAtprotoSyncUpdateRepo ¶
func (*Server) RegisterHandlersAppBsky ¶
func (*Server) RegisterHandlersComAtproto ¶
type ThreadPost ¶
type ThreadPost struct { Post *bsky.FeedFeedViewPost PostID uint ParentUri string Parent *ThreadPost }
Click to show internal directories.
Click to hide internal directories.