Modules

hex_api hex_api_key hex_api_package hex_api_package_owner hex_api_release hex_api_user hex_core hex_http hex_http_httpc hex_pb_names hex_pb_package hex_pb_signed hex_pb_versions hex_registry hex_repo hex_tarball safe_erl_term

Module hex_pb_package

Data Types

'Dependency'()


'Dependency'() = #{package => iodata(), requirement => iodata()}

'Package'()


'Package'() = #{releases => ['Release'()], name => iodata(), repository => iodata()}

'Release'()


'Release'() = #{version => iodata(), checksum => iodata(), dependencies => ['Dependency'()]}

'RetirementReason'()


'RetirementReason'() = RETIRED_OTHER | RETIRED_INVALID | RETIRED_SECURITY | RETIRED_DEPRECATED | RETIRED_RENAMED

'RetirementStatus'()


'RetirementStatus'() = #{reason => RETIRED_OTHER | RETIRED_INVALID | RETIRED_SECURITY | RETIRED_DEPRECATED | RETIRED_RENAMED | integer()}

Function Index

decode_msg/2
decode_msg/3
encode_msg/2
encode_msg/3
enum_symbol_by_value/2
enum_symbol_by_value_RetirementReason/1
enum_value_by_symbol/2
enum_value_by_symbol_RetirementReason/1
fetch_enum_def/1
fetch_msg_def/1
fetch_rpc_def/2
find_enum_def/1
find_msg_def/1
find_rpc_def/2
get_enum_names/0
get_group_names/0
get_msg_defs/0
get_msg_names/0
get_msg_or_group_names/0
get_package_name/0
get_rpc_names/1
get_service_def/1
get_service_names/0
gpb_version_as_list/0
gpb_version_as_string/0
merge_msgs/3
merge_msgs/4
verify_msg/2
verify_msg/3

Function Details

decode_msg/2

decode_msg(Bin, MsgName) -> any()

decode_msg/3

decode_msg(Bin, MsgName, Opts) -> any()

encode_msg/2


encode_msg(Msg::'Package'() | 'Release'() | 'RetirementStatus'() | 'Dependency'(), MsgName::atom()) -> binary()

encode_msg/3


encode_msg(Msg::'Package'() | 'Release'() | 'RetirementStatus'() | 'Dependency'(), MsgName::atom(), Opts::list()) -> binary()

enum_symbol_by_value/2

enum_symbol_by_value(X1, Value) -> any()

enum_symbol_by_value_RetirementReason/1

enum_symbol_by_value_RetirementReason(X1) -> any()

enum_value_by_symbol/2

enum_value_by_symbol(X1, Sym) -> any()

enum_value_by_symbol_RetirementReason/1

enum_value_by_symbol_RetirementReason(X1) -> any()

fetch_enum_def/1

fetch_enum_def(EnumName) -> any()

fetch_msg_def/1

fetch_msg_def(MsgName) -> any()

fetch_rpc_def/2


fetch_rpc_def(ServiceName::term(), RpcName::term()) -> no_return()

find_enum_def/1

find_enum_def(X1) -> any()

find_msg_def/1

find_msg_def(X1) -> any()

find_rpc_def/2

find_rpc_def(X1, X2) -> any()

get_enum_names/0

get_enum_names() -> any()

get_group_names/0

get_group_names() -> any()

get_msg_defs/0

get_msg_defs() -> any()

get_msg_names/0

get_msg_names() -> any()

get_msg_or_group_names/0

get_msg_or_group_names() -> any()

get_package_name/0

get_package_name() -> any()

get_rpc_names/1

get_rpc_names(X1) -> any()

get_service_def/1

get_service_def(X1) -> any()

get_service_names/0

get_service_names() -> any()

gpb_version_as_list/0

gpb_version_as_list() -> any()

gpb_version_as_string/0

gpb_version_as_string() -> any()

merge_msgs/3

merge_msgs(Prev, New, MsgName) -> any()

merge_msgs/4

merge_msgs(Prev, New, MsgName, Opts) -> any()

verify_msg/2

verify_msg(Msg, MsgName) -> any()

verify_msg/3

verify_msg(Msg, MsgName, Opts) -> any()