Module

Gun

Package
purescript-bf-gun
Repository
gorillatron/purescript-bf-gun

#ListenerResponse Source

type ListenerResponse a = { data :: Either JsonDecodeError a, key :: String, raw :: RawNode a }

#create Source

create :: forall a. Options Configuration -> Effect (Node a)

#opt Source

opt :: forall a. Options Configuration -> Node a -> Effect (Node a)

#get Source

get :: forall a b. EncodeJson b => DecodeJson b => (Json -> Either JsonDecodeError b) -> (b -> Json) -> String -> Node a -> Effect (Node b)

#put Source

put :: forall a. a -> Node a -> Effect (Node a)

#set Source

set :: forall a. a -> Node a -> Effect (Node a)

#putWithCertificate Source

putWithCertificate :: forall a. Certificate -> a -> Node a -> Effect (Node a)

#on Source

on :: forall a. (ListenerResponse a -> Effect Unit) -> Node a -> Effect (Node a)

#once Source

once :: forall a. (ListenerResponse a -> Effect Unit) -> Node a -> Effect (Node a)

#map Source

map :: forall a. (ListenerResponse a -> Effect Unit) -> Node a -> Effect (Node a)

#back Source

back :: forall a. Int -> Node a -> Effect (Node a)

#off Source

off :: forall a. Node a -> Effect Unit