mirror of
https://github.com/ash-project/ash.git
synced 2024-09-20 13:33:20 +12:00
docs: update notifier docs
This commit is contained in:
parent
72b5a57a25
commit
50f893e8db
1 changed files with 12 additions and 3 deletions
|
@ -1,6 +1,4 @@
|
||||||
defmodule Ash.Notifier.PubSub do
|
defmodule Ash.Notifier.PubSub do
|
||||||
@moduledoc "A pubsub notifier extension"
|
|
||||||
|
|
||||||
@publish %Ash.Dsl.Entity{
|
@publish %Ash.Dsl.Entity{
|
||||||
name: :publish,
|
name: :publish,
|
||||||
target: Ash.Notifier.PubSub.Publication,
|
target: Ash.Notifier.PubSub.Publication,
|
||||||
|
@ -89,7 +87,18 @@ defmodule Ash.Notifier.PubSub do
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
use Ash.Dsl.Extension, sections: [@pub_sub]
|
@sections [@pub_sub]
|
||||||
|
|
||||||
|
@moduledoc """
|
||||||
|
A pubsub notifier extension
|
||||||
|
|
||||||
|
# Table of Contents
|
||||||
|
#{Ash.Dsl.Extension.doc_index(@sections)}
|
||||||
|
|
||||||
|
#{Ash.Dsl.Extension.doc(@sections)}
|
||||||
|
"""
|
||||||
|
|
||||||
|
use Ash.Dsl.Extension, sections: @sections
|
||||||
|
|
||||||
def publications(resource) do
|
def publications(resource) do
|
||||||
Ash.Dsl.Extension.get_entities(resource, [:pub_sub])
|
Ash.Dsl.Extension.get_entities(resource, [:pub_sub])
|
||||||
|
|
Loading…
Reference in a new issue