tag

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2021 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FieldTag_UpdateStrategy_name = map[int32]string{
		0: "update",
		1: "replace",
	}
	FieldTag_UpdateStrategy_value = map[string]int32{
		"update":  0,
		"replace": 1,
	}
)

Enum value maps for FieldTag_UpdateStrategy.

View Source
var (
	// optional google.protobuf.FieldTag field_tag = 65000;
	E_FieldTag = &file_extension_tag_tag_proto_extTypes[0]
)

Extension fields to descriptorpb.FieldOptions.

View Source
var File_extension_tag_tag_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type FieldTag

type FieldTag struct {

	// struct tag.
	StructTag      string                  `protobuf:"bytes,1,opt,name=struct_tag,json=structTag,proto3" json:"struct_tag,omitempty"` // custom struct tag
	UpdateStrategy FieldTag_UpdateStrategy ``                                                                                         // update strategy
	/* 149-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*FieldTag) Descriptor deprecated

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

Deprecated: Use FieldTag.ProtoReflect.Descriptor instead.

func (*FieldTag) GetStructTag

func (x *FieldTag) GetStructTag() string

func (*FieldTag) GetUpdateStrategy

func (x *FieldTag) GetUpdateStrategy() FieldTag_UpdateStrategy

func (*FieldTag) ProtoMessage

func (*FieldTag) ProtoMessage()

func (*FieldTag) ProtoReflect

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

func (*FieldTag) Reset

func (x *FieldTag) Reset()

func (*FieldTag) String

func (x *FieldTag) String() string

type FieldTag_UpdateStrategy

type FieldTag_UpdateStrategy int32

日志格式

const (
	FieldTag_update  FieldTag_UpdateStrategy = 0 // use custom struct tag to update struct tag generated by proto
	FieldTag_replace FieldTag_UpdateStrategy = 1 // use custom struct tag to replace struct tag generated by proto
)

func (FieldTag_UpdateStrategy) Descriptor

func (FieldTag_UpdateStrategy) Enum

func (FieldTag_UpdateStrategy) EnumDescriptor deprecated

func (FieldTag_UpdateStrategy) EnumDescriptor() ([]byte, []int)

Deprecated: Use FieldTag_UpdateStrategy.Descriptor instead.

func (FieldTag_UpdateStrategy) Number

func (FieldTag_UpdateStrategy) String

func (x FieldTag_UpdateStrategy) String() string

func (FieldTag_UpdateStrategy) Type

Jump to

Keyboard shortcuts

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