Documentation
¶
Index ¶
- Variables
- type DeveloperError
- func (*DeveloperError) Descriptor() ([]byte, []int)deprecated
- func (x *DeveloperError) GetColumn() uint32
- func (x *DeveloperError) GetContext() string
- func (x *DeveloperError) GetKind() DeveloperError_ErrorKind
- func (x *DeveloperError) GetLine() uint32
- func (x *DeveloperError) GetMessage() string
- func (x *DeveloperError) GetPath() []string
- func (x *DeveloperError) GetSource() DeveloperError_Source
- func (*DeveloperError) ProtoMessage()
- func (x *DeveloperError) ProtoReflect() protoreflect.Message
- func (x *DeveloperError) Reset()
- func (x *DeveloperError) String() string
- func (m *DeveloperError) Validate() error
- func (m *DeveloperError) ValidateAll() error
- type DeveloperErrorMultiError
- type DeveloperErrorValidationError
- func (e DeveloperErrorValidationError) Cause() error
- func (e DeveloperErrorValidationError) Error() string
- func (e DeveloperErrorValidationError) ErrorName() string
- func (e DeveloperErrorValidationError) Field() string
- func (e DeveloperErrorValidationError) Key() bool
- func (e DeveloperErrorValidationError) Reason() string
- type DeveloperError_ErrorKind
- func (DeveloperError_ErrorKind) Descriptor() protoreflect.EnumDescriptor
- func (x DeveloperError_ErrorKind) Enum() *DeveloperError_ErrorKind
- func (DeveloperError_ErrorKind) EnumDescriptor() ([]byte, []int)deprecated
- func (x DeveloperError_ErrorKind) Number() protoreflect.EnumNumber
- func (x DeveloperError_ErrorKind) String() string
- func (DeveloperError_ErrorKind) Type() protoreflect.EnumType
- type DeveloperError_Source
- func (DeveloperError_Source) Descriptor() protoreflect.EnumDescriptor
- func (x DeveloperError_Source) Enum() *DeveloperError_Source
- func (DeveloperError_Source) EnumDescriptor() ([]byte, []int)deprecated
- func (x DeveloperError_Source) Number() protoreflect.EnumNumber
- func (x DeveloperError_Source) String() string
- func (DeveloperError_Source) Type() protoreflect.EnumType
- type RequestContext
- func (*RequestContext) Descriptor() ([]byte, []int)deprecated
- func (x *RequestContext) GetRelationships() []*v1.RelationTuple
- func (x *RequestContext) GetSchema() string
- func (*RequestContext) ProtoMessage()
- func (x *RequestContext) ProtoReflect() protoreflect.Message
- func (x *RequestContext) Reset()
- func (x *RequestContext) String() string
- func (m *RequestContext) Validate() error
- func (m *RequestContext) ValidateAll() error
- type RequestContextMultiError
- type RequestContextValidationError
- func (e RequestContextValidationError) Cause() error
- func (e RequestContextValidationError) Error() string
- func (e RequestContextValidationError) ErrorName() string
- func (e RequestContextValidationError) Field() string
- func (e RequestContextValidationError) Key() bool
- func (e RequestContextValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
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.
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.
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 (x *DeveloperError) GetKind() DeveloperError_ErrorKind
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 ¶
func (e DeveloperErrorValidationError) Cause() error
Cause function returns cause value.
func (DeveloperErrorValidationError) Error ¶
func (e DeveloperErrorValidationError) Error() string
Error satisfies the builtin error interface
func (DeveloperErrorValidationError) ErrorName ¶
func (e DeveloperErrorValidationError) ErrorName() string
ErrorName returns error name.
func (DeveloperErrorValidationError) Field ¶
func (e DeveloperErrorValidationError) Field() string
Field function returns field value.
func (DeveloperErrorValidationError) Key ¶
func (e DeveloperErrorValidationError) Key() bool
Key function returns key value.
func (DeveloperErrorValidationError) Reason ¶
func (e DeveloperErrorValidationError) Reason() string
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) Descriptor() protoreflect.EnumDescriptor
func (DeveloperError_ErrorKind) Enum ¶
func (x DeveloperError_ErrorKind) Enum() *DeveloperError_ErrorKind
func (DeveloperError_ErrorKind) EnumDescriptor
deprecated
func (DeveloperError_ErrorKind) EnumDescriptor() ([]byte, []int)
Deprecated: Use DeveloperError_ErrorKind.Descriptor instead.
func (DeveloperError_ErrorKind) Number ¶
func (x DeveloperError_ErrorKind) Number() protoreflect.EnumNumber
func (DeveloperError_ErrorKind) String ¶
func (x DeveloperError_ErrorKind) String() string
func (DeveloperError_ErrorKind) Type ¶
func (DeveloperError_ErrorKind) Type() protoreflect.EnumType
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) Descriptor() protoreflect.EnumDescriptor
func (DeveloperError_Source) Enum ¶
func (x DeveloperError_Source) Enum() *DeveloperError_Source
func (DeveloperError_Source) EnumDescriptor
deprecated
func (DeveloperError_Source) EnumDescriptor() ([]byte, []int)
Deprecated: Use DeveloperError_Source.Descriptor instead.
func (DeveloperError_Source) Number ¶
func (x DeveloperError_Source) Number() protoreflect.EnumNumber
func (DeveloperError_Source) String ¶
func (x DeveloperError_Source) String() string
func (DeveloperError_Source) Type ¶
func (DeveloperError_Source) Type() protoreflect.EnumType
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 ¶
func (e RequestContextValidationError) Cause() error
Cause function returns cause value.
func (RequestContextValidationError) Error ¶
func (e RequestContextValidationError) Error() string
Error satisfies the builtin error interface
func (RequestContextValidationError) ErrorName ¶
func (e RequestContextValidationError) ErrorName() string
ErrorName returns error name.
func (RequestContextValidationError) Field ¶
func (e RequestContextValidationError) Field() string
Field function returns field value.
func (RequestContextValidationError) Key ¶
func (e RequestContextValidationError) Key() bool
Key function returns key value.
func (RequestContextValidationError) Reason ¶
func (e RequestContextValidationError) Reason() string
Reason function returns reason value.