x

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 1 more Imports: 1 Imported by: 0

Documentation

Overview

Package x provides common utilities for documentation operations.

Index

Constants

This section is empty.

Variables

FieldDescriptorProtoTypeFormats is used to convert field type definitions from the protobuf library to the openapi data format map.

FieldDescriptorProtoTypes is used to convert field types defined in protobuf library to openapi data type map table. Since trpc uses jsonpb as the default encoding and decoding method, according to the proto specification, int64, uint64, and fixed64 will be serialized as strings.

Functions

func GetFormatStr

GetFormatStr returns the specific format of a field based on its protobuf type.

func GetTypeStr

GetTypeStr returns the specific field type according to the protobuf type.

Types

This section is empty.

Jump to

Keyboard shortcuts

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