Documentation ¶
Index ¶
Constants ¶
View Source
const NoBot = "#nobot"
Variables ¶
View Source
var ErrInvalid = errors.New("invalid argument")
View Source
var ErrNoAccept = errors.New("follow request is not accepted yet")
Functions ¶
func ActivityHasNoBotTag ¶
func ActivityHasNoBotTag(a util.ActivityTags) (contains bool)
func ActorHasNoBotTag ¶
func ActorHasNoBotTag(o util.ObjectTags) (contains bool)
Types ¶
type Service ¶
type Service interface { RequestFollow(ctx context.Context, addr, groupId, userId, subId, term string) (url string, err error) HandleActivity( ctx context.Context, actorIdLocal, pubKeyId string, actor vocab.Actor, actorTags util.ObjectTags, activity vocab.Activity, activityTags util.ActivityTags, ) (post func(), err error) Read(ctx context.Context, url vocab.IRI) (src model.Source, err error) List( ctx context.Context, filter model.Filter, limit uint32, cursor string, order model.Order, ) ( page []string, err error, ) Unfollow(ctx context.Context, url vocab.IRI, groupId, userId string) (err error) }
func NewService ¶
func NewServiceMock ¶
func NewServiceMock() Service
Click to show internal directories.
Click to hide internal directories.