argumentv1

package
v0.4.45 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: Unlicense Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_graphify_argument_v1_argument_proto protoreflect.FileDescriptor
View Source
var Key_Object = graphql.NewObject(graphql.ObjectConfig{
	Name: "Key",
	Fields: graphql.Fields{
		"_key": &graphql.Field{
			Type: graphql.ID,
		},
	},
	Description: "",
})
View Source
var Keys_Object = graphql.NewObject(graphql.ObjectConfig{
	Name: "Keys",
	Fields: graphql.Fields{
		"keys": &graphql.Field{
			Type: graphql.NewList(graphql.String),
		},
	},
	Description: "",
})
View Source
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,
		},
	},
})
View Source
var Pagination_Object = graphql.NewObject(graphql.ObjectConfig{
	Name: "Pagination",
	Fields: graphql.Fields{
		"count": &graphql.Field{
			Type: graphql.Int,
		},
		"offset": &graphql.Field{
			Type: graphql.Int,
		},
	},
	Description: "",
})

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) Argument

func (*Key) Argument() graphql.FieldConfigArgument

Argument ...

func (*Key) Descriptor deprecated

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

Deprecated: Use Key.ProtoReflect.Descriptor instead.

func (*Key) GetKey

func (x *Key) GetKey() string

func (*Key) Object

func (*Key) Object() *graphql.Object

Object ...

func (*Key) Output

func (*Key) Output() graphql.Output

Output ...

func (*Key) ProtoMessage

func (*Key) ProtoMessage()

func (*Key) ProtoReflect

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

func (*Key) Reset

func (x *Key) Reset()

func (*Key) Schema

func (*Key) Schema() map[string]interface{}

Schema ...

func (*Key) String

func (x *Key) String() string

func (*Key) UnmarshalJSON

func (o *Key) UnmarshalJSON(b []byte) error

UnmarshalJSON ...

func (*Key) UnmarshalMap

func (o *Key) UnmarshalMap(values map[string]interface{})

UnmarshalMap populates struct fields from a map, handling decoding for special fields.

func (*Key) Validate added in v0.4.44

func (m *Key) Validate() error

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

func (m *Key) ValidateAll() error

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) Argument

func (*Keys) Argument() graphql.FieldConfigArgument

Argument ...

func (*Keys) Descriptor deprecated

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

Deprecated: Use Keys.ProtoReflect.Descriptor instead.

func (*Keys) GetKeys

func (x *Keys) GetKeys() []string

func (*Keys) Object

func (*Keys) Object() *graphql.Object

Object ...

func (*Keys) Output

func (*Keys) Output() graphql.Output

Output ...

func (*Keys) ProtoMessage

func (*Keys) ProtoMessage()

func (*Keys) ProtoReflect

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

func (*Keys) Reset

func (x *Keys) Reset()

func (*Keys) Schema

func (*Keys) Schema() map[string]interface{}

Schema ...

func (*Keys) String

func (x *Keys) String() string

func (*Keys) UnmarshalJSON

func (o *Keys) UnmarshalJSON(b []byte) error

UnmarshalJSON ...

func (*Keys) UnmarshalMap

func (o *Keys) UnmarshalMap(values map[string]interface{})

UnmarshalMap populates struct fields from a map, handling decoding for special fields.

func (*Keys) Validate added in v0.4.44

func (m *Keys) Validate() error

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

func (m *Keys) ValidateAll() error

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

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) Object

func (*Pagination) Object() *graphql.Object

Object ...

func (*Pagination) Output

func (*Pagination) Output() graphql.Output

Output ...

func (*Pagination) ProtoMessage

func (*Pagination) ProtoMessage()

func (*Pagination) ProtoReflect

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

func (*Pagination) Reset

func (x *Pagination) Reset()

func (*Pagination) Schema

func (*Pagination) Schema() map[string]interface{}

Schema ...

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

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

Field function returns field value.

func (PaginationValidationError) Key added in v0.4.44

Key function returns key value.

func (PaginationValidationError) Reason added in v0.4.44

func (e PaginationValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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