Skip to content

Instantly share code, notes, and snippets.

View the2pizza's full-sized avatar
🦖

Fyodor Sotnikov the2pizza

🦖
  • frkn.org
View GitHub Profile
use uuid::Uuid;
use worktable::prelude::*;
use worktable::worktable;
worktable!(
name: User,
persist: true,
columns: {
id: i64 primary_key autoincrement,
name: String,
worktable!(
name: My,
columns: {
id: u64 primary_key autoincrement,
val: i64,
attribute: String,
},
indexes: {
attribute_idx: attribute,
; -*- mode: clojure; -*-
; vim: filetype=clojure
(logging/init {:file "riemann.log"})
; Listen on the local interface over TCP (5555), UDP (5555), and websockets
; (5556)
(let [host "127.0.0.1"]
(tcp-server {:host host})
(udp-server {:host host})