developerv1

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: Apache-2.0 Imports: 18 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DeveloperError_Source_name = map[int32]string{
		0: "UNKNOWN_SOURCE",
		1: "SCHEMA",
		2: "RELATIONSHIP",
		3: "VALIDATION_YAML",
		4: "CHECK_WATCH",
		5: "ASSERTION",
	}
	DeveloperError_Source_value = map[string]int32{
		"UNKNOWN_SOURCE":  0,
		"SCHEMA":          1,
		"RELATIONSHIP":    2,
		"VALIDATION_YAML": 3,
		"CHECK_WATCH":     4,
		"ASSERTION":       5,
	}
)

Enum value maps for DeveloperError_Source.

View Source
var (
	DeveloperError_ErrorKind_name = map[int32]string{
		0: "UNKNOWN_KIND",
		1: "PARSE_ERROR",
		2: "SCHEMA_ISSUE",
		3: "DUPLICATE_RELATIONSHIP",
		4: "MISSING_EXPECTED_RELATIONSHIP",
		5: "EXTRA_RELATIONSHIP_FOUND",
		6: "UNKNOWN_OBJECT_TYPE",
		7: "UNKNOWN_RELATION",
		8: "MAXIMUM_RECURSION",
		9: "ASSERTION_FAILED",
	}
	DeveloperError_ErrorKind_value = map[string]int32{
		"UNKNOWN_KIND":                  0,
		"PARSE_ERROR":                   1,
		"SCHEMA_ISSUE":                  2,
		"DUPLICATE_RELATIONSHIP":        3,
		"MISSING_EXPECTED_RELATIONSHIP": 4,
		"EXTRA_RELATIONSHIP_FOUND":      5,
		"UNKNOWN_OBJECT_TYPE":           6,
		"UNKNOWN_RELATION":              7,
		"MAXIMUM_RECURSION":             8,
		"ASSERTION_FAILED":              9,
	}
)

Enum value maps for DeveloperError_ErrorKind.

View Source
var File_developer_v1_developer_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type DeveloperError

type DeveloperError struct {
	Message string                   `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	Line    uint32                   `protobuf:"varint,2,opt,name=line,proto3" json:"line,omitempty"`
	Column  uint32                   `protobuf:"varint,3,opt,name=column,proto3" json:"column,omitempty"`
	Source  DeveloperError_Source    `protobuf:"varint,4,opt,name=source,proto3,enum=developer.v1.DeveloperError_Source" json:"source,omitempty"`
	Kind    DeveloperError_ErrorKind `protobuf:"varint,5,opt,name=kind,proto3,enum=developer.v1.DeveloperError_ErrorKind" json:"kind,omitempty"`
	Path    []string                 `protobuf:"bytes,6,rep,name=path,proto3" json:"path,omitempty"`
	// context holds the context for the error. For schema issues, this will be the
	// name of the object type. For relationship issues, the full relationship string.
	Context string `protobuf:"bytes,7,opt,name=context,proto3" json:"context,omitempty"`
	// contains filtered or unexported fields
}

func (*DeveloperError) Descriptor deprecated

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

Deprecated: Use DeveloperError.ProtoReflect.Descriptor instead.

func (*DeveloperError) GetColumn

func (x *DeveloperError) GetColumn() uint32

func (*DeveloperError) GetContext

func (x *DeveloperError) GetContext() string

func (*DeveloperError) GetKind

func (*DeveloperError) GetLine

func (x *DeveloperError) GetLine() uint32

func (*DeveloperError) GetMessage

func (x *DeveloperError) GetMessage() string

func (*DeveloperError) GetPath

func (x *DeveloperError) GetPath() []string

func (*DeveloperError) GetSource

func (x *DeveloperError) GetSource() DeveloperError_Source

func (*DeveloperError) ProtoMessage

func (*DeveloperError) ProtoMessage()

func (*DeveloperError) ProtoReflect

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

func (*DeveloperError) Reset

func (x *DeveloperError) Reset()

func (*DeveloperError) String

func (x *DeveloperError) String() string

func (*DeveloperError) Validate

func (m *DeveloperError) Validate() error

Validate checks the field values on DeveloperError with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DeveloperError) ValidateAll

func (m *DeveloperError) ValidateAll() error

ValidateAll checks the field values on DeveloperError with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeveloperErrorMultiError, or nil if none found.

type DeveloperErrorMultiError

type DeveloperErrorMultiError []error

DeveloperErrorMultiError is an error wrapping multiple validation errors returned by DeveloperError.ValidateAll() if the designated constraints aren't met.

func (DeveloperErrorMultiError) AllErrors

func (m DeveloperErrorMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeveloperErrorMultiError) Error

func (m DeveloperErrorMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type DeveloperErrorValidationError

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

DeveloperErrorValidationError is the validation error returned by DeveloperError.Validate if the designated constraints aren't met.

func (DeveloperErrorValidationError) Cause

Cause function returns cause value.

func (DeveloperErrorValidationError) Error

Error satisfies the builtin error interface

func (DeveloperErrorValidationError) ErrorName

func (e DeveloperErrorValidationError) ErrorName() string

ErrorName returns error name.

func (DeveloperErrorValidationError) Field

Field function returns field value.

func (DeveloperErrorValidationError) Key

Key function returns key value.

func (DeveloperErrorValidationError) Reason

Reason function returns reason value.

type DeveloperError_ErrorKind

type DeveloperError_ErrorKind int32
const (
	DeveloperError_UNKNOWN_KIND                  DeveloperError_ErrorKind = 0
	DeveloperError_PARSE_ERROR                   DeveloperError_ErrorKind = 1
	DeveloperError_SCHEMA_ISSUE                  DeveloperError_ErrorKind = 2
	DeveloperError_DUPLICATE_RELATIONSHIP        DeveloperError_ErrorKind = 3
	DeveloperError_MISSING_EXPECTED_RELATIONSHIP DeveloperError_ErrorKind = 4
	DeveloperError_EXTRA_RELATIONSHIP_FOUND      DeveloperError_ErrorKind = 5
	DeveloperError_UNKNOWN_OBJECT_TYPE           DeveloperError_ErrorKind = 6
	DeveloperError_UNKNOWN_RELATION              DeveloperError_ErrorKind = 7
	DeveloperError_MAXIMUM_RECURSION             DeveloperError_ErrorKind = 8
	DeveloperError_ASSERTION_FAILED              DeveloperError_ErrorKind = 9
)

func (DeveloperError_ErrorKind) Descriptor

func (DeveloperError_ErrorKind) Enum

func (DeveloperError_ErrorKind) EnumDescriptor deprecated

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

Deprecated: Use DeveloperError_ErrorKind.Descriptor instead.

func (DeveloperError_ErrorKind) Number

func (DeveloperError_ErrorKind) String

func (x DeveloperError_ErrorKind) String() string

func (DeveloperError_ErrorKind) Type

type DeveloperError_Source

type DeveloperError_Source int32
const (
	DeveloperError_UNKNOWN_SOURCE  DeveloperError_Source = 0
	DeveloperError_SCHEMA          DeveloperError_Source = 1
	DeveloperError_RELATIONSHIP    DeveloperError_Source = 2
	DeveloperError_VALIDATION_YAML DeveloperError_Source = 3
	DeveloperError_CHECK_WATCH     DeveloperError_Source = 4
	DeveloperError_ASSERTION       DeveloperError_Source = 5
)

func (DeveloperError_Source) Descriptor

func (DeveloperError_Source) Enum

func (DeveloperError_Source) EnumDescriptor deprecated

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

Deprecated: Use DeveloperError_Source.Descriptor instead.

func (DeveloperError_Source) Number

func (DeveloperError_Source) String

func (x DeveloperError_Source) String() string

func (DeveloperError_Source) Type

type RequestContext

type RequestContext struct {
	Schema        string              `protobuf:"bytes,1,opt,name=schema,proto3" json:"schema,omitempty"`
	Relationships []*v1.RelationTuple `protobuf:"bytes,2,rep,name=relationships,proto3" json:"relationships,omitempty"`
	// contains filtered or unexported fields
}

func (*RequestContext) Descriptor deprecated

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

Deprecated: Use RequestContext.ProtoReflect.Descriptor instead.

func (*RequestContext) GetRelationships

func (x *RequestContext) GetRelationships() []*v1.RelationTuple

func (*RequestContext) GetSchema

func (x *RequestContext) GetSchema() string

func (*RequestContext) ProtoMessage

func (*RequestContext) ProtoMessage()

func (*RequestContext) ProtoReflect

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

func (*RequestContext) Reset

func (x *RequestContext) Reset()

func (*RequestContext) String

func (x *RequestContext) String() string

func (*RequestContext) Validate

func (m *RequestContext) Validate() error

Validate checks the field values on RequestContext with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*RequestContext) ValidateAll

func (m *RequestContext) ValidateAll() error

ValidateAll checks the field values on RequestContext with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RequestContextMultiError, or nil if none found.

type RequestContextMultiError

type RequestContextMultiError []error

RequestContextMultiError is an error wrapping multiple validation errors returned by RequestContext.ValidateAll() if the designated constraints aren't met.

func (RequestContextMultiError) AllErrors

func (m RequestContextMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RequestContextMultiError) Error

func (m RequestContextMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type RequestContextValidationError

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

RequestContextValidationError is the validation error returned by RequestContext.Validate if the designated constraints aren't met.

func (RequestContextValidationError) Cause

Cause function returns cause value.

func (RequestContextValidationError) Error

Error satisfies the builtin error interface

func (RequestContextValidationError) ErrorName

func (e RequestContextValidationError) ErrorName() string

ErrorName returns error name.

func (RequestContextValidationError) Field

Field function returns field value.

func (RequestContextValidationError) Key

Key function returns key value.

func (RequestContextValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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