Skip to content
This repository was archived by the owner on Dec 16, 2020. It is now read-only.
This repository was archived by the owner on Dec 16, 2020. It is now read-only.

ABI extension: declare_property #479

@kyessenov

Description

@kyessenov

We need a way to modify how properties are stored in the host. The proposal is to add the following new function:
declare_property(property_name, const_type, scope_type, schema_type, schema)
where:

  • property_name is the name of the property used in set_property and get_property, encoded the same way;
  • const_type is one of readonly, mutable
  • scope_type is one of filter_chain, downstream_request, and downstream_connection, controls the visibility of the property across modules
  • schema_type is one of bytes, flatbuffers, allows computation on the property and traversing nested structures
  • schema is an optional encoded schema (e.g. reflection flatbuffer)

First declaration wins. Declarations are optional, and default to some sane options.

cc @mandarjog @jplevyak

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions