_map

package
v0.0.0-...-0901214 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func FooToBSON

func FooToBSON(msg *Foo) bson.M

func MapMessageToBSON

func MapMessageToBSON(msg *MapMessage) bson.M

func MapMessage_Strings2_MapToBSON

func MapMessage_Strings2_MapToBSON(values map[string]int32) bson.M

func MapMessage_Strings_MapToBSON

func MapMessage_Strings_MapToBSON(values map[string]string) bson.M

Types

type Foo

type Foo struct {
	Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
	// contains filtered or unexported fields
}

func (*Foo) Descriptor deprecated

func (*Foo) Descriptor() ([]byte, []int)

Deprecated: Use Foo.ProtoReflect.Descriptor instead.

func (*Foo) GetText

func (x *Foo) GetText() string

func (*Foo) ProtoMessage

func (*Foo) ProtoMessage()

func (*Foo) ProtoReflect

func (x *Foo) ProtoReflect() protoreflect.Message

func (*Foo) Reset

func (x *Foo) Reset()

func (*Foo) String

func (x *Foo) String() string

type MapMessage

type MapMessage struct {
	Strings  map[string]string `` /* 155-byte string literal not displayed */
	Strings2 map[string]int32  `` /* 158-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*MapMessage) Descriptor deprecated

func (*MapMessage) Descriptor() ([]byte, []int)

Deprecated: Use MapMessage.ProtoReflect.Descriptor instead.

func (*MapMessage) GetStrings

func (x *MapMessage) GetStrings() map[string]string

func (*MapMessage) GetStrings2

func (x *MapMessage) GetStrings2() map[string]int32

func (*MapMessage) ProtoMessage

func (*MapMessage) ProtoMessage()

func (*MapMessage) ProtoReflect

func (x *MapMessage) ProtoReflect() protoreflect.Message

func (*MapMessage) Reset

func (x *MapMessage) Reset()

func (*MapMessage) String

func (x *MapMessage) String() string

Jump to

Keyboard shortcuts

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