Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

Latest commit

 

History

History
78 lines (56 loc) · 1.36 KB

README.md

File metadata and controls

78 lines (56 loc) · 1.36 KB

We moved to https://codeberg.org/phochste/go-ldn-inbox

go-ldn-inbox

A Go implementation of an Linked Data Notifications Sender, Consumer and Receiver.

Build the server

make

Run the server

./ldn-receiver

The service is now available at http://localhost:3333/inbox/

Send some data

./ldn-sender http://localhost:3333/inbox/ ./examples/demo.jsonld

Read some data

./ldn-consumer http://localhost:3333/inbox/
http://localhost:3333/inbox/b09dee2e4dc5cecdf0951dab287a906d.jsonld
./ldn-consumer http://localhost:3333/inbox/b09dee2e4dc5cecdf0951dab287a906d.jsonld
...{json-ld output}...

Optional

Add some HTTP headers to the inbox

touch inbox/.meta

in the .meta file store as JSON key value pairs

Help

Usage of ./ldn-receiver:
  -base string
        Base URL (default "http://localhost:3333")
  -host string
        Hostname (default "localhost")
  -inboxDir string
        Local path to your inbox (default "./inbox")
  -inboxPath string
        URL path to your inbox (default "/inbox/")
  -port int
        Port (default 3333)
  -public
        World readable inbox (default true)
  -schema string
        JSON schema to validate input
  -writable
        World appendable inbox (default true)

Install

make install

Author

Patrick Hochstenbach

MIT license