Documentation
¶
Index ¶
- func ErrRequiredParam(param string) error
- func ErrUnsupported(param string, value any) error
- func HandlePayload[M any](ctx context.Context, evt *event.Event, ...) error
- func IgnoreErrors(handler func(context.Context, *event.Event) error) func(ctx context.Context, evt *event.Event) error
- type Service
- func (s *Service) AddPostClassificationTags(ctx context.Context, postID string, tags ...string) error
- func (s *Service) BanUser(ctx context.Context, userID string, bannedAt time.Time) error
- func (s *Service) BlockUser(ctx context.Context, userID, targetUserID string, blockedAt time.Time) error
- func (s *Service) CreateUser(ctx context.Context, userID string, languageCodes []string, ...) error
- func (s *Service) DeleteCircle(ctx context.Context, circleID string, deletedAt time.Time) error
- func (s *Service) FollowUser(ctx context.Context, userID, targetUserID string, followedAt time.Time) error
- func (s *Service) GetSavedSearchResult(ctx context.Context, kind int64, c model.Cursor) ([]*model.Search, cursor.Page, error)
- func (s *Service) HandleAdminEvent(ctx context.Context, evt *event.Event) error
- func (s *Service) HandleCircleEvent(ctx context.Context, evt *event.Event) error
- func (s *Service) HandleClassificationEvent(ctx context.Context, evt *event.Event) error
- func (s *Service) HandleContentEvent(ctx context.Context, evt *event.Event) error
- func (s *Service) HandleProfileEvent(ctx context.Context, evt *event.Event) error
- func (s *Service) JoinUserToCircle(ctx context.Context, userID string, circleID string, joinedAt time.Time) error
- func (s *Service) LeaveUserFromCircle(ctx context.Context, userID string, circleID string, leftAt time.Time) error
- func (s *Service) ListenEvents(ctx context.Context, client eventbus.Client) error
- func (s *Service) RemovePost(ctx context.Context, postID string, deletedAt time.Time) error
- func (s *Service) SaveCircle(ctx context.Context, circleID string, groupID string, lastUpdateAt time.Time) error
- func (s *Service) SavePost(ctx context.Context, post model.Post) error
- func (s *Service) SaveSearchResult(ctx context.Context, kind int64, entityID string) error
- func (s *Service) UnbanUser(ctx context.Context, userID string, unbannedAt time.Time) error
- func (s *Service) UnblockUser(ctx context.Context, userID, targetUserID string, unblockedAt time.Time) error
- func (s *Service) UnfollowUser(ctx context.Context, userID, targetUserID string, unfollowedAt time.Time) error
- func (s *Service) UnsaveSearchResult(ctx context.Context, kind int64, entityID string) error
- func (s *Service) UpdateUserLangCodes(ctx context.Context, userID string, languagesCodes []string) error
- func (s *Service) ValidateEntityID(_ context.Context, kind int64, entityID string) error
- func (s *Service) ValidateKind(_ context.Context, kind int64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrRequiredParam ¶
func ErrUnsupported ¶
func HandlePayload ¶
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) AddPostClassificationTags ¶
func (*Service) CreateUser ¶
func (*Service) DeleteCircle ¶
func (*Service) FollowUser ¶
func (*Service) GetSavedSearchResult ¶
func (*Service) HandleAdminEvent ¶
func (*Service) HandleCircleEvent ¶
func (*Service) HandleClassificationEvent ¶
func (*Service) HandleContentEvent ¶
func (*Service) HandleProfileEvent ¶
func (*Service) JoinUserToCircle ¶
func (*Service) LeaveUserFromCircle ¶
func (*Service) ListenEvents ¶
func (*Service) RemovePost ¶
func (*Service) SaveCircle ¶
func (*Service) SaveSearchResult ¶
func (*Service) UnblockUser ¶
func (*Service) UnfollowUser ¶
func (*Service) UnsaveSearchResult ¶
func (*Service) UpdateUserLangCodes ¶
func (*Service) ValidateEntityID ¶
Source Files
¶
- add_post_classification_tags.go
- ban_user.go
- block_user.go
- create_user.go
- delete_circle.go
- error.go
- follow_user.go
- get_saved_search_result.go
- join_user_to_circle.go
- leave_user_from_circle.go
- listen_events.go
- remove_post.go
- save_circle.go
- save_post.go
- save_search_result.go
- service.go
- unban_user.go
- unblock_user.go
- unfollow_user.go
- unsave_search_result.go
- update_user_language_codes.go
Click to show internal directories.
Click to hide internal directories.