// Uncomment the following line to change the fontsize and font: fontsize=13 fontfamily=Monospaced //possible: SansSerif,Serif,

////////////////////////////////////////////////////////////////////////////////////////////// // Welcome to UMLet! // // Double-click on elements to add them to the diagram, or to copy them // Edit elements by modifying the text in this panel // Hold Ctrl to select multiple elements // Use Ctrl+mouse to select via lasso // // Use +/- or Ctrl+mouse wheel to zoom // Drag a whole relation at its central square icon // // Press Ctrl+C to copy the whole diagram to the system clipboard (then just paste it to, eg, Word) // Edit the files in the "palettes" directory to create your own element palettes // // Select "Custom Elements > New..." to create new element types //////////////////////////////////////////////////////////////////////////////////////////////

// This text will be stored with each diagram; use it for notes.
8
UMLClass
448
712
200
216
siri_t -- args: *siri_args_t backup: *uv_timer_t cfg: *siri_cfg_t fh: *siri_fh_t grammar: *cleri_grammar_t heartbeat: *uv_timer_t loop: * uv_loop_t optimize: *siri_optimize_t siridb_list: *llist_t siridb_mutex: uv_mutex_t startup_time: uint32_t status: siri_status_t -- siri_start(): int siri_free(): void siri_setup_logger(): void
UMLClass
752
712
224
632
siridb_t -- active_tasks: uint16_t buffer_fp: *FILE buffer_len: size_t buffer_path: * char buffer_size: size_t dbname: * char dbpath: * char drop_threshold: double dropped_fp: *FILE duration_log: uint64_t duration_num: uint64_t fifo: *siridb_fifo_t flags: uint8_t groups: *siridb_groups_t index_size: size_t insert_tasks: uint16_t max_series_id: uint32_t pools: *siridb_pools_t received_points: size_t ref: uint16_t reindex: *siridb_reindex_t replica: * siridb_server_t replicate: *siridb_replicate_t series: *ct_t series_map: *imap_t series_mutex: uv_mutex_t server: * siridb_server_t servers: *llist_t shard_mask_log: uint16_t shard_mask_num: uint16_t shards: *imap_t shards_mutex: uv_mutex_t start_ts: time_t store: *qp_fpacker_t time: * siridb_time_t tz: iso8601_tz_t users: *llist_t uuid: uuid_t -- siridb__free(): void siridb_decref(): void siridb_decref_cb(): void siridb_from_unpacker(): int siridb_get(): *siridb_t siridb_incref(): void siridb_is_db_path(): int siridb_is_reindexing(): int siridb_new(): *siridb_t siridb_open_files(): int siridb_save(): int
Relation
640
816
128
32
lt=<<<<<- m1=1 m2=0..*
10.0;10.0;140.0;10.0
UMLClass
1048
712
296
192
lt=. servers -- siridb_servers_available(): int siridb_servers_by_name(): *siridb_server_t siridb_servers_by_uuid(): *siridb_server_t siridb_servers_free(): void siridb_servers_get_file(): ssize_t siridb_servers_list(): int siridb_servers_load(): int siridb_servers_online(): int siridb_servers_other2slist(): *slist_t siridb_servers_register(): int siridb_servers_save(): int siridb_servers_send_flags(): void siridb_servers_send_pkg(): void
UMLClass
1432
408
288
560
server_t -- address: *char buffer_path: *char buffer_size: size_t dbpath: *char flags: uint8_t id: uint8_t ip_support: uint8_t libuv: *char name: *char pid: uint16_t pool: uint16_t port: uint16_t promises: *imap_t ref: uint16_t socket: *uv_tcp_t startup_time: uint32_t uuid: uuid_t version: *char -- siridb__server_free(): void siridb_server_cexpr_cb(): int siridb_server_cmp(): int siridb_server_connect(): void siridb_server_decref(): void siridb_server_drop(): int siridb_server_from_node(): *siridb_server_t siridb_server_incref(): void siridb_server_is_accessible(): int siridb_server_is_available(): int siridb_server_is_connected(): int siridb_server_is_online(): int siridb_server_is_remote_prop(): int siridb_server_is_synchronizing(): int siridb_server_new(): *siridb_server_t siridb_server_register(): *siridb_server_t siridb_server_self_accessible(): int siridb_server_self_available(): int siridb_server_self_online(): int siridb_server_self_synchronizing(): int siridb_server_send_flags(): void siridb_server_send_pkg(): int siridb_server_str_status(): *char siridb_server_update_address(): int siridb_server_update_flags(): void
Relation
968
920
480
32
lt=<<<<<- m1=1 m2=1..*
10.0;10.0;580.0;10.0
Relation
968
800
96
24
lt=.
10.0;10.0;100.0;10.0
Relation
1336
800
112
24
lt=.
120.0;10.0;10.0;10.0
UMLClass
504
544
200
88
iso8601_tz_t -- tz: iso8601_tz_t -- iso8601_tz(): iso8601_tz_t iso8601_tzname(): const *char iso8601_parse_date(): int64_t
UMLClass
448
992
200
112
siri_fh_t -- size: uint16_t idx: uint16_t fpointers: **siri_fp_t -- siri_fh_new(): *siri_fh_t siri_fh_free(): void siri_fopen(): int
UMLClass
448
1176
200
88
siri_fp_t -- fp: *FILE ref: uint8_t -- siri_fp_new(): *siri_fp_t siri_fp_decref(): void
Relation
536
920
24
88
lt=<<<<<- m1=1 m2=1
10.0;10.0;10.0;90.0
Relation
536
1096
64
96
lt=<<<<<- m1=1 m2=0..size
10.0;10.0;10.0;100.0
UMLClass
736
1528
288
352
siridb_shard_t -- flags: uint8_t fn: *char fp: *siri_fp_t id: uint64_t max_chunk_sz: uint16_t ref: uint32_t replacing: *siridb_shard_t tp: uint8_t -- siridb__shard_decref(): void siridb__shard_free(): void siridb_shard_cexpr_cb(): int siridb_shard_create(): *siridb_shard_t siridb_shard_decref(): void siridb_shard_drop(): void siridb_shard_get_points_log32(): int siridb_shard_get_points_log64(): int siridb_shard_get_points_num32(): int siridb_shard_get_points_num64(): int siridb_shard_get_size(): ssize_t siridb_shard_incref(): void siridb_shard_load(): int siridb_shard_optimize(): int siridb_shard_remove(): int siridb_shard_status(): void siridb_shard_write_flags(): int siridb_shard_write_points(): long int
UMLClass
784
1408
256
56
lt=. shards -- siridb_shards_add_points(): int siridb_shards_load(): int
Relation
872
1336
24
88
lt=.
10.0;10.0;10.0;90.0
Relation
872
1456
24
88
lt=.
10.0;10.0;10.0;90.0
Relation
760
1336
48
208
lt=<<<<<- m1=1 m2=0..*
10.0;10.0;10.0;240.0
Relation
640
1024
112
584
lt=<-
10.0;10.0;90.0;10.0;90.0;710.0;120.0;710.0
Relation
536
1256
216
440
lt=<<<<- m1=1 m2=1
250.0;520.0;10.0;520.0;10.0;10.0
UMLClass
1104
1048
296
488
siridb_series_t -- buffer: *siridb_buffer_t end: uint64_t flags: uint8_t id: uint32_t idx: *idx_t idx_len: uint32_t length: uint32_t mask: uint16_t name: *char name_len: uint16_t pool: uint16_t ref: uint32_t start: uint64_t tp: uint8_t -- siridb__series_decref(): void siridb__series_free(): void siridb_series_add_idx(): int siridb_series_add_pcache(): int siridb_series_add_point(): int siridb_series_cexpr_cb(): int siridb_series_decref(): void siridb_series_drop(): int siridb_series_drop_commit(): int siridb_series_drop_prepare(): void siridb_series_flush_dropped(): int siridb_series_get_points(): *siridb_points_t siridb_series_incref(): void siridb_series_isnum(): int siridb_series_load(): int siridb_series_new(): *siridb_series_t siridb_series_open_store(): int siridb_series_optimize_shard(): int siridb_series_remove_shard(): void siridb_series_replicate_file(): int siridb_series_server_id(): int siridb_series_server_id_by_name(): uint8_t siridb_series_update_props(): void
Relation
968
1096
152
32
lt=<<<<<- m1=1 m2=0..*
10.0;10.0;170.0;10.0
UMLClass
1104
1608
296
128
idx_t -- end_ts: uint64_t len: uint16_t log_sz: uint16_t pos: uint32_t shard: *siridb_shard_t start_ts: uint64_t -- /functions can be found in/ /siridb_series_t class/
Relation
1248
1528
56
96
lt=<<<<<- m1=1 m2=0..len
10.0;10.0;10.0;100.0
Relation
1016
1664
104
32
lt=<<<<- m1=0..* m2=1
110.0;10.0;10.0;10.0
UMLClass
1464
992
256
280
siridb_groups_t -- flags: uint8_t fn: *char groups: *ct_t mutex: uv_mutex_t ngroups: *slist_t nseries: *slist_t ref: uint8_t status: uint8_t work: uv_work_t -- siridb_groups_add_group(): int siridb_groups_add_series(): void siridb_groups_decref(): void siridb_groups_destroy(): void siridb_groups_drop_group(): int siridb_groups_get_file(): ssize_t siridb_groups_init_nseries(): void siridb_groups_new(): *siridb_groups_t siridb_groups_pkg(): *sirinet_pkg_t siridb_groups_save(): int siridb_groups_start(): void
Relation
968
1016
512
32
lt=<<<<<- m1=1 m2=1
10.0;10.0;620.0;10.0
UMLClass
1464
1352
256
280
siridb_group_t -- flags: uint16_t n: uint32_t name: *char ref: uint16_t regex: *pcre regex_extra: *pcre_extra series: *slist_t source: *char -- siridb__group_decref(): void siridb__group_free(): void siridb_group_cexpr_cb(): int siridb_group_cleanup(): void siridb_group_decref(): void siridb_group_incref(): void siridb_group_is_remote_prop(): int siridb_group_new(): *siridb_group_t siridb_group_prop(): void siridb_group_set_name(): int siridb_group_test_series(): int siridb_group_update_expression(): int
Relation
1576
1264
48
104
lt=<<<<<- m1=1 m2=0..*
10.0;10.0;10.0;110.0
Relation
1392
1304
168
64
lt=<<<<- m1=0..* m2=0..*
160.0;60.0;160.0;10.0;10.0;10.0
UMLClass
120
712
200
144
cfg_t -- default_db_path[]: char heartbeat_interval: uint16_t ip_support: uint8_t listen_backend_port: uint16_t listen_client_port: uint16_t max_open_files: uint16_t optimize_interval: uint32_t server_address[]: char -- siri_cfg_init(): void
Relation
312
760
152
40
lt=-() m2=cfg file
170.0;20.0;10.0;20.0
Relation
600
624
184
104
lt=-() m2=tz translation
210.0;110.0;210.0;60.0;10.0;60.0;10.0;10.0
UMLClass
1096
456
248
216
siridb_fifo_t -- path: *char fifos: *llist_t in: *siridb_ffile_t out: *siridb_ffile_t max_id: ssize_t -- siridb_fifo_append(): int siridb_fifo_close(): int siridb_fifo_commit(): int siridb_fifo_commit_err(): int siridb_fifo_free(): void siridb_fifo_has_data(): uint32_t siridb_fifo_is_open(): int siridb_fifo_new(): *siridb_fifo_t siridb_fifo_open(): int siridb_fifo_pop(): *sirinet_pkg_t
Relation
944
640
168
88
lt=<<<<<- m1=1 m2=0..1
10.0;90.0;10.0;10.0;190.0;10.0
UMLClass
120
920
200
96
args_t -- config[]: char log_colorized: int32_t log_level[]: char version: int32_t -- siri_args_parse(): void
Relation
208
848
56
88
lt=<. config
10.0;10.0;10.0;90.0
Relation
312
856
152
128
lt=-() m2=startup arguments
170.0;10.0;90.0;10.0;90.0;130.0;10.0;130.0
UMLClass
1808
832
280
192
siridb_pools_t -- len: uint16_t pool: *siridb_pool_t lookup: *siridb_lookup_t prev_lookup: *siridb_lookup_t -- siridb_pools_accessible(): int siridb_pools_append(): *siridb_pool_t siridb_pools_available(): int siridb_pools_free(): void siridb_pools_gen_lookup(): *siridb_lookup_t siridb_pools_init(): void siridb_pools_online(): int siridb_pools_send_pkg(): void siridb_pools_send_pkg_2some(): void
Relation
968
968
856
32
lt=<<<<<- m1=1 m2=1
10.0;10.0;1050.0;10.0
UMLClass
1808
576
280
192
siridb_pool_t -- len: uint16_t server[2]: *siridb_server_t -- siridb_pool_accessible(): int siridb_pool_add_server(): void siridb_pool_available(): int siridb_pool_cexpr_cb(): int siridb_pool_online(): int siridb_pool_send_pkg(): int
Relation
1944
760
48
88
lt=<<<<<- m1=1 m2=1..*
10.0;90.0;10.0;10.0
Relation
1712
664
112
32
lt=<<<<- m1=1 m2=1..len
120.0;10.0;10.0;10.0
UMLClass
1096
160
248
216
siridb_ffile_t -- fd: int fn: *char fp: *FILE free_space: uint32_t id: uint64_t next_size: uint32_t size: long int -- siridb_ffile_append(): siridb_ffile_result_t siridb_ffile_check_fn(): int siridb_ffile_free(): void siridb_ffile_new(): *siridb_ffile_t siridb_ffile_open(): void siridb_ffile_pop(): *sirinet_pkg_t siridb_ffile_pop_commit(): int siridb_ffile_unlink(): void
Relation
1224
368
48
104
lt=<<<<<- m1=1 m2=1..*
10.0;110.0;10.0;10.0
UMLClass
808
456
256
120
lt=. users -- siridb_users_add_user(): int siridb_users_drop_user(): int siridb_users_free(): void siridb_users_get_file(): ssize_t siridb_users_get_user(): *siridb_user_t siridb_users_load(): int siridb_users_save(): *int
UMLClass
744
184
232
192
siridb_user_t -- ref: uint16_t access_bit: uint32_t name: *char password: *char -- siridb_user_new(): *siridb_user_t siridb_user_prop(): void siridb_user_set_name(): int siridb_user_set_password(): int siridb_user_check_access(): int siridb__user_free(): void siridb_user_cexpr_cb(): int siridb_user_incref(): void siridb_user_decref(): void
Relation
776
368
48
360
lt=<<<<<- m1=1 m2=0..*
10.0;430.0;10.0;10.0
Relation
856
568
24
160
lt=.
10.0;180.0;10.0;10.0
Relation
856
368
24
104
lt=.
10.0;110.0;10.0;10.0
UMLClass
1432
104
288
232
sirinet_socket_t -- buf: *char len: size_t on_data: on_data_cb_t origin: *void ref: uint32_t siridb: *siridb_t tcp: uv_tcp_t tp: sirinet_socket_tp_t -- sirinet__socket_free(): void sirinet_addr_and_port(): int sirinet_socket_alloc_buffer(): void sirinet_socket_decref(): void sirinet_socket_incref(): void sirinet_socket_ip_support_str(): const *char sirinet_socket_new(): *uv_tcp_t sirinet_socket_on_data(): void
Relation
1576
328
24
96
lt=<<<<->>>> m2=1
10.0;100.0;10.0;10.0
Relation
968
128
480
128
lt=<<<<- m1=0..origin m2=0..*
10.0;130.0;90.0;130.0;90.0;10.0;580.0;10.0
UMLClass
120
544
200
88
lt=. clserver -- sirinet_clserver_init(): int -- /responsible for client / /connections and requests/
UMLClass
120
416
200
88
lt=. bserver -- sirinet_bserver_init(): int -- /responsible for server / /connections and requests/
Relation
312
32
1296
456
lt=<<<<<- m1=1 m2=1..*
10.0;540.0;90.0;540.0;90.0;10.0;1570.0;10.0;1570.0;90.0
Relation
312
48
1232
568
lt=<<<<<- m1=1 m2=1..*
10.0;680.0;110.0;680.0;110.0;10.0;1490.0;10.0;1490.0;70.0
Relation
72
584
64
192
lt=<. config
60.0;10.0;10.0;10.0;10.0;220.0;60.0;220.0
Relation
32
448
104
368
lt=<. config
110.0;10.0;10.0;10.0;10.0;440.0;110.0;440.0
Relation
312
608
200
120
lt=<<<<<-
230.0;130.0;230.0;90.0;40.0;90.0;40.0;10.0;10.0;10.0
Relation
312
480
216
248
lt=<<<<<-
250.0;290.0;250.0;230.0;60.0;230.0;60.0;10.0;10.0;10.0