datawkt

package
v1.32.1 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: Apache-2.0 Imports: 4 Imported by: 9

Documentation

Overview

Package datawkt stores the sources of the Well-Known Types, and provides helper functionality around them.

Index

Constants

View Source
const Version = "27.0-rc1"

Version is the version of github.com/protocolbuffers/protobuf used to extract the Well-Known Types.

Variables

View Source
var (
	// ReadBucket is the storage.ReadBucket with the static data generated for this package.
	ReadBucket storage.ReadBucket

	// AllFilePaths are all Well-Known Type file paths in sorted order.
	AllFilePaths = []string{
		"google/protobuf/any.proto",
		"google/protobuf/api.proto",
		"google/protobuf/compiler/plugin.proto",
		"google/protobuf/cpp_features.proto",
		"google/protobuf/descriptor.proto",
		"google/protobuf/duration.proto",
		"google/protobuf/empty.proto",
		"google/protobuf/field_mask.proto",
		"google/protobuf/java_features.proto",
		"google/protobuf/source_context.proto",
		"google/protobuf/struct.proto",
		"google/protobuf/timestamp.proto",
		"google/protobuf/type.proto",
		"google/protobuf/wrappers.proto",
	}
)

Functions

func EnumFilePath added in v1.10.0

func EnumFilePath(enumName string) (string, bool)

EnumFilePath gets the file path for the given enum, if the enum exists.

func Exists

func Exists(filePath string) bool

Exists returns true if the given path exists in the static data.

The path is normalized within this function.

func FileImports added in v1.32.0

func FileImports(filePath string) ([]string, bool)

FileImports gets the imports for the given file path, if the file path exists.

func MessageFilePath added in v1.10.0

func MessageFilePath(messageName string) (string, bool)

MessageFilePath gets the file path for the given message, if the message exists.

Types

This section is empty.

Jump to

Keyboard shortcuts

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