https://github.com/violetbuse/node_tags
https://github.com/violetbuse/node_tags
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/violetbuse/node_tags
- Owner: VioletBuse
- Created: 2024-06-22T21:32:05.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-06-23T21:03:01.000Z (almost 2 years ago)
- Last Synced: 2024-09-15T16:50:15.650Z (over 1 year ago)
- Language: Gleam
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# node_tags
[](https://hex.pm/packages/node_tags)
[](https://hexdocs.pm/node_tags/)
```sh
gleam add node_tags
```
```gleam
import node_tags
import gleam/erlang/atom
import gleam/io
pub fn main() {
let manager = atom.create_from_string("tags")
|> node_tags.start
node_tags.set(manager, "id", node_tags.String("main_node"))
io.debug(
node_tags.get_nodes_tagged(
manager,
where: #("id", node_tags.String("worker_node")),
until: 1000
)
)
}
```
Further documentation can be found at .
## Development
```sh
gleam run # Run the project
gleam test # Run the tests
gleam shell # Run an Erlang shell
```