Module machi_dt

Data Types

chunk()

chunk() = chunk_bin() | {chunk_csum(), chunk_bin()}

chunk_bin()

chunk_bin() = binary() | iolist()

client can use either

chunk_csum()

chunk_csum() = binary()

1 byte tag, N-1 bytes checksum

chunk_pos()

chunk_pos() = {file_offset(), chunk_size(), file_name_s()}

chunk_s()

chunk_s() = binary()

server always uses binary()

chunk_size()

chunk_size() = non_neg_integer()

chunk_summary()

chunk_summary() = {file_offset(), chunk_size(), binary()}

epoch_csum()

epoch_csum() = binary()

epoch_id()

epoch_id() = {epoch_num(), epoch_csum()}

epoch_num()

epoch_num() = -1 | non_neg_integer()

error_general()

error_general() = bad_arg | wedged | bad_checksum

file_info()

file_info() = {file_size(), file_name_s()}

file_name()

file_name() = binary() | list()

file_name_s()

file_name_s() = binary()

server reply

file_offset()

file_offset() = non_neg_integer()

file_prefix()

file_prefix() = binary() | list()

file_size()

file_size() = non_neg_integer()

inet_host()

inet_host() = inet:ip_address() | inet:hostname()

inet_port()

inet_port() = inet:port_number()

projection()

projection() = #projection_v1{}

projection_type()

projection_type() = public | private


Generated by EDoc, Jun 25 2015, 16:39:10.