extensions

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2023 License: BSD-2-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTextFromSpan

func GetTextFromSpan(file_name string,
	loc_span []int32,
	conf *docdata.Config,
) string

func ProcessExtensions

func ProcessExtensions(
	template_data *docdata.TemplateData,
	file_descriptors []*desc_pb.FileDescriptorProto,
	conf *docdata.Config,
)

Types

type CustomOptionProcessor

type CustomOptionProcessor struct {
	Extensions map[string]map[int32]*docdata.FileExtension
	File       *docdata.FileData
	Conf       *docdata.Config
}

func (*CustomOptionProcessor) BuildOptionVal

func (proc *CustomOptionProcessor) BuildOptionVal(
	ext_number int32,
	ext_type string,
	loc *desc_pb.SourceCodeInfo_Location,
) (string, any, error)

func (*CustomOptionProcessor) ExtractEnumOptions

func (proc *CustomOptionProcessor) ExtractEnumOptions(
	enum_data *docdata.EnumData,
	loc_path []int32,
	loc *desc_pb.SourceCodeInfo_Location,
)

func (*CustomOptionProcessor) ExtractFieldOptions

func (proc *CustomOptionProcessor) ExtractFieldOptions(
	field *docdata.FieldData,
	loc_path []int32,
	loc *desc_pb.SourceCodeInfo_Location,
)

func (*CustomOptionProcessor) ExtractFileOptions

func (proc *CustomOptionProcessor) ExtractFileOptions(
	this_file *docdata.FileData,
	loc_path []int32,
	loc *desc_pb.SourceCodeInfo_Location,
)

func (*CustomOptionProcessor) ExtractMessageOptions

func (proc *CustomOptionProcessor) ExtractMessageOptions(
	msg *docdata.MessageData,
	loc_path []int32,
	loc *desc_pb.SourceCodeInfo_Location,
)

func (*CustomOptionProcessor) ExtractMethodOptions

func (proc *CustomOptionProcessor) ExtractMethodOptions(
	method *docdata.MethodData,
	loc_path []int32,
	loc *desc_pb.SourceCodeInfo_Location,
)

func (*CustomOptionProcessor) ExtractServiceOptions

func (proc *CustomOptionProcessor) ExtractServiceOptions(
	svc *docdata.ServiceData,
	loc_path []int32,
	loc *desc_pb.SourceCodeInfo_Location,
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL