View Source Mobilizon.Web.Cache (Mobilizon v4.1.0-alpha.1)

Facade module which provides access to all cached data.

Summary

Types

@type local_actor() :: %Mobilizon.Actors.Actor{
  __meta__: term(),
  avatar: term(),
  banner: term(),
  comments: term(),
  conversations: term(),
  created_reports: term(),
  discussions_url: term(),
  domain: nil,
  events_url: term(),
  feed_tokens: term(),
  followers: term(),
  followers_url: term(),
  following_url: term(),
  followings: term(),
  id: term(),
  inbox_url: term(),
  inserted_at: term(),
  keys: term(),
  last_refreshed_at: term(),
  manually_approves_followers: term(),
  members_url: term(),
  memberships: term(),
  mentions: term(),
  name: term(),
  openness: term(),
  organized_events: term(),
  outbox_url: term(),
  owner_shares: term(),
  participations: term(),
  physical_address: term(),
  physical_address_id: term(),
  posts_url: term(),
  preferred_username: term(),
  report_notes: term(),
  resources_url: term(),
  shared_inbox_url: term(),
  shares: term(),
  subject_reports: term(),
  summary: term(),
  suspended: term(),
  todos_url: term(),
  type: term(),
  updated_at: term(),
  url: term(),
  user: term(),
  user_id: term(),
  visibility: term()
}

Functions

@spec get_actor_by_name(binary()) ::
  {:commit, Mobilizon.Actors.Actor.t()} | {:ignore, nil}

See Mobilizon.Web.Cache.ActivityPub.get_actor_by_name/1.

Link to this function

get_comment_by_uuid_with_preload(uuid)

View Source
@spec get_comment_by_uuid_with_preload(binary()) ::
  {:commit, Mobilizon.Discussions.Comment.t()} | {:ignore, nil}

See Mobilizon.Web.Cache.ActivityPub.get_comment_by_uuid_with_preload/1.

Link to this function

get_conversation_by_id_with_preload(uuid)

View Source
@spec get_conversation_by_id_with_preload(binary()) ::
  {:commit, Mobilizon.Conversations.Conversation.t()} | {:ignore, nil}

See Mobilizon.Web.Cache.ActivityPub.get_conversation_by_id_with_preload/1.

Link to this function

get_discussion_by_slug_with_preload(slug)

View Source
@spec get_discussion_by_slug_with_preload(binary()) ::
  {:commit, Mobilizon.Discussions.Discussion.t()} | {:ignore, nil}

See Mobilizon.Web.Cache.ActivityPub.get_discussion_by_slug_with_preload/1.

Link to this function

get_local_actor_by_name(name)

View Source
@spec get_local_actor_by_name(binary()) ::
  {:commit, Mobilizon.Actors.Actor.t()} | {:ignore, nil}

See Mobilizon.Web.Cache.ActivityPub.get_local_actor_by_name/1.

Link to this function

get_member_by_uuid_with_preload(uuid)

View Source
@spec get_member_by_uuid_with_preload(binary()) ::
  {:commit, Mobilizon.Actors.Member.t()} | {:ignore, nil}

See Mobilizon.Web.Cache.ActivityPub.get_member_by_uuid_with_preload/1.

Link to this function

get_post_by_slug_with_preload(slug)

View Source
@spec get_post_by_slug_with_preload(binary()) ::
  {:commit, Mobilizon.Posts.Post.t()} | {:ignore, nil}

See Mobilizon.Web.Cache.ActivityPub.get_post_by_slug_with_preload/1.

Link to this function

get_public_event_by_uuid_with_preload(uuid)

View Source
@spec get_public_event_by_uuid_with_preload(binary()) ::
  {:commit, Mobilizon.Events.Event.t()} | {:ignore, nil}

See Mobilizon.Web.Cache.ActivityPub.get_public_event_by_uuid_with_preload/1.

@spec get_relay() :: {:commit, Mobilizon.Actors.Actor.t()} | {:ignore, nil}

See Mobilizon.Web.Cache.ActivityPub.get_relay/0.

Link to this function

get_resource_by_uuid_with_preload(uuid)

View Source
@spec get_resource_by_uuid_with_preload(binary()) ::
  {:commit, Mobilizon.Resources.Resource.t()} | {:ignore, nil}

See Mobilizon.Web.Cache.ActivityPub.get_resource_by_uuid_with_preload/1.

Link to this function

get_todo_by_uuid_with_preload(uuid)

View Source
@spec get_todo_by_uuid_with_preload(binary()) ::
  {:commit, Mobilizon.Todos.Todo.t()} | {:ignore, nil}

See Mobilizon.Web.Cache.ActivityPub.get_todo_by_uuid_with_preload/1.

Link to this function

get_todo_list_by_uuid_with_preload(uuid)

View Source
@spec get_todo_list_by_uuid_with_preload(binary()) ::
  {:commit, Mobilizon.Todos.TodoList.t()} | {:ignore, nil}

See Mobilizon.Web.Cache.ActivityPub.get_todo_list_by_uuid_with_preload/1.