Documentation ¶
Overview ¶
Package protobuf defines functionality for parsing protocol buffer definitions and instances.
TODO: this package can become public once we have found a good nest for it.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Parse ¶
Parse parses a single proto file and returns its contents translated to a CUE file. Imports are resolved using the path define in Config. If body is not nil, it will use this as the contents of the file. Otherwise Parse will open the given file name at the fully qualified path.
The following field options are supported:
(cue.val) string CUE constraint for this field. The string may refer to other fields in a message definition. (cue.opt) FieldOptions required bool Defines the field is required. Use with caution.
Types ¶
Click to show internal directories.
Click to hide internal directories.