blob: eb8861729c3f91b85da261b7016ec8b6d9cb1792 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
defmodule ShardWeb.PageView do
use ShardWeb, :view
def conn_list do
SNet.Manager.list_connections
end
def peer_id_to_str(id) do
id
|> binary_part(0, 8)
|> Base.encode16
|> String.downcase
end
def shard_list do
Shard.Manager.list_shards
end
end
|