wellknown

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewApplicationJsonMediaType

func NewApplicationJsonMediaType(schema *v3.SchemaOrReference) *v3.MediaTypes

func NewBooleanSchema

func NewBooleanSchema() *v3.SchemaOrReference

func NewBytesSchema

func NewBytesSchema() *v3.SchemaOrReference

func NewEnumSchema

func NewEnumSchema(enum_type *string, field protoreflect.FieldDescriptor) *v3.SchemaOrReference

func NewGoogleApiHttpBodyMediaType

func NewGoogleApiHttpBodyMediaType() *v3.MediaTypes

func NewGoogleApiHttpBodySchema

func NewGoogleApiHttpBodySchema() *v3.SchemaOrReference

google.api.HttpBody will contain POST body data This is based on how Envoy handles google.api.HttpBody

func NewGoogleProtobufAnySchema

func NewGoogleProtobufAnySchema(name string) *v3.NamedSchemaOrReference

google.protobuf.Any is handled specially See here for the details on the JSON mapping:

https://developers.google.com/protocol-buffers/docs/proto3#json

func NewGoogleProtobufDurationSchema

func NewGoogleProtobufDurationSchema() *v3.SchemaOrReference

google.protobuf.Duration is serialized as a string

func NewGoogleProtobufFieldMaskSchema

func NewGoogleProtobufFieldMaskSchema() *v3.SchemaOrReference

google.protobuf.FieldMask masks is serialized as a string

func NewGoogleProtobufMapFieldEntrySchema

func NewGoogleProtobufMapFieldEntrySchema(value_field_schema *v3.SchemaOrReference) *v3.SchemaOrReference

func NewGoogleProtobufStructSchema

func NewGoogleProtobufStructSchema() *v3.SchemaOrReference

google.protobuf.Struct is equivalent to a JSON object

func NewGoogleProtobufTimestampSchema

func NewGoogleProtobufTimestampSchema() *v3.SchemaOrReference

google.protobuf.Timestamp is serialized as a string

func NewGoogleProtobufValueSchema

func NewGoogleProtobufValueSchema(name string) *v3.NamedSchemaOrReference

google.protobuf.Value is handled specially See here for the details on the JSON mapping:

https://developers.google.com/protocol-buffers/docs/proto3#json

and here:

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

func NewGoogleRpcStatusSchema

func NewGoogleRpcStatusSchema(name string, any_name string) *v3.NamedSchemaOrReference

google.rpc.Status is handled specially

func NewGoogleTypeDateSchema

func NewGoogleTypeDateSchema() *v3.SchemaOrReference

google.type.Date is serialized as a string

func NewGoogleTypeDateTimeSchema

func NewGoogleTypeDateTimeSchema() *v3.SchemaOrReference

google.type.DateTime is serialized as a string

func NewIntegerSchema

func NewIntegerSchema(format string) *v3.SchemaOrReference

func NewListSchema

func NewListSchema(item_schema *v3.SchemaOrReference) *v3.SchemaOrReference

func NewNumberSchema

func NewNumberSchema(format string) *v3.SchemaOrReference

func NewStringSchema

func NewStringSchema() *v3.SchemaOrReference

Types

This section is empty.

Jump to

Keyboard shortcuts

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