Documentation
¶
Index ¶
- Variables
- type Key
- func (*Key) Argument() graphql.FieldConfigArgument
- func (*Key) Descriptor() ([]byte, []int)deprecated
- func (x *Key) GetKey() string
- func (*Key) Object() *graphql.Object
- func (*Key) Output() graphql.Output
- func (*Key) ProtoMessage()
- func (x *Key) ProtoReflect() protoreflect.Message
- func (x *Key) Reset()
- func (*Key) Schema() map[string]interface{}
- func (x *Key) String() string
- func (o *Key) UnmarshalJSON(b []byte) error
- func (o *Key) UnmarshalMap(values map[string]interface{})
- func (m *Key) Validate() error
- func (m *Key) ValidateAll() error
- type KeyMultiError
- type KeyValidationError
- type Keys
- func (*Keys) Argument() graphql.FieldConfigArgument
- func (*Keys) Descriptor() ([]byte, []int)deprecated
- func (x *Keys) GetKeys() []string
- func (*Keys) Object() *graphql.Object
- func (*Keys) Output() graphql.Output
- func (*Keys) ProtoMessage()
- func (x *Keys) ProtoReflect() protoreflect.Message
- func (x *Keys) Reset()
- func (*Keys) Schema() map[string]interface{}
- func (x *Keys) String() string
- func (o *Keys) UnmarshalJSON(b []byte) error
- func (o *Keys) UnmarshalMap(values map[string]interface{})
- func (m *Keys) Validate() error
- func (m *Keys) ValidateAll() error
- type KeysMultiError
- type KeysValidationError
- type Pagination
- func (*Pagination) Argument() graphql.FieldConfigArgument
- func (*Pagination) Descriptor() ([]byte, []int)deprecated
- func (x *Pagination) GetCount() int64
- func (x *Pagination) GetOffset() int64
- func (*Pagination) Object() *graphql.Object
- func (*Pagination) Output() graphql.Output
- func (*Pagination) ProtoMessage()
- func (x *Pagination) ProtoReflect() protoreflect.Message
- func (x *Pagination) Reset()
- func (*Pagination) Schema() map[string]interface{}
- func (x *Pagination) String() string
- func (o *Pagination) UnmarshalJSON(b []byte) error
- func (o *Pagination) UnmarshalMap(values map[string]interface{})
- func (m *Pagination) Validate() error
- func (m *Pagination) ValidateAll() error
- type PaginationMultiError
- type PaginationValidationError
Constants ¶
This section is empty.
Variables ¶
var File_graphify_argument_v1_argument_proto protoreflect.FileDescriptor
var Key_Input = graphql.NewInputObject(graphql.InputObjectConfig{ Name: "Key_Input", Fields: graphql.InputObjectConfigFieldMap{ "_key": &graphql.InputObjectFieldConfig{ Type: graphql.ID, }, }, })
var Key_Object = graphql.NewObject(graphql.ObjectConfig{ Name: "Key", Fields: graphql.Fields{ "_key": &graphql.Field{ Type: graphql.ID, }, }, Description: "", })
var Keys_Input = graphql.NewInputObject(graphql.InputObjectConfig{ Name: "Keys_Input", Fields: graphql.InputObjectConfigFieldMap{ "keys": &graphql.InputObjectFieldConfig{ Type: graphql.NewList(graphql.String), }, }, })
var Keys_Object = graphql.NewObject(graphql.ObjectConfig{ Name: "Keys", Fields: graphql.Fields{ "keys": &graphql.Field{ Type: graphql.NewList(graphql.String), }, }, Description: "", })
var Pagination_Input = graphql.NewInputObject(graphql.InputObjectConfig{ Name: "Pagination_Input", Fields: graphql.InputObjectConfigFieldMap{ "count": &graphql.InputObjectFieldConfig{ Type: graphql.Int, }, "offset": &graphql.InputObjectFieldConfig{ Type: graphql.Int, }, }, })
Functions ¶
This section is empty.
Types ¶
type Key ¶
type Key struct { Key string `protobuf:"bytes,1,opt,name=_key,proto3" json:"_key,omitempty"` // contains filtered or unexported fields }
func (*Key) Descriptor
deprecated
func (*Key) ProtoMessage ¶
func (*Key) ProtoMessage()
func (*Key) ProtoReflect ¶
func (x *Key) ProtoReflect() protoreflect.Message
func (*Key) UnmarshalMap ¶
UnmarshalMap populates struct fields from a map, handling decoding for special fields.
func (*Key) Validate ¶ added in v0.4.44
Validate checks the field values on Key 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 (*Key) ValidateAll ¶ added in v0.4.44
ValidateAll checks the field values on Key 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 KeyMultiError, or nil if none found.
type KeyMultiError ¶ added in v0.4.44
type KeyMultiError []error
KeyMultiError is an error wrapping multiple validation errors returned by Key.ValidateAll() if the designated constraints aren't met.
func (KeyMultiError) AllErrors ¶ added in v0.4.44
func (m KeyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (KeyMultiError) Error ¶ added in v0.4.44
func (m KeyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type KeyValidationError ¶ added in v0.4.44
type KeyValidationError struct {
// contains filtered or unexported fields
}
KeyValidationError is the validation error returned by Key.Validate if the designated constraints aren't met.
func (KeyValidationError) Cause ¶ added in v0.4.44
func (e KeyValidationError) Cause() error
Cause function returns cause value.
func (KeyValidationError) Error ¶ added in v0.4.44
func (e KeyValidationError) Error() string
Error satisfies the builtin error interface
func (KeyValidationError) ErrorName ¶ added in v0.4.44
func (e KeyValidationError) ErrorName() string
ErrorName returns error name.
func (KeyValidationError) Field ¶ added in v0.4.44
func (e KeyValidationError) Field() string
Field function returns field value.
func (KeyValidationError) Key ¶ added in v0.4.44
func (e KeyValidationError) Key() bool
Key function returns key value.
func (KeyValidationError) Reason ¶ added in v0.4.44
func (e KeyValidationError) Reason() string
Reason function returns reason value.
type Keys ¶
type Keys struct { Keys []string `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"` // contains filtered or unexported fields }
func (*Keys) Descriptor
deprecated
func (*Keys) ProtoMessage ¶
func (*Keys) ProtoMessage()
func (*Keys) ProtoReflect ¶
func (x *Keys) ProtoReflect() protoreflect.Message
func (*Keys) UnmarshalMap ¶
UnmarshalMap populates struct fields from a map, handling decoding for special fields.
func (*Keys) Validate ¶ added in v0.4.44
Validate checks the field values on Keys 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 (*Keys) ValidateAll ¶ added in v0.4.44
ValidateAll checks the field values on Keys 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 KeysMultiError, or nil if none found.
type KeysMultiError ¶ added in v0.4.44
type KeysMultiError []error
KeysMultiError is an error wrapping multiple validation errors returned by Keys.ValidateAll() if the designated constraints aren't met.
func (KeysMultiError) AllErrors ¶ added in v0.4.44
func (m KeysMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (KeysMultiError) Error ¶ added in v0.4.44
func (m KeysMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type KeysValidationError ¶ added in v0.4.44
type KeysValidationError struct {
// contains filtered or unexported fields
}
KeysValidationError is the validation error returned by Keys.Validate if the designated constraints aren't met.
func (KeysValidationError) Cause ¶ added in v0.4.44
func (e KeysValidationError) Cause() error
Cause function returns cause value.
func (KeysValidationError) Error ¶ added in v0.4.44
func (e KeysValidationError) Error() string
Error satisfies the builtin error interface
func (KeysValidationError) ErrorName ¶ added in v0.4.44
func (e KeysValidationError) ErrorName() string
ErrorName returns error name.
func (KeysValidationError) Field ¶ added in v0.4.44
func (e KeysValidationError) Field() string
Field function returns field value.
func (KeysValidationError) Key ¶ added in v0.4.44
func (e KeysValidationError) Key() bool
Key function returns key value.
func (KeysValidationError) Reason ¶ added in v0.4.44
func (e KeysValidationError) Reason() string
Reason function returns reason value.
type Pagination ¶
type Pagination struct { Count *int64 `protobuf:"varint,1,opt,name=count,proto3,oneof" json:"count,omitempty"` Offset *int64 `protobuf:"varint,2,opt,name=offset,proto3,oneof" json:"offset,omitempty"` // contains filtered or unexported fields }
func (*Pagination) Argument ¶
func (*Pagination) Argument() graphql.FieldConfigArgument
Argument ...
func (*Pagination) Descriptor
deprecated
func (*Pagination) Descriptor() ([]byte, []int)
Deprecated: Use Pagination.ProtoReflect.Descriptor instead.
func (*Pagination) GetCount ¶
func (x *Pagination) GetCount() int64
func (*Pagination) GetOffset ¶
func (x *Pagination) GetOffset() int64
func (*Pagination) ProtoMessage ¶
func (*Pagination) ProtoMessage()
func (*Pagination) ProtoReflect ¶
func (x *Pagination) ProtoReflect() protoreflect.Message
func (*Pagination) Reset ¶
func (x *Pagination) Reset()
func (*Pagination) String ¶
func (x *Pagination) String() string
func (*Pagination) UnmarshalJSON ¶
func (o *Pagination) UnmarshalJSON(b []byte) error
UnmarshalJSON ...
func (*Pagination) UnmarshalMap ¶
func (o *Pagination) UnmarshalMap(values map[string]interface{})
UnmarshalMap populates struct fields from a map, handling decoding for special fields.
func (*Pagination) Validate ¶ added in v0.4.44
func (m *Pagination) Validate() error
Validate checks the field values on Pagination 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 (*Pagination) ValidateAll ¶ added in v0.4.44
func (m *Pagination) ValidateAll() error
ValidateAll checks the field values on Pagination 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 PaginationMultiError, or nil if none found.
type PaginationMultiError ¶ added in v0.4.44
type PaginationMultiError []error
PaginationMultiError is an error wrapping multiple validation errors returned by Pagination.ValidateAll() if the designated constraints aren't met.
func (PaginationMultiError) AllErrors ¶ added in v0.4.44
func (m PaginationMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PaginationMultiError) Error ¶ added in v0.4.44
func (m PaginationMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PaginationValidationError ¶ added in v0.4.44
type PaginationValidationError struct {
// contains filtered or unexported fields
}
PaginationValidationError is the validation error returned by Pagination.Validate if the designated constraints aren't met.
func (PaginationValidationError) Cause ¶ added in v0.4.44
func (e PaginationValidationError) Cause() error
Cause function returns cause value.
func (PaginationValidationError) Error ¶ added in v0.4.44
func (e PaginationValidationError) Error() string
Error satisfies the builtin error interface
func (PaginationValidationError) ErrorName ¶ added in v0.4.44
func (e PaginationValidationError) ErrorName() string
ErrorName returns error name.
func (PaginationValidationError) Field ¶ added in v0.4.44
func (e PaginationValidationError) Field() string
Field function returns field value.
func (PaginationValidationError) Key ¶ added in v0.4.44
func (e PaginationValidationError) Key() bool
Key function returns key value.
func (PaginationValidationError) Reason ¶ added in v0.4.44
func (e PaginationValidationError) Reason() string
Reason function returns reason value.