Documentation ¶
Index ¶
- Variables
- func NewInboxService(log logger.Logger, database database.Database, ...) *inboxService
- func NewTweetService(logger logger.Logger, userService UserService, ...) *tweetService
- func NewUserService(log logger.Logger, manager crypto.KeyManager, ...) *userService
- type ActorNotAllowedError
- type InboxFollowRequest
- type InboxService
- type TweetService
- type TwitterUserDoesNotExistError
- type UnsuportedUndoObjectError
- type UserService
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrFollowMismatchDomain = errors.New("unable to follow an user outside this instance")
View Source
var ErrUserDoesNotExist = errors.New("user does not exist")
Functions ¶
func NewInboxService ¶
func NewInboxService( log logger.Logger, database database.Database, actorRepository repository.ActorRepository, userRepo repository.UserRepository, keyService crypto.KeyManager, activityPubClient activitypubclient.ActivityPubClient, vocabService activitypub.VocabService, worker client.BackgroundWorkerClient, authorizationChecker authorization.AuthorizationChecker, config config.Config, ) *inboxService
func NewTweetService ¶
func NewTweetService( logger logger.Logger, userService UserService, tweeterClient twitter.TwitterClient, tweetRepo repository.TweetRepository, ) *tweetService
func NewUserService ¶
func NewUserService( log logger.Logger, manager crypto.KeyManager, userRepo repository.UserRepository, client twitter.TwitterClient, ) *userService
Types ¶
type ActorNotAllowedError ¶
type ActorNotAllowedError struct {
// contains filtered or unexported fields
}
func (*ActorNotAllowedError) Actor ¶
func (e *ActorNotAllowedError) Actor() string
func (*ActorNotAllowedError) Error ¶
func (e *ActorNotAllowedError) Error() string
type InboxFollowRequest ¶
type InboxFollowRequest struct {
Actor string
}
type InboxService ¶
type InboxService interface { Follow(context.Context, vocab.ActivityStreamsFollow) error UnFollow(context.Context, vocab.ActivityStreamsUndo) error }
type TweetService ¶
type TwitterUserDoesNotExistError ¶
type TwitterUserDoesNotExistError struct {
Username string
}
func (*TwitterUserDoesNotExistError) Error ¶
func (e *TwitterUserDoesNotExistError) Error() string
type UnsuportedUndoObjectError ¶
func (*UnsuportedUndoObjectError) Error ¶
func (u *UnsuportedUndoObjectError) Error() string
Click to show internal directories.
Click to hide internal directories.