Dagger
Search

novu

https://novu.co/

Installation

dagger install github.com/levlaz/daggerverse/novu@v0.1.1

Entrypoint

Return Type
Novu
Example
dagger -m github.com/levlaz/daggerverse/novu@643a9503d436c0979870a7d78d1227eabc09b09a call \
func (m *myModule) example() *Novu  {
	return dag.
			Novu()
}
@function
def example() -> dag.Novu:
	return (
		dag.novu()
	)
@func()
example(): Novu {
	return dag
		.novu()
}

Types

Novu 🔗

notify() 🔗

trigger notification via Novu

Return Type
String !
Arguments
NameTypeDefault ValueDescription
subscriberString !-Novu subscriber ID
tokenSecret !-Novu API token
eventString !-Novu event Id
msgString !-Message body for notification
Example
dagger -m github.com/levlaz/daggerverse/novu@643a9503d436c0979870a7d78d1227eabc09b09a call \
 notify --subscriber string --token env:MYSECRET --event string --msg string
func (m *myModule) example(ctx context.Context, subscriber string, token *Secret, event string, msg string) string  {
	return dag.
			Novu().
			Notify(ctx, subscriber, token, event, msg)
}
@function
async def example(subscriber: str, token: dagger.Secret, event: str, msg: str) -> str:
	return await (
		dag.novu()
		.notify(subscriber, token, event, msg)
	)
@func()
async example(subscriber: string, token: Secret, event: string, msg: string): Promise<string> {
	return dag
		.novu()
		.notify(subscriber, token, event, msg)
}