Back to godoc.org

Package internal

v0.20.5
Latest Go to latest

The latest major version is .

Published: Jul 24, 2020 | License: Apache-2.0 | Module: github.com/bufbuild/buf

Index

Variables

var (
	// CheckCommentEnum is a check function.
	CheckCommentEnum = newEnumCheckFunc(checkCommentEnum)
	// CheckCommentEnumValue is a check function.
	CheckCommentEnumValue = newEnumValueCheckFunc(checkCommentEnumValue)
	// CheckCommentField is a check function.
	CheckCommentField = newFieldCheckFunc(checkCommentField)
	// CheckCommentMessage is a check function.
	CheckCommentMessage = newMessageCheckFunc(checkCommentMessage)
	// CheckCommentOneof is a check function.
	CheckCommentOneof = newOneofCheckFunc(checkCommentOneof)
	// CheckCommentService is a check function.
	CheckCommentService = newServiceCheckFunc(checkCommentService)
	// CheckCommentRPC is a check function.
	CheckCommentRPC = newMethodCheckFunc(checkCommentRPC)
)
var (
	// CheckImportNoPublic is a check function.
	CheckImportNoPublic = newFileImportCheckFunc(checkImportNoPublic)
	// CheckImportNoWeak is a check function.
	CheckImportNoWeak = newFileImportCheckFunc(checkImportNoWeak)
)
var (
	// CheckPackageSameCsharpNamespace is a check function.
	CheckPackageSameCsharpNamespace = newPackageToFilesCheckFunc(checkPackageSameCsharpNamespace)
	// CheckPackageSameGoPackage is a check function.
	CheckPackageSameGoPackage = newPackageToFilesCheckFunc(checkPackageSameGoPackage)
	// CheckPackageSameJavaMultipleFiles is a check function.
	CheckPackageSameJavaMultipleFiles = newPackageToFilesCheckFunc(checkPackageSameJavaMultipleFiles)
	// CheckPackageSameJavaPackage is a check function.
	CheckPackageSameJavaPackage = newPackageToFilesCheckFunc(checkPackageSameJavaPackage)
	// CheckPackageSamePhpNamespace is a check function.
	CheckPackageSamePhpNamespace = newPackageToFilesCheckFunc(checkPackageSamePhpNamespace)
	// CheckPackageSameRubyPackage is a check function.
	CheckPackageSameRubyPackage = newPackageToFilesCheckFunc(checkPackageSameRubyPackage)
	// CheckPackageSameSwiftPrefix is a check function.
	CheckPackageSameSwiftPrefix = newPackageToFilesCheckFunc(checkPackageSameSwiftPrefix)
)
var CheckDirectorySamePackage = newDirToFilesCheckFunc(checkDirectorySamePackage)

CheckDirectorySamePackage is a check function.

var CheckEnumFirstValueZero = newEnumCheckFunc(checkEnumFirstValueZero)

CheckEnumFirstValueZero is a check function.

var CheckEnumNoAllowAlias = newEnumCheckFunc(checkEnumNoAllowAlias)

CheckEnumNoAllowAlias is a check function.

var CheckEnumPascalCase = newEnumCheckFunc(checkEnumPascalCase)

CheckEnumPascalCase is a check function.

var CheckEnumValuePrefix = newEnumValueCheckFunc(checkEnumValuePrefix)

CheckEnumValuePrefix is a check function.

var CheckEnumValueUpperSnakeCase = newEnumValueCheckFunc(checkEnumValueUpperSnakeCase)

CheckEnumValueUpperSnakeCase is a check function.

var CheckEnumZeroValueSuffix = func(
	id string,
	ignoreFunc internal.IgnoreFunc,
	files []protosource.File,
	suffix string,
) ([]bufanalysis.FileAnnotation, error) {
	return newEnumValueCheckFunc(
		func(add addFunc, enumValue protosource.EnumValue) error {
			return checkEnumZeroValueSuffix(add, enumValue, suffix)
		},
	)(id, ignoreFunc, files)
}

CheckEnumZeroValueSuffix is a check function.

var CheckFieldLowerSnakeCase = newFieldCheckFunc(checkFieldLowerSnakeCase)

CheckFieldLowerSnakeCase is a check function.

var CheckFieldNoDescriptor = newFieldCheckFunc(checkFieldNoDescriptor)

CheckFieldNoDescriptor is a check function.

var CheckFileLowerSnakeCase = newFileCheckFunc(checkFileLowerSnakeCase)

CheckFileLowerSnakeCase is a check function.

var CheckMessagePascalCase = newMessageCheckFunc(checkMessagePascalCase)

CheckMessagePascalCase is a check function.

var CheckOneofLowerSnakeCase = newOneofCheckFunc(checkOneofLowerSnakeCase)

CheckOneofLowerSnakeCase is a check function.

var CheckPackageDefined = newFileCheckFunc(checkPackageDefined)

CheckPackageDefined is a check function.

var CheckPackageDirectoryMatch = newFileCheckFunc(checkPackageDirectoryMatch)

CheckPackageDirectoryMatch is a check function.

var CheckPackageLowerSnakeCase = newFileCheckFunc(checkPackageLowerSnakeCase)

CheckPackageLowerSnakeCase is a check function.

var CheckPackageSameDirectory = newPackageToFilesCheckFunc(checkPackageSameDirectory)

CheckPackageSameDirectory is a check function.

var CheckPackageVersionSuffix = newFileCheckFunc(checkPackageVersionSuffix)

CheckPackageVersionSuffix is a check function.

var CheckRPCNoClientStreaming = newMethodCheckFunc(checkRPCNoClientStreaming)

CheckRPCNoClientStreaming is a check function.

var CheckRPCNoServerStreaming = newMethodCheckFunc(checkRPCNoServerStreaming)

CheckRPCNoServerStreaming is a check function.

var CheckRPCPascalCase = newMethodCheckFunc(checkRPCPascalCase)

CheckRPCPascalCase is a check function.

var CheckRPCRequestResponseUnique = func(
	id string,
	ignoreFunc internal.IgnoreFunc,
	files []protosource.File,
	allowSameRequestResponse bool,
	allowGoogleProtobufEmptyRequests bool,
	allowGoogleProtobufEmptyResponses bool,
) ([]bufanalysis.FileAnnotation, error) {
	return newFilesCheckFunc(
		func(add addFunc, files []protosource.File) error {
			return checkRPCRequestResponseUnique(
				add,
				files,
				allowSameRequestResponse,
				allowGoogleProtobufEmptyRequests,
				allowGoogleProtobufEmptyResponses,
			)
		},
	)(id, ignoreFunc, files)
}

CheckRPCRequestResponseUnique is a check function.

var CheckRPCRequestStandardName = func(
	id string,
	ignoreFunc internal.IgnoreFunc,
	files []protosource.File,
	allowGoogleProtobufEmptyRequests bool,
) ([]bufanalysis.FileAnnotation, error) {
	return newMethodCheckFunc(
		func(add addFunc, method protosource.Method) error {
			return checkRPCRequestStandardName(add, method, allowGoogleProtobufEmptyRequests)
		},
	)(id, ignoreFunc, files)
}

CheckRPCRequestStandardName is a check function.

var CheckRPCResponseStandardName = func(
	id string,
	ignoreFunc internal.IgnoreFunc,
	files []protosource.File,
	allowGoogleProtobufEmptyResponses bool,
) ([]bufanalysis.FileAnnotation, error) {
	return newMethodCheckFunc(
		func(add addFunc, method protosource.Method) error {
			return checkRPCResponseStandardName(add, method, allowGoogleProtobufEmptyResponses)
		},
	)(id, ignoreFunc, files)
}

CheckRPCResponseStandardName is a check function.

var CheckServicePascalCase = newServiceCheckFunc(checkServicePascalCase)

CheckServicePascalCase is a check function.

var CheckServiceSuffix = func(
	id string,
	ignoreFunc internal.IgnoreFunc,
	files []protosource.File,
	suffix string,
) ([]bufanalysis.FileAnnotation, error) {
	return newServiceCheckFunc(
		func(add addFunc, service protosource.Service) error {
			return checkServiceSuffix(add, service, suffix)
		},
	)(id, ignoreFunc, files)
}

CheckServiceSuffix is a check function.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier