Documentation ¶
Index ¶
- Variables
- type FeedGenerator
- func (fg *FeedGenerator) GetActorProfile(ctx context.Context, actor string) (*models.ActorInfo, error)
- func (fg *FeedGenerator) GetActorProfileByID(ctx context.Context, actor uint) (*models.ActorInfo, error)
- func (fg *FeedGenerator) GetAuthorFeed(ctx context.Context, user *User, before string, limit int) ([]*bsky.FeedDefs_FeedViewPost, 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.FeedDefs_FeedViewPost, error)
- func (fg *FeedGenerator) GetVotes(ctx context.Context, uri string, pcid cid.Cid, limit int, before string) ([]*HydratedVote, error)
- type FollowInfo
- type HealthStatus
- type HydratedVote
- type Peering
- type ReadRecordFunc
- type RefreshToken
- type Server
- func (s *Server) EventsHandler(c echo.Context) error
- func (s *Server) HandleComAtprotoAdminDisableAccountInvites(c echo.Context) error
- func (s *Server) HandleComAtprotoAdminDisableInviteCodes(c echo.Context) error
- func (s *Server) HandleComAtprotoAdminEnableAccountInvites(c echo.Context) error
- func (s *Server) HandleComAtprotoAdminGetAccountInfo(c echo.Context) error
- func (s *Server) HandleComAtprotoAdminGetInviteCodes(c echo.Context) error
- func (s *Server) HandleComAtprotoAdminGetSubjectStatus(c echo.Context) error
- func (s *Server) HandleComAtprotoAdminSendEmail(c echo.Context) error
- func (s *Server) HandleComAtprotoAdminUpdateAccountEmail(c echo.Context) error
- func (s *Server) HandleComAtprotoAdminUpdateAccountHandle(c echo.Context) error
- func (s *Server) HandleComAtprotoAdminUpdateSubjectStatus(c echo.Context) error
- func (s *Server) HandleComAtprotoIdentityResolveHandle(c echo.Context) error
- func (s *Server) HandleComAtprotoIdentityUpdateHandle(c echo.Context) error
- func (s *Server) HandleComAtprotoLabelQueryLabels(c echo.Context) error
- func (s *Server) HandleComAtprotoModerationCreateReport(c echo.Context) error
- func (s *Server) HandleComAtprotoRepoApplyWrites(c echo.Context) error
- func (s *Server) HandleComAtprotoRepoCreateRecord(c echo.Context) error
- func (s *Server) HandleComAtprotoRepoDeleteRecord(c echo.Context) error
- func (s *Server) HandleComAtprotoRepoDescribeRepo(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) HandleComAtprotoRepoUploadBlob(c echo.Context) error
- func (s *Server) HandleComAtprotoServerConfirmEmail(c echo.Context) error
- func (s *Server) HandleComAtprotoServerCreateAccount(c echo.Context) error
- func (s *Server) HandleComAtprotoServerCreateAppPassword(c echo.Context) error
- func (s *Server) HandleComAtprotoServerCreateInviteCode(c echo.Context) error
- func (s *Server) HandleComAtprotoServerCreateInviteCodes(c echo.Context) error
- func (s *Server) HandleComAtprotoServerCreateSession(c echo.Context) error
- func (s *Server) HandleComAtprotoServerDeleteAccount(c echo.Context) error
- func (s *Server) HandleComAtprotoServerDeleteSession(c echo.Context) error
- func (s *Server) HandleComAtprotoServerDescribeServer(c echo.Context) error
- func (s *Server) HandleComAtprotoServerGetAccountInviteCodes(c echo.Context) error
- func (s *Server) HandleComAtprotoServerGetSession(c echo.Context) error
- func (s *Server) HandleComAtprotoServerListAppPasswords(c echo.Context) error
- func (s *Server) HandleComAtprotoServerRefreshSession(c echo.Context) error
- func (s *Server) HandleComAtprotoServerRequestAccountDelete(c echo.Context) error
- func (s *Server) HandleComAtprotoServerRequestEmailConfirmation(c echo.Context) error
- func (s *Server) HandleComAtprotoServerRequestEmailUpdate(c echo.Context) error
- func (s *Server) HandleComAtprotoServerRequestPasswordReset(c echo.Context) error
- func (s *Server) HandleComAtprotoServerReserveSigningKey(c echo.Context) error
- func (s *Server) HandleComAtprotoServerResetPassword(c echo.Context) error
- func (s *Server) HandleComAtprotoServerRevokeAppPassword(c echo.Context) error
- func (s *Server) HandleComAtprotoServerUpdateEmail(c echo.Context) error
- func (s *Server) HandleComAtprotoSyncGetBlob(c echo.Context) error
- func (s *Server) HandleComAtprotoSyncGetBlocks(c echo.Context) error
- func (s *Server) HandleComAtprotoSyncGetCheckout(c echo.Context) error
- func (s *Server) HandleComAtprotoSyncGetHead(c echo.Context) error
- func (s *Server) HandleComAtprotoSyncGetLatestCommit(c echo.Context) error
- func (s *Server) HandleComAtprotoSyncGetRecord(c echo.Context) error
- func (s *Server) HandleComAtprotoSyncGetRepo(c echo.Context) error
- func (s *Server) HandleComAtprotoSyncListBlobs(c echo.Context) error
- func (s *Server) HandleComAtprotoSyncListRepos(c echo.Context) error
- func (s *Server) HandleComAtprotoSyncNotifyOfUpdate(c echo.Context) error
- func (s *Server) HandleComAtprotoSyncRequestCrawl(c echo.Context) error
- func (s *Server) HandleComAtprotoTempFetchLabels(c echo.Context) error
- func (s *Server) HandleHealthCheck(c echo.Context) error
- func (s *Server) HandleResolveDid(c echo.Context) error
- func (s *Server) RegisterHandlersComAtproto(e *echo.Echo) error
- func (s *Server) Repoman() *repomgr.RepoManager
- func (s *Server) RunAPI(addr string) error
- func (s *Server) RunAPIWithListener(listen net.Listener) error
- func (s *Server) Shutdown(ctx context.Context) error
- func (s *Server) UpdateUserHandle(ctx context.Context, u *User, handle string) error
- type ThreadPost
- type User
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidUsernameOrPassword = fmt.Errorf("invalid username or password")
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.FeedDefs_FeedViewPost, 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.FeedDefs_FeedViewPost, error)
func (*FeedGenerator) GetVotes ¶
func (fg *FeedGenerator) GetVotes(ctx context.Context, uri string, pcid cid.Cid, limit int, before string) ([]*HydratedVote, error)
type FollowInfo ¶
type FollowInfo struct { Follower *bsky.ActorDefs_ProfileViewBasic Subject *bsky.ActorDefs_ProfileViewBasic CreatedAt string IndexedAt string }
type HealthStatus ¶
type HydratedVote ¶
type ReadRecordFunc ¶
type RefreshToken ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) EventsHandler ¶
func (*Server) HandleComAtprotoAdminDisableAccountInvites ¶
func (*Server) HandleComAtprotoAdminDisableInviteCodes ¶
func (*Server) HandleComAtprotoAdminEnableAccountInvites ¶
func (*Server) HandleComAtprotoAdminGetAccountInfo ¶
func (*Server) HandleComAtprotoAdminGetInviteCodes ¶
func (*Server) HandleComAtprotoAdminGetSubjectStatus ¶
func (*Server) HandleComAtprotoAdminSendEmail ¶
func (*Server) HandleComAtprotoAdminUpdateAccountEmail ¶
func (*Server) HandleComAtprotoAdminUpdateAccountHandle ¶
func (*Server) HandleComAtprotoAdminUpdateSubjectStatus ¶
func (*Server) HandleComAtprotoIdentityResolveHandle ¶
func (*Server) HandleComAtprotoIdentityUpdateHandle ¶
func (*Server) HandleComAtprotoLabelQueryLabels ¶
func (*Server) HandleComAtprotoModerationCreateReport ¶
func (*Server) HandleComAtprotoRepoApplyWrites ¶
func (*Server) HandleComAtprotoRepoCreateRecord ¶
func (*Server) HandleComAtprotoRepoDeleteRecord ¶
func (*Server) HandleComAtprotoRepoDescribeRepo ¶
func (*Server) HandleComAtprotoRepoGetRecord ¶
func (*Server) HandleComAtprotoRepoListRecords ¶
func (*Server) HandleComAtprotoRepoPutRecord ¶
func (*Server) HandleComAtprotoRepoUploadBlob ¶
func (*Server) HandleComAtprotoServerConfirmEmail ¶
func (*Server) HandleComAtprotoServerCreateAccount ¶
func (*Server) HandleComAtprotoServerCreateAppPassword ¶
func (*Server) HandleComAtprotoServerCreateInviteCode ¶
func (*Server) HandleComAtprotoServerCreateInviteCodes ¶
func (*Server) HandleComAtprotoServerCreateSession ¶
func (*Server) HandleComAtprotoServerDeleteAccount ¶
func (*Server) HandleComAtprotoServerDeleteSession ¶
func (*Server) HandleComAtprotoServerDescribeServer ¶
func (*Server) HandleComAtprotoServerGetAccountInviteCodes ¶
func (*Server) HandleComAtprotoServerGetSession ¶
func (*Server) HandleComAtprotoServerListAppPasswords ¶
func (*Server) HandleComAtprotoServerRefreshSession ¶
func (*Server) HandleComAtprotoServerRequestAccountDelete ¶
func (*Server) HandleComAtprotoServerRequestEmailConfirmation ¶
func (*Server) HandleComAtprotoServerRequestEmailUpdate ¶
func (*Server) HandleComAtprotoServerRequestPasswordReset ¶
func (*Server) HandleComAtprotoServerReserveSigningKey ¶
func (*Server) HandleComAtprotoServerResetPassword ¶
func (*Server) HandleComAtprotoServerRevokeAppPassword ¶
func (*Server) HandleComAtprotoServerUpdateEmail ¶
func (*Server) HandleComAtprotoSyncGetBlob ¶
func (*Server) HandleComAtprotoSyncGetBlocks ¶
func (*Server) HandleComAtprotoSyncGetCheckout ¶
func (*Server) HandleComAtprotoSyncGetHead ¶
func (*Server) HandleComAtprotoSyncGetLatestCommit ¶
func (*Server) HandleComAtprotoSyncGetRecord ¶
func (*Server) HandleComAtprotoSyncGetRepo ¶
func (*Server) HandleComAtprotoSyncListBlobs ¶
func (*Server) HandleComAtprotoSyncListRepos ¶
func (*Server) HandleComAtprotoSyncNotifyOfUpdate ¶
func (*Server) HandleComAtprotoSyncRequestCrawl ¶
func (*Server) HandleComAtprotoTempFetchLabels ¶
func (*Server) HandleHealthCheck ¶
func (*Server) HandleResolveDid ¶
func (*Server) RegisterHandlersComAtproto ¶
func (*Server) Repoman ¶
func (s *Server) Repoman() *repomgr.RepoManager
type ThreadPost ¶
type ThreadPost struct { Post *bsky.FeedDefs_FeedViewPost PostID uint ParentUri string Parent *ThreadPost }
Click to show internal directories.
Click to hide internal directories.