Documentation ¶
Index ¶
- func MetricsMiddleware(next echo.HandlerFunc) echo.HandlerFunc
- type Cursor
- type Event
- type EventsQuery
- type EventsResponse
- type IdentitiesQuery
- type IdentitiesResponse
- type Identity
- type JSONEvent
- type JSONIdentity
- type JSONRecord
- type Record
- type RecordsQuery
- type RecordsResponse
- type Stream
- func (s *Stream) Error(err *events.ErrorFrame) error
- func (s *Stream) GetSeq() int64
- func (s *Stream) HandleGetEvents(c echo.Context) error
- func (s *Stream) HandleGetIdentities(c echo.Context) error
- func (s *Stream) HandleGetRecords(c echo.Context) error
- func (s *Stream) LabelInfo(info *atproto.LabelSubscribeLabels_Info) error
- func (s *Stream) LabelLabels(label *atproto.LabelSubscribeLabels_Labels) error
- func (s *Stream) RepoCommit(evt *atproto.SyncSubscribeRepos_Commit) error
- func (s *Stream) RepoHandle(handle *atproto.SyncSubscribeRepos_Handle) error
- func (s *Stream) RepoIdentity(id *atproto.SyncSubscribeRepos_Identity) error
- func (s *Stream) RepoInfo(info *atproto.SyncSubscribeRepos_Info) error
- func (s *Stream) RepoMigrate(migrate *atproto.SyncSubscribeRepos_Migrate) error
- func (s *Stream) RepoTombstone(tomb *atproto.SyncSubscribeRepos_Tombstone) error
- func (s *Stream) SetSeq(seq int64)
- func (s *Stream) Start(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MetricsMiddleware ¶
func MetricsMiddleware(next echo.HandlerFunc) echo.HandlerFunc
MetricsMiddleware defines handler function for metrics middleware
Types ¶
type Event ¶
type Event struct { CreatedAt time.Time `gorm:"index"` UpdatedAt time.Time DeletedAt gorm.DeletedAt FirehoseSeq int64 `gorm:"primarykey;idx_events_repo_seq,priority:2,order:desc"` Repo string `gorm:"index;index:idx_events_repo_seq,priority:1"` EventType string `gorm:"index"` Error string Time int64 Since *string }
type EventsQuery ¶
type EventsResponse ¶
type IdentitiesQuery ¶
type IdentitiesResponse ¶
type IdentitiesResponse struct { Identities []JSONIdentity `json:"identities"` Error string `json:"error,omitempty"` }
type JSONIdentity ¶
type JSONRecord ¶
type Record ¶
type Record struct { ID uint `gorm:"primarykey;index:idx_records_repo_id,priority:2,order:desc"` CreatedAt time.Time `gorm:"index"` UpdatedAt time.Time DeletedAt gorm.DeletedAt FirehoseSeq int64 `gorm:"index"` Repo string `gorm:"index:idx_path;index:idx_records_repo_id,priority:1"` Collection string `gorm:"index:idx_path"` RKey string `gorm:"index:idx_path"` Action string Raw []byte // Raw JSON data }
type RecordsQuery ¶
type RecordsResponse ¶
type RecordsResponse struct { Records []JSONRecord `json:"records"` Error string `json:"error,omitempty"` }
type Stream ¶
type Stream struct {
// contains filtered or unexported fields
}
func (*Stream) HandleGetEvents ¶
HandleGetEvents handles the GET /events endpoint
func (*Stream) HandleGetIdentities ¶
func (*Stream) HandleGetRecords ¶
HandleGetRecords handles the GET /records endpoint
func (*Stream) LabelInfo ¶
func (s *Stream) LabelInfo(info *atproto.LabelSubscribeLabels_Info) error
func (*Stream) LabelLabels ¶
func (s *Stream) LabelLabels(label *atproto.LabelSubscribeLabels_Labels) error
func (*Stream) RepoCommit ¶
func (s *Stream) RepoCommit(evt *atproto.SyncSubscribeRepos_Commit) error
func (*Stream) RepoHandle ¶
func (s *Stream) RepoHandle(handle *atproto.SyncSubscribeRepos_Handle) error
func (*Stream) RepoIdentity ¶
func (s *Stream) RepoIdentity(id *atproto.SyncSubscribeRepos_Identity) error
func (*Stream) RepoMigrate ¶
func (s *Stream) RepoMigrate(migrate *atproto.SyncSubscribeRepos_Migrate) error
func (*Stream) RepoTombstone ¶
func (s *Stream) RepoTombstone(tomb *atproto.SyncSubscribeRepos_Tombstone) error
Click to show internal directories.
Click to hide internal directories.