wkt

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2018 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package wkt contains the list of the Google Well-Known Types as well as the Golang package mappings for the generated code for github.com/golang/protobuf and github.com/gogo/protobuf.

https://developers.google.com/protocol-buffers/docs/reference/google.protobuf

Index

Constants

This section is empty.

Variables

View Source
var (
	// Filenames contains the Google Well-Known Types filenames.
	Filenames = map[string]struct{}{
		"google/protobuf/any.proto":             struct{}{},
		"google/protobuf/api.proto":             struct{}{},
		"google/protobuf/compiler/plugin.proto": struct{}{},
		"google/protobuf/descriptor.proto":      struct{}{},
		"google/protobuf/duration.proto":        struct{}{},
		"google/protobuf/empty.proto":           struct{}{},
		"google/protobuf/field_mask.proto":      struct{}{},
		"google/protobuf/source_context.proto":  struct{}{},
		"google/protobuf/struct.proto":          struct{}{},
		"google/protobuf/timestamp.proto":       struct{}{},
		"google/protobuf/type.proto":            struct{}{},
		"google/protobuf/wrappers.proto":        struct{}{},
	}

	// FilenameToGoModifierMap is a map from filename to package for github.com/golang/protobuf.
	FilenameToGoModifierMap = map[string]string{
		"google/protobuf/any.proto":             "github.com/golang/protobuf/ptypes/any",
		"google/protobuf/api.proto":             "google.golang.org/genproto/protobuf/api",
		"google/protobuf/compiler/plugin.proto": "github.com/golang/protobuf/protoc-gen-go/plugin",
		"google/protobuf/descriptor.proto":      "github.com/golang/protobuf/protoc-gen-go/descriptor",
		"google/protobuf/duration.proto":        "github.com/golang/protobuf/ptypes/duration",
		"google/protobuf/empty.proto":           "github.com/golang/protobuf/ptypes/empty",
		"google/protobuf/field_mask.proto":      "google.golang.org/genproto/protobuf/field_mask",
		"google/protobuf/source_context.proto":  "google.golang.org/genproto/protobuf/source_context",
		"google/protobuf/struct.proto":          "github.com/golang/protobuf/ptypes/struct",
		"google/protobuf/timestamp.proto":       "github.com/golang/protobuf/ptypes/timestamp",
		"google/protobuf/type.proto":            "google.golang.org/genproto/protobuf/ptype",
		"google/protobuf/wrappers.proto":        "github.com/golang/protobuf/ptypes/wrappers",
	}

	// FilenameToGogoModifierMap is a map from filename to package for github.com/gogo/protobuf.
	FilenameToGogoModifierMap = map[string]string{
		"google/protobuf/any.proto":             "github.com/gogo/protobuf/types",
		"google/protobuf/api.proto":             "google.golang.org/genproto/protobuf/api",
		"google/protobuf/compiler/plugin.proto": "github.com/gogo/protobuf/protoc-gen-gogo/plugin",
		"google/protobuf/descriptor.proto":      "github.com/gogo/protobuf/protoc-gen-gogo/descriptor",
		"google/protobuf/duration.proto":        "github.com/gogo/protobuf/types",
		"google/protobuf/empty.proto":           "github.com/gogo/protobuf/types",
		"google/protobuf/field_mask.proto":      "github.com/gogo/protobuf/types",
		"google/protobuf/source_context.proto":  "google.golang.org/genproto/protobuf/source_context",
		"google/protobuf/struct.proto":          "github.com/gogo/protobuf/types",
		"google/protobuf/timestamp.proto":       "github.com/gogo/protobuf/types",
		"google/protobuf/type.proto":            "google.golang.org/genproto/protobuf/ptype",
		"google/protobuf/wrappers.proto":        "github.com/gogo/protobuf/types",
	}
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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