Documentation ¶
Index ¶
- func GetBooleanCustomFieldOption(optionName string, options *descriptorpb.FieldOptions, ...) (bool, bool)
- func GetBooleanCustomFileOption(optionName string, options *descriptorpb.FileOptions, ...) (bool, bool)
- func GetBooleanCustomMessageOption(optionName string, options *descriptorpb.MessageOptions, ...) (bool, bool)
- func GetStringCustomFieldOption(optionName string, options *descriptorpb.FieldOptions, ...) (string, bool)
- func RegisterAllExtensions(extTypes *protoregistry.Types, descs interface{ ... }) error
- type IOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBooleanCustomFieldOption ¶
func GetBooleanCustomFieldOption(optionName string, options *descriptorpb.FieldOptions, extensionTypes *protoregistry.Types) (bool, bool)
Returns: (result, foundOption)
func GetBooleanCustomFileOption ¶
func GetBooleanCustomFileOption(optionName string, options *descriptorpb.FileOptions, extensionTypes *protoregistry.Types) (bool, bool)
Returns: (result, foundOption)
func GetBooleanCustomMessageOption ¶
func GetBooleanCustomMessageOption(optionName string, options *descriptorpb.MessageOptions, extensionTypes *protoregistry.Types) (bool, bool)
Returns: (result, foundOption)
func GetStringCustomFieldOption ¶
func GetStringCustomFieldOption(optionName string, options *descriptorpb.FieldOptions, extensionTypes *protoregistry.Types) (string, bool)
Returns: (result, foundOption)
func RegisterAllExtensions ¶
func RegisterAllExtensions(extTypes *protoregistry.Types, descs interface { Messages() protoreflect.MessageDescriptors Extensions() protoreflect.ExtensionDescriptors }) error
Types ¶
type IOptions ¶
type IOptions interface { ProtoReflect() protoreflect.Message Reset() }
Click to show internal directories.
Click to hide internal directories.