Documentation ¶
Index ¶
- type Processor
- func (p *Processor) Authorize(ctx context.Context, accessToken string) (*gtsmodel.Account, gtserror.WithCode)
- func (p *Processor) Delete(statusID string) error
- func (p *Processor) Notify(n *apimodel.Notification, account *gtsmodel.Account) error
- func (p *Processor) Open(ctx context.Context, account *gtsmodel.Account, streamType string) (*stream.Stream, gtserror.WithCode)
- func (p *Processor) Update(s *apimodel.Status, account *gtsmodel.Account, streamTypes []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Processor ¶
type Processor struct {
// contains filtered or unexported fields
}
func (*Processor) Authorize ¶
func (p *Processor) Authorize(ctx context.Context, accessToken string) (*gtsmodel.Account, gtserror.WithCode)
Authorize returns an oauth2 token info in response to an access token query from the streaming API
func (*Processor) Notify ¶
Notify streams the given notification to any open, appropriate streams belonging to the given account.
Click to show internal directories.
Click to hide internal directories.