Skip to content

jfd/Hydna.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hydna Julia Client Library

This first version of our client library for Julia implements support for the Hydna Push API. Future versions will include support for the full set of features.

More info: https://www.hydna.com/

Usage

The exported APIs from module Hydna are:

using Hydna

# send a message
result = Hydna.send('public.hydna.net/julia-test', 'hello world')
@test result.success

# send message with priority 3
result = Hydna.send('public.hydna.net/julia-test',
                    'hello world',
                    SendOptions(priority=3))
@test result.success

# send a non-blocking message
ref = Hydna.send('public.hydna.net/julia-test',
                 'hello world',
                 SendOptions(blocking=false))
result = fetch(ref)
@test result.success

# emit a signal
result = Hydna.emit('public.hydna.net/julia-test', 'hello world signal')
@test result.success

# emit a non-blocking signal
ref = Hydna.emit('public.hydna.net/julia-test',
                 'hello world',
                 EmitOptions(blocking=false))
result = fetch(ref)
@test result.success

About

Julia bindings for Hydna

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages