lint

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Protocol_name = map[int32]string{
		0: "PROTOCOL_INVALID",
		1: "PROTOCOL_IP",
		2: "PROTOCOL_UDP",
		3: "PROTOCOL_TCP",
	}
	Protocol_value = map[string]int32{
		"PROTOCOL_INVALID": 0,
		"PROTOCOL_IP":      1,
		"PROTOCOL_UDP":     2,
		"PROTOCOL_TCP":     3,
	}
)

Enum value maps for Protocol.

View Source
var (
	Basic_name = map[int32]string{
		0: "INVALID",
		1: "A",
		2: "B",
		3: "C",
	}
	Basic_value = map[string]int32{
		"INVALID": 0,
		"A":       1,
		"B":       2,
		"C":       3,
	}
)

Enum value maps for Basic.

View Source
var (
	OuterFlavor_name = map[int32]string{
		0: "FLAVOR_INVALID",
		1: "FLAVOR_A",
		2: "FLAVOR_B",
		3: "FLAVOR_C",
		4: "FLAVOR_ID",
		5: "FLAVOR_URL",
	}
	OuterFlavor_value = map[string]int32{
		"FLAVOR_INVALID": 0,
		"FLAVOR_A":       1,
		"FLAVOR_B":       2,
		"FLAVOR_C":       3,
		"FLAVOR_ID":      4,
		"FLAVOR_URL":     5,
	}
)

Enum value maps for OuterMessage_Flavor.

View Source
var (
	// optional string alpha = 101;
	ExtAlpha = &file_tests_lint_lint_extensions_proto_extTypes[0]
	// optional string beta = 102;
	ExtBeta = &file_tests_lint_lint_extensions_proto_extTypes[1]
	// optional string gamma = 103;
	ExtGamma = &file_tests_lint_lint_extensions_proto_extTypes[2]
	// optional string delta = 104;
	ExtDelta = &file_tests_lint_lint_extensions_proto_extTypes[3]
)

Extension fields to ExtendedMessage.

View Source
var File_tests_lint_lint_extensions_proto protoreflect.FileDescriptor
View Source
var File_tests_lint_lint_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AxisMessage added in v0.3.1

type AxisMessage struct {

	// Should use patched identifier AXIS_INVALID → AxisInvalid.
	Axis sub.Axis `protobuf:"varint,1,opt,name=axis,proto3,enum=tests.lint.sub.Axis" json:"axis,omitempty"`
	// contains filtered or unexported fields
}

func (*AxisMessage) Descriptor deprecated added in v0.3.1

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

Deprecated: Use AxisMessage.ProtoReflect.Descriptor instead.

func (*AxisMessage) GetAxis added in v0.3.1

func (x *AxisMessage) GetAxis() sub.Axis

func (*AxisMessage) ProtoMessage added in v0.3.1

func (*AxisMessage) ProtoMessage()

func (*AxisMessage) ProtoReflect added in v0.3.1

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

func (*AxisMessage) Reset added in v0.3.1

func (x *AxisMessage) Reset()

func (*AxisMessage) String added in v0.3.1

func (x *AxisMessage) String() string

type Basic

type Basic int32
const (
	// INVALID value should lint to BasicInvalid.
	BasicInvalid Basic = 0
	// A value should lint to BasicInvalid.
	BasicA Basic = 1
	// B value should lint to BasicInvalid.
	BasicB Basic = 2
	// C value should lint to BasicInvalid.
	BasicC Basic = 3
)

func (Basic) Descriptor

func (Basic) Descriptor() protoreflect.EnumDescriptor

func (Basic) Enum

func (x Basic) Enum() *Basic

func (Basic) EnumDescriptor deprecated

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

Deprecated: Use Basic.Descriptor instead.

func (Basic) Number

func (x Basic) Number() protoreflect.EnumNumber

func (Basic) String

func (x Basic) String() string

func (Basic) Type

func (Basic) Type() protoreflect.EnumType

type Color

type Color struct {

	// Types that are assignable to Value:
	//
	//	*Color_Rgb
	//	*Color_Rgba
	//	*Color_Hsv
	Value isColor_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

func (*Color) Descriptor deprecated

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

Deprecated: Use Color.ProtoReflect.Descriptor instead.

func (*Color) GetHSV

func (x *Color) GetHSV() string

func (*Color) GetRGB

func (x *Color) GetRGB() string

func (*Color) GetRGBA

func (x *Color) GetRGBA() string

func (*Color) GetValue

func (m *Color) GetValue() isColor_Value

func (*Color) ProtoMessage

func (*Color) ProtoMessage()

func (*Color) ProtoReflect

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

func (*Color) Reset

func (x *Color) Reset()

func (*Color) String

func (x *Color) String() string

type Color_HSV

type Color_HSV struct {
	// hsv should lint to HSV.
	HSV string `protobuf:"bytes,3,opt,name=hsv,proto3,oneof"`
}

type Color_RGB

type Color_RGB struct {
	// rgb should lint to RGB.
	RGB string `protobuf:"bytes,1,opt,name=rgb,proto3,oneof"`
}

type Color_RGBA

type Color_RGBA struct {
	// rgba should lint to RGBA.
	RGBA string `protobuf:"bytes,2,opt,name=rgba,proto3,oneof"`
}

type EmbedLintedField added in v0.4.0

type EmbedLintedField struct {
	*IDFields `protobuf:"bytes,1,opt,name=embedded_id_field,json=embeddedIdField,proto3" json:"embedded_id_field,omitempty"`
	// contains filtered or unexported fields
}

func (*EmbedLintedField) Descriptor deprecated added in v0.4.0

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

Deprecated: Use EmbedLintedField.ProtoReflect.Descriptor instead.

func (*EmbedLintedField) GetIDFields added in v0.4.0

func (x *EmbedLintedField) GetIDFields() *IDFields

func (*EmbedLintedField) ProtoMessage added in v0.4.0

func (*EmbedLintedField) ProtoMessage()

func (*EmbedLintedField) ProtoReflect added in v0.4.0

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

func (*EmbedLintedField) Reset added in v0.4.0

func (x *EmbedLintedField) Reset()

func (*EmbedLintedField) String added in v0.4.0

func (x *EmbedLintedField) String() string

type ExtendedMessage

type ExtendedMessage struct {
	// contains filtered or unexported fields
}

func (*ExtendedMessage) Descriptor deprecated

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

Deprecated: Use ExtendedMessage.ProtoReflect.Descriptor instead.

func (*ExtendedMessage) ProtoMessage

func (*ExtendedMessage) ProtoMessage()

func (*ExtendedMessage) ProtoReflect

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

func (*ExtendedMessage) Reset

func (x *ExtendedMessage) Reset()

func (*ExtendedMessage) String

func (x *ExtendedMessage) String() string

type ID

type ID struct {
	// contains filtered or unexported fields
}

ID message type should lint to ID.

func (*ID) Descriptor deprecated

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

Deprecated: Use Id.ProtoReflect.Descriptor instead.

func (*ID) ProtoMessage

func (*ID) ProtoMessage()

func (*ID) ProtoReflect

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

func (*ID) Reset

func (x *ID) Reset()

func (*ID) String

func (x *ID) String() string

type IDFields added in v0.4.0

type IDFields struct {

	// id field should lint to ID.
	ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// customer_id field should lint to CustomerID.
	CustomerID string `protobuf:"bytes,2,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"`
	// api_path field should lint to APIPath.
	APIPath string `protobuf:"bytes,3,opt,name=api_path,json=apiPath,proto3" json:"api_path,omitempty"`
	// contains filtered or unexported fields
}

IDFields message should lint to IDFields.

func (*IDFields) Descriptor deprecated added in v0.4.0

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

Deprecated: Use IdFields.ProtoReflect.Descriptor instead.

func (*IDFields) GetAPIPath added in v0.4.0

func (x *IDFields) GetAPIPath() string

func (*IDFields) GetCustomerID added in v0.4.0

func (x *IDFields) GetCustomerID() string

func (*IDFields) GetID added in v0.4.0

func (x *IDFields) GetID() string

func (*IDFields) ProtoMessage added in v0.4.0

func (*IDFields) ProtoMessage()

func (*IDFields) ProtoReflect added in v0.4.0

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

func (*IDFields) Reset added in v0.4.0

func (x *IDFields) Reset()

func (*IDFields) String added in v0.4.0

func (x *IDFields) String() string

type OneofMessage

type OneofMessage struct {

	// Types that are assignable to Contents:
	//
	//	*OneofMessage_Id
	//	*OneofMessage_Url
	Contents isOneofMessage_Contents `protobuf_oneof:"contents"`
	// contains filtered or unexported fields
}

func (*OneofMessage) Descriptor deprecated

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

Deprecated: Use OneofMessage.ProtoReflect.Descriptor instead.

func (*OneofMessage) GetContents

func (m *OneofMessage) GetContents() isOneofMessage_Contents

func (*OneofMessage) GetID

func (x *OneofMessage) GetID() *ID

func (*OneofMessage) GetURL

func (x *OneofMessage) GetURL() *URL

func (*OneofMessage) ProtoMessage

func (*OneofMessage) ProtoMessage()

func (*OneofMessage) ProtoReflect

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

func (*OneofMessage) Reset

func (x *OneofMessage) Reset()

func (*OneofMessage) String

func (x *OneofMessage) String() string

type OneofMessage_ID

type OneofMessage_ID struct {
	// ID oneof should lint to ID.
	ID *ID `protobuf:"bytes,1,opt,name=id,proto3,oneof"`
}

type OneofMessage_URL

type OneofMessage_URL struct {
	// URL oneof should lint to URL.
	URL *URL `protobuf:"bytes,2,opt,name=url,proto3,oneof"`
}

type Outer

type Outer struct {

	// id field should lint to ID.
	ID *OuterInnerID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// url field should lint to URL.
	URL *OuterInnerURL `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
	// contains filtered or unexported fields
}

func (*Outer) Descriptor deprecated

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

Deprecated: Use OuterMessage.ProtoReflect.Descriptor instead.

func (*Outer) GetID

func (x *Outer) GetID() *OuterInnerID

func (*Outer) GetURL

func (x *Outer) GetURL() *OuterInnerURL

func (*Outer) ProtoMessage

func (*Outer) ProtoMessage()

func (*Outer) ProtoReflect

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

func (*Outer) Reset

func (x *Outer) Reset()

func (*Outer) String

func (x *Outer) String() string

type OuterFlavor

type OuterFlavor int32

Flavor should lint to OuterFlavor.

const (
	// FLAVOR_INVALID should lint to OuterFlavorInvalid.
	OuterFlavorInvalid OuterFlavor = 0
	// FLAVOR_ID should lint to OuterFlavorA.
	OuterFlavorA OuterFlavor = 1
	// FLAVOR_B should lint to OuterFlavorB.
	OuterFlavorB OuterFlavor = 2
	// FLAVOR_C should lint to OuterFlavorC.
	OuterFlavorC OuterFlavor = 3
	// FLAVOR_ID should lint to OuterFlavorID.
	OuterFlavorID OuterFlavor = 4
	// FLAVOR_URL should lint to FlavorID, overriding the custom name.
	FlavorID OuterFlavor = 5
)

func (OuterFlavor) Descriptor

func (OuterFlavor) Enum

func (x OuterFlavor) Enum() *OuterFlavor

func (OuterFlavor) EnumDescriptor deprecated

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

Deprecated: Use OuterMessage_Flavor.Descriptor instead.

func (OuterFlavor) Number

func (x OuterFlavor) Number() protoreflect.EnumNumber

func (OuterFlavor) String

func (x OuterFlavor) String() string

func (OuterFlavor) Type

type OuterInnerID

type OuterInnerID struct {
	// contains filtered or unexported fields
}

InnerId message should lint to InnerID.

func (*OuterInnerID) Descriptor deprecated

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

Deprecated: Use OuterMessage_InnerId.ProtoReflect.Descriptor instead.

func (*OuterInnerID) ProtoMessage

func (*OuterInnerID) ProtoMessage()

func (*OuterInnerID) ProtoReflect

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

func (*OuterInnerID) Reset

func (x *OuterInnerID) Reset()

func (*OuterInnerID) String

func (x *OuterInnerID) String() string

type OuterInnerURL

type OuterInnerURL struct {
	// contains filtered or unexported fields
}

InnerId message should lint to InnerURL.

func (*OuterInnerURL) Descriptor deprecated

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

Deprecated: Use OuterMessage_InnerUrl.ProtoReflect.Descriptor instead.

func (*OuterInnerURL) ProtoMessage

func (*OuterInnerURL) ProtoMessage()

func (*OuterInnerURL) ProtoReflect

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

func (*OuterInnerURL) Reset

func (x *OuterInnerURL) Reset()

func (*OuterInnerURL) String

func (x *OuterInnerURL) String() string

type Protocol

type Protocol int32
const (
	// PROTOCOL_INVALID value should lint to ProtocolInvalid.
	ProtocolInvalid Protocol = 0
	// PROTOCOL_IP value should lint to ProtocolIP.
	ProtocolIP Protocol = 1
	// PROTOCOL_UDP value should lint to ProtocolUDP.
	ProtocolUDP Protocol = 2
	// PROTOCOL_TCP value should lint to ProtocolTCP.
	ProtocolTCP Protocol = 3
)

func (Protocol) Descriptor

func (Protocol) Descriptor() protoreflect.EnumDescriptor

func (Protocol) Enum

func (x Protocol) Enum() *Protocol

func (Protocol) EnumDescriptor deprecated

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

Deprecated: Use Protocol.Descriptor instead.

func (Protocol) Number

func (x Protocol) Number() protoreflect.EnumNumber

func (Protocol) String

func (x Protocol) String() string

func (Protocol) Type

type RGBColor

type RGBColor struct {
	// contains filtered or unexported fields
}

RgbColor should lint to RGBColor.

func (*RGBColor) Descriptor deprecated

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

Deprecated: Use RGBColor.ProtoReflect.Descriptor instead.

func (*RGBColor) ProtoMessage

func (*RGBColor) ProtoMessage()

func (*RGBColor) ProtoReflect

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

func (*RGBColor) Reset

func (x *RGBColor) Reset()

func (*RGBColor) String

func (x *RGBColor) String() string

type URL

type URL struct {
	// contains filtered or unexported fields
}

URL message type should lint to URL.

func (*URL) Descriptor deprecated

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

Deprecated: Use Url.ProtoReflect.Descriptor instead.

func (*URL) ProtoMessage

func (*URL) ProtoMessage()

func (*URL) ProtoReflect

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

func (*URL) Reset

func (x *URL) Reset()

func (*URL) String

func (x *URL) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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