libraryv1

package
v0.4.44 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Book_Academic_Input = graphql.NewInputObject(graphql.InputObjectConfig{
	Name: "Book_Academic_Input",
	Fields: graphql.InputObjectConfigFieldMap{
		"subject": &graphql.InputObjectFieldConfig{
			Type: graphql.String,
		},
		"edition": &graphql.InputObjectFieldConfig{
			Type: graphql.Int,
		},
	},
})
View Source
var Book_Academic_Object = graphql.NewObject(graphql.ObjectConfig{
	Name: "Book_Academic",
	Fields: graphql.Fields{
		"subject": &graphql.Field{
			Type: graphql.String,
		},
		"edition": &graphql.Field{
			Type: graphql.Int,
		},
	},
	Description: "",
})
View Source
var Book_Biography_Input = graphql.NewInputObject(graphql.InputObjectConfig{
	Name: "Book_Biography_Input",
	Fields: graphql.InputObjectConfigFieldMap{
		"subjectPerson": &graphql.InputObjectFieldConfig{
			Type: graphql.String,
		},
		"notableAchievements": &graphql.InputObjectFieldConfig{
			Type: graphql.String,
		},
	},
})
View Source
var Book_Biography_Object = graphql.NewObject(graphql.ObjectConfig{
	Name: "Book_Biography",
	Fields: graphql.Fields{
		"subjectPerson": &graphql.Field{
			Type: graphql.String,
		},
		"notableAchievements": &graphql.Field{
			Type: graphql.String,
		},
	},
	Description: "",
})
View Source
var Book_Novel_Input = graphql.NewInputObject(graphql.InputObjectConfig{
	Name: "Book_Novel_Input",
	Fields: graphql.InputObjectConfigFieldMap{
		"genre": &graphql.InputObjectFieldConfig{
			Type: graphql.String,
		},
		"publicationYear": &graphql.InputObjectFieldConfig{
			Type: graphql.Int,
		},
	},
})
View Source
var Book_Novel_Object = graphql.NewObject(graphql.ObjectConfig{
	Name: "Book_Novel",
	Fields: graphql.Fields{
		"genre": &graphql.Field{
			Type: graphql.String,
		},
		"publicationYear": &graphql.Field{
			Type: graphql.Int,
		},
	},
	Description: "",
})
View Source
var Book_Object = graphql.NewObject(graphql.ObjectConfig{
	Name: "Book",
	Fields: graphql.Fields{
		"_key": &graphql.Field{
			Type: graphql.ID,
		},
		"title": &graphql.Field{
			Type: graphql.String,
		},
		"author": &graphql.Field{
			Type: graphql.String,
		},
		"mainReview": &graphql.Field{
			Type: Book_Review_Object,
		},
		"reviews": &graphql.Field{
			Type: graphql.NewList(Book_Review_Object),
		},
		"tags": &graphql.Field{
			Type: graphql.NewList(graphql.String),
		},
		"bookPrice": &graphql.Field{
			Type: utils.JSON,
		},
		"chapters": &graphql.Field{
			Type: utils.JSON,
		},
		"characters": &graphql.Field{
			Type: utils.JSON,
		},
		"portrait": &graphql.Field{
			Type: utils.Bytes,
		},
		"gallery": &graphql.Field{
			Type: graphql.NewList(utils.Bytes),
		},
		"category": &graphql.Field{
			Type: v1.Category_Enum,
		},
		"Type": &graphql.Field{
			Type: graphql.NewUnion(graphql.UnionConfig{
				Name: "Book_Type",
				Types: []*graphql.Object{
					option_Book_Novel_,
					option_Book_ShortStory_,
					option_Book_Academic_,
					option_Book_Poetry_,
					option_Book_Biography_,
				},
				ResolveType: func(p graphql.ResolveTypeParams) *graphql.Object {
					switch p.Value.(type) {
					case *Book_Novel_:
						return option_Book_Novel_
					case *Book_ShortStory_:
						return option_Book_ShortStory_
					case *Book_Academic_:
						return option_Book_Academic_
					case *Book_Poetry_:
						return option_Book_Poetry_
					case *Book_Biography_:
						return option_Book_Biography_
					default:
						return nil
					}
				},
			}),
		},
		"Role": &graphql.Field{
			Type: graphql.NewUnion(graphql.UnionConfig{
				Name: "Book_Role",
				Types: []*graphql.Object{
					option_Book_Admin,
					option_Book_Manager,
					option_Book_Client,
					option_Book_Other,
				},
				ResolveType: func(p graphql.ResolveTypeParams) *graphql.Object {
					switch p.Value.(type) {
					case *Book_Admin:
						return option_Book_Admin
					case *Book_Manager:
						return option_Book_Manager
					case *Book_Client:
						return option_Book_Client
					case *Book_Other:
						return option_Book_Other
					default:
						return nil
					}
				},
			}),
		},
	},
	Description: "",
})
View Source
var Book_Poetry_Input = graphql.NewInputObject(graphql.InputObjectConfig{
	Name: "Book_Poetry_Input",
	Fields: graphql.InputObjectConfigFieldMap{
		"style": &graphql.InputObjectFieldConfig{
			Type: graphql.String,
		},
		"isAnthology": &graphql.InputObjectFieldConfig{
			Type: graphql.Boolean,
		},
	},
})
View Source
var Book_Poetry_Object = graphql.NewObject(graphql.ObjectConfig{
	Name: "Book_Poetry",
	Fields: graphql.Fields{
		"style": &graphql.Field{
			Type: graphql.String,
		},
		"isAnthology": &graphql.Field{
			Type: graphql.Boolean,
		},
	},
	Description: "",
})
View Source
var Book_Review_Input = graphql.NewInputObject(graphql.InputObjectConfig{
	Name: "Book_Review_Input",
	Fields: graphql.InputObjectConfigFieldMap{
		"message": &graphql.InputObjectFieldConfig{
			Type: graphql.String,
		},
		"name": &graphql.InputObjectFieldConfig{
			Type: graphql.String,
		},
	},
})
View Source
var Book_Review_Object = graphql.NewObject(graphql.ObjectConfig{
	Name: "Book_Review",
	Fields: graphql.Fields{
		"message": &graphql.Field{
			Type: graphql.String,
		},
		"name": &graphql.Field{
			Type: graphql.String,
		},
	},
	Description: "",
})
View Source
var Book_ShortStory_Input = graphql.NewInputObject(graphql.InputObjectConfig{
	Name: "Book_ShortStory_Input",
	Fields: graphql.InputObjectConfigFieldMap{
		"lengthPages": &graphql.InputObjectFieldConfig{
			Type: graphql.Int,
		},
		"isCollection": &graphql.InputObjectFieldConfig{
			Type: graphql.Boolean,
		},
	},
})
View Source
var Book_ShortStory_Object = graphql.NewObject(graphql.ObjectConfig{
	Name: "Book_ShortStory",
	Fields: graphql.Fields{
		"lengthPages": &graphql.Field{
			Type: graphql.Int,
		},
		"isCollection": &graphql.Field{
			Type: graphql.Boolean,
		},
	},
	Description: "",
})
View Source
var Client_Object = graphql.NewObject(graphql.ObjectConfig{
	Name: "Client",
	Fields: graphql.Fields{
		"_key": &graphql.Field{
			Type: graphql.ID,
		},
		"name": &graphql.Field{
			Type: graphql.String,
		},
		"email": &graphql.Field{
			Type: graphql.String,
		},
		"member": &graphql.Field{
			Type: graphql.Boolean,
		},
	},
	Description: "",
})
View Source
var DeleteBookRequest_Input = graphql.NewInputObject(graphql.InputObjectConfig{
	Name: "DeleteBookRequest_Input",
	Fields: graphql.InputObjectConfigFieldMap{
		"key": &graphql.InputObjectFieldConfig{
			Type: graphql.String,
		},
	},
})
View Source
var DeleteBookRequest_Object = graphql.NewObject(graphql.ObjectConfig{
	Name: "DeleteBookRequest",
	Fields: graphql.Fields{
		"key": &graphql.Field{
			Type: graphql.String,
		},
	},
	Description: "",
})
View Source
var File_library_v1_book_proto protoreflect.FileDescriptor
View Source
var File_library_v1_client_proto protoreflect.FileDescriptor
View Source
var File_library_v1_library_proto protoreflect.FileDescriptor
View Source
var Library_Object = graphql.NewObject(graphql.ObjectConfig{
	Name: "Library",
	Fields: graphql.Fields{
		"_key": &graphql.Field{
			Type: graphql.ID,
		},
		"name": &graphql.Field{
			Type: graphql.String,
		},
		"categories": &graphql.Field{
			Type: graphql.NewList(v1.Category_Enum),
		},
		"location": &graphql.Field{
			Type: v11.Location_Object,
		},
		"country": &graphql.Field{
			Type: v12.Country_Enum,
		},
	},
	Description: "",
})
View Source
var ListBooksResponse_Input = graphql.NewInputObject(graphql.InputObjectConfig{
	Name: "ListBooksResponse_Input",
	Fields: graphql.InputObjectConfigFieldMap{
		"books": &graphql.InputObjectFieldConfig{
			Type: graphql.NewList(Book_Input),
		},
	},
})
View Source
var ListBooksResponse_Object = graphql.NewObject(graphql.ObjectConfig{
	Name: "ListBooksResponse",
	Fields: graphql.Fields{
		"books": &graphql.Field{
			Type: graphql.NewList(Book_Object),
		},
	},
	Description: "",
})

Functions

This section is empty.

Types

type Book

type Book struct {
	Key    string `protobuf:"bytes,1,opt,name=_key,proto3" json:"_key,omitempty"`
	Title  string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	Author string `protobuf:"bytes,3,opt,name=author,proto3" json:"author,omitempty"`
	// Types that are assignable to Type:
	//
	//	*Book_Novel_
	//	*Book_ShortStory_
	//	*Book_Academic_
	//	*Book_Poetry_
	//	*Book_Biography_
	Type       isBook_Type              `protobuf_oneof:"type"`
	MainReview *Book_Review             `protobuf:"bytes,9,opt,name=mainReview,proto3" json:"mainReview,omitempty"`
	Reviews    []*Book_Review           `protobuf:"bytes,10,rep,name=reviews,proto3" json:"reviews,omitempty"`
	Tags       []string                 `protobuf:"bytes,11,rep,name=tags,proto3" json:"tags,omitempty"`
	BookPrice  map[string]int32         `` /* 161-byte string literal not displayed */
	Chapters   map[int32]string         `` /* 159-byte string literal not displayed */
	Characters map[string]*v1.Character `` /* 162-byte string literal not displayed */
	Portrait   []byte                   `protobuf:"bytes,15,opt,name=portrait,proto3" json:"portrait,omitempty"`
	Gallery    [][]byte                 `protobuf:"bytes,16,rep,name=gallery,proto3" json:"gallery,omitempty"`
	Category   v1.Category              `protobuf:"varint,17,opt,name=category,proto3,enum=common.v1.Category" json:"category,omitempty"`
	// Types that are assignable to Role:
	//
	//	*Book_Admin
	//	*Book_Manager
	//	*Book_Client
	//	*Book_Other
	Role isBook_Role `protobuf_oneof:"role"`
	// contains filtered or unexported fields
}

func (*Book) Argument added in v0.1.1

func (*Book) Argument() graphql.FieldConfigArgument

Argument ...

func (*Book) Descriptor deprecated

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

Deprecated: Use Book.ProtoReflect.Descriptor instead.

func (*Book) GetAcademic

func (x *Book) GetAcademic() *Book_Academic

func (*Book) GetAdmin added in v0.0.12

func (x *Book) GetAdmin() bool

func (*Book) GetAuthor

func (x *Book) GetAuthor() string

func (*Book) GetBiography

func (x *Book) GetBiography() *Book_Biography

func (*Book) GetBookPrice

func (x *Book) GetBookPrice() map[string]int32

func (*Book) GetCategory

func (x *Book) GetCategory() v1.Category

func (*Book) GetChapters

func (x *Book) GetChapters() map[int32]string

func (*Book) GetCharacters added in v0.0.2

func (x *Book) GetCharacters() map[string]*v1.Character

func (*Book) GetClient added in v0.0.12

func (x *Book) GetClient() bool

func (*Book) GetGallery

func (x *Book) GetGallery() [][]byte

func (*Book) GetKey

func (x *Book) GetKey() string

func (*Book) GetMainReview

func (x *Book) GetMainReview() *Book_Review

func (*Book) GetManager added in v0.0.12

func (x *Book) GetManager() bool

func (*Book) GetNovel

func (x *Book) GetNovel() *Book_Novel

func (*Book) GetOther added in v0.0.12

func (x *Book) GetOther() string

func (*Book) GetPoetry

func (x *Book) GetPoetry() *Book_Poetry

func (*Book) GetPortrait

func (x *Book) GetPortrait() []byte

func (*Book) GetReviews

func (x *Book) GetReviews() []*Book_Review

func (*Book) GetRole added in v0.0.12

func (m *Book) GetRole() isBook_Role

func (*Book) GetShortStory

func (x *Book) GetShortStory() *Book_ShortStory

func (*Book) GetTags

func (x *Book) GetTags() []string

func (*Book) GetTitle

func (x *Book) GetTitle() string

func (*Book) GetType

func (m *Book) GetType() isBook_Type

func (*Book) Object added in v0.1.1

func (*Book) Object() *graphql.Object

Object ...

func (*Book) Output added in v0.1.1

func (*Book) Output() graphql.Output

Output ...

func (*Book) ProtoMessage

func (*Book) ProtoMessage()

func (*Book) ProtoReflect

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

func (*Book) Reset

func (x *Book) Reset()

func (*Book) Schema added in v0.0.10

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

Schema ...

func (*Book) String

func (x *Book) String() string

func (*Book) UnmarshalJSON added in v0.0.12

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

UnmarshalJSON ...

func (*Book) UnmarshalMap added in v0.0.12

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

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

func (*Book) Validate added in v0.4.44

func (m *Book) Validate() error

Validate checks the field values on Book 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 (*Book) ValidateAll added in v0.4.44

func (m *Book) ValidateAll() error

ValidateAll checks the field values on Book 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 BookMultiError, or nil if none found.

type BookMultiError added in v0.4.44

type BookMultiError []error

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

func (BookMultiError) AllErrors added in v0.4.44

func (m BookMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (BookMultiError) Error added in v0.4.44

func (m BookMultiError) Error() string

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

type BookValidationError added in v0.4.44

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

BookValidationError is the validation error returned by Book.Validate if the designated constraints aren't met.

func (BookValidationError) Cause added in v0.4.44

func (e BookValidationError) Cause() error

Cause function returns cause value.

func (BookValidationError) Error added in v0.4.44

func (e BookValidationError) Error() string

Error satisfies the builtin error interface

func (BookValidationError) ErrorName added in v0.4.44

func (e BookValidationError) ErrorName() string

ErrorName returns error name.

func (BookValidationError) Field added in v0.4.44

func (e BookValidationError) Field() string

Field function returns field value.

func (BookValidationError) Key added in v0.4.44

func (e BookValidationError) Key() bool

Key function returns key value.

func (BookValidationError) Reason added in v0.4.44

func (e BookValidationError) Reason() string

Reason function returns reason value.

type Book_Academic

type Book_Academic struct {
	Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"`
	Edition int32  `protobuf:"varint,2,opt,name=edition,proto3" json:"edition,omitempty"`
	// contains filtered or unexported fields
}

func (*Book_Academic) Argument added in v0.1.1

Argument ...

func (*Book_Academic) Descriptor deprecated

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

Deprecated: Use Book_Academic.ProtoReflect.Descriptor instead.

func (*Book_Academic) GetEdition

func (x *Book_Academic) GetEdition() int32

func (*Book_Academic) GetSubject

func (x *Book_Academic) GetSubject() string

func (*Book_Academic) Object added in v0.1.1

func (*Book_Academic) Object() *graphql.Object

Object ...

func (*Book_Academic) Output added in v0.1.1

func (*Book_Academic) Output() graphql.Output

Output ...

func (*Book_Academic) ProtoMessage

func (*Book_Academic) ProtoMessage()

func (*Book_Academic) ProtoReflect

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

func (*Book_Academic) Reset

func (x *Book_Academic) Reset()

func (*Book_Academic) Schema added in v0.0.10

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

Schema ...

func (*Book_Academic) String

func (x *Book_Academic) String() string

func (*Book_Academic) UnmarshalJSON added in v0.0.12

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

UnmarshalJSON ...

func (*Book_Academic) UnmarshalMap added in v0.0.12

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

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

func (*Book_Academic) Validate added in v0.4.44

func (m *Book_Academic) Validate() error

Validate checks the field values on Book_Academic 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 (*Book_Academic) ValidateAll added in v0.4.44

func (m *Book_Academic) ValidateAll() error

ValidateAll checks the field values on Book_Academic 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 Book_AcademicMultiError, or nil if none found.

type Book_AcademicMultiError added in v0.4.44

type Book_AcademicMultiError []error

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

func (Book_AcademicMultiError) AllErrors added in v0.4.44

func (m Book_AcademicMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Book_AcademicMultiError) Error added in v0.4.44

func (m Book_AcademicMultiError) Error() string

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

type Book_AcademicValidationError added in v0.4.44

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

Book_AcademicValidationError is the validation error returned by Book_Academic.Validate if the designated constraints aren't met.

func (Book_AcademicValidationError) Cause added in v0.4.44

Cause function returns cause value.

func (Book_AcademicValidationError) Error added in v0.4.44

Error satisfies the builtin error interface

func (Book_AcademicValidationError) ErrorName added in v0.4.44

func (e Book_AcademicValidationError) ErrorName() string

ErrorName returns error name.

func (Book_AcademicValidationError) Field added in v0.4.44

Field function returns field value.

func (Book_AcademicValidationError) Key added in v0.4.44

Key function returns key value.

func (Book_AcademicValidationError) Reason added in v0.4.44

Reason function returns reason value.

type Book_Academic_

type Book_Academic_ struct {
	Academic *Book_Academic `protobuf:"bytes,6,opt,name=academic,proto3,oneof"`
}

type Book_Admin added in v0.0.12

type Book_Admin struct {
	Admin bool `protobuf:"varint,18,opt,name=admin,proto3,oneof"`
}

type Book_Biography

type Book_Biography struct {
	SubjectPerson       string `protobuf:"bytes,1,opt,name=subjectPerson,proto3" json:"subjectPerson,omitempty"`
	NotableAchievements string `protobuf:"bytes,2,opt,name=notableAchievements,proto3" json:"notableAchievements,omitempty"`
	// contains filtered or unexported fields
}

func (*Book_Biography) Argument added in v0.1.1

Argument ...

func (*Book_Biography) Descriptor deprecated

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

Deprecated: Use Book_Biography.ProtoReflect.Descriptor instead.

func (*Book_Biography) GetNotableAchievements

func (x *Book_Biography) GetNotableAchievements() string

func (*Book_Biography) GetSubjectPerson

func (x *Book_Biography) GetSubjectPerson() string

func (*Book_Biography) Object added in v0.1.1

func (*Book_Biography) Object() *graphql.Object

Object ...

func (*Book_Biography) Output added in v0.1.1

func (*Book_Biography) Output() graphql.Output

Output ...

func (*Book_Biography) ProtoMessage

func (*Book_Biography) ProtoMessage()

func (*Book_Biography) ProtoReflect

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

func (*Book_Biography) Reset

func (x *Book_Biography) Reset()

func (*Book_Biography) Schema added in v0.0.10

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

Schema ...

func (*Book_Biography) String

func (x *Book_Biography) String() string

func (*Book_Biography) UnmarshalJSON added in v0.0.12

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

UnmarshalJSON ...

func (*Book_Biography) UnmarshalMap added in v0.0.12

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

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

func (*Book_Biography) Validate added in v0.4.44

func (m *Book_Biography) Validate() error

Validate checks the field values on Book_Biography 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 (*Book_Biography) ValidateAll added in v0.4.44

func (m *Book_Biography) ValidateAll() error

ValidateAll checks the field values on Book_Biography 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 Book_BiographyMultiError, or nil if none found.

type Book_BiographyMultiError added in v0.4.44

type Book_BiographyMultiError []error

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

func (Book_BiographyMultiError) AllErrors added in v0.4.44

func (m Book_BiographyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Book_BiographyMultiError) Error added in v0.4.44

func (m Book_BiographyMultiError) Error() string

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

type Book_BiographyValidationError added in v0.4.44

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

Book_BiographyValidationError is the validation error returned by Book_Biography.Validate if the designated constraints aren't met.

func (Book_BiographyValidationError) Cause added in v0.4.44

Cause function returns cause value.

func (Book_BiographyValidationError) Error added in v0.4.44

Error satisfies the builtin error interface

func (Book_BiographyValidationError) ErrorName added in v0.4.44

func (e Book_BiographyValidationError) ErrorName() string

ErrorName returns error name.

func (Book_BiographyValidationError) Field added in v0.4.44

Field function returns field value.

func (Book_BiographyValidationError) Key added in v0.4.44

Key function returns key value.

func (Book_BiographyValidationError) Reason added in v0.4.44

Reason function returns reason value.

type Book_Biography_

type Book_Biography_ struct {
	Biography *Book_Biography `protobuf:"bytes,8,opt,name=biography,proto3,oneof"`
}

type Book_Client added in v0.0.12

type Book_Client struct {
	Client bool `protobuf:"varint,20,opt,name=client,proto3,oneof"`
}

type Book_Manager added in v0.0.12

type Book_Manager struct {
	Manager bool `protobuf:"varint,19,opt,name=manager,proto3,oneof"`
}

type Book_Novel

type Book_Novel struct {
	Genre           string `protobuf:"bytes,1,opt,name=genre,proto3" json:"genre,omitempty"`
	PublicationYear int32  `protobuf:"varint,2,opt,name=publicationYear,proto3" json:"publicationYear,omitempty"`
	// contains filtered or unexported fields
}

func (*Book_Novel) Argument added in v0.1.1

Argument ...

func (*Book_Novel) Descriptor deprecated

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

Deprecated: Use Book_Novel.ProtoReflect.Descriptor instead.

func (*Book_Novel) GetGenre

func (x *Book_Novel) GetGenre() string

func (*Book_Novel) GetPublicationYear

func (x *Book_Novel) GetPublicationYear() int32

func (*Book_Novel) Object added in v0.1.1

func (*Book_Novel) Object() *graphql.Object

Object ...

func (*Book_Novel) Output added in v0.1.1

func (*Book_Novel) Output() graphql.Output

Output ...

func (*Book_Novel) ProtoMessage

func (*Book_Novel) ProtoMessage()

func (*Book_Novel) ProtoReflect

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

func (*Book_Novel) Reset

func (x *Book_Novel) Reset()

func (*Book_Novel) Schema added in v0.0.10

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

Schema ...

func (*Book_Novel) String

func (x *Book_Novel) String() string

func (*Book_Novel) UnmarshalJSON added in v0.0.12

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

UnmarshalJSON ...

func (*Book_Novel) UnmarshalMap added in v0.0.12

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

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

func (*Book_Novel) Validate added in v0.4.44

func (m *Book_Novel) Validate() error

Validate checks the field values on Book_Novel 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 (*Book_Novel) ValidateAll added in v0.4.44

func (m *Book_Novel) ValidateAll() error

ValidateAll checks the field values on Book_Novel 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 Book_NovelMultiError, or nil if none found.

type Book_NovelMultiError added in v0.4.44

type Book_NovelMultiError []error

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

func (Book_NovelMultiError) AllErrors added in v0.4.44

func (m Book_NovelMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Book_NovelMultiError) Error added in v0.4.44

func (m Book_NovelMultiError) Error() string

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

type Book_NovelValidationError added in v0.4.44

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

Book_NovelValidationError is the validation error returned by Book_Novel.Validate if the designated constraints aren't met.

func (Book_NovelValidationError) Cause added in v0.4.44

func (e Book_NovelValidationError) Cause() error

Cause function returns cause value.

func (Book_NovelValidationError) Error added in v0.4.44

Error satisfies the builtin error interface

func (Book_NovelValidationError) ErrorName added in v0.4.44

func (e Book_NovelValidationError) ErrorName() string

ErrorName returns error name.

func (Book_NovelValidationError) Field added in v0.4.44

Field function returns field value.

func (Book_NovelValidationError) Key added in v0.4.44

Key function returns key value.

func (Book_NovelValidationError) Reason added in v0.4.44

func (e Book_NovelValidationError) Reason() string

Reason function returns reason value.

type Book_Novel_

type Book_Novel_ struct {
	Novel *Book_Novel `protobuf:"bytes,4,opt,name=novel,proto3,oneof"`
}

type Book_Other added in v0.0.12

type Book_Other struct {
	Other string `protobuf:"bytes,21,opt,name=other,proto3,oneof"`
}

type Book_Poetry

type Book_Poetry struct {
	Style       string `protobuf:"bytes,1,opt,name=style,proto3" json:"style,omitempty"`
	IsAnthology *bool  `protobuf:"varint,2,opt,name=isAnthology,proto3,oneof" json:"isAnthology,omitempty"`
	// contains filtered or unexported fields
}

func (*Book_Poetry) Argument added in v0.1.1

Argument ...

func (*Book_Poetry) Descriptor deprecated

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

Deprecated: Use Book_Poetry.ProtoReflect.Descriptor instead.

func (*Book_Poetry) GetIsAnthology

func (x *Book_Poetry) GetIsAnthology() bool

func (*Book_Poetry) GetStyle

func (x *Book_Poetry) GetStyle() string

func (*Book_Poetry) Object added in v0.1.1

func (*Book_Poetry) Object() *graphql.Object

Object ...

func (*Book_Poetry) Output added in v0.1.1

func (*Book_Poetry) Output() graphql.Output

Output ...

func (*Book_Poetry) ProtoMessage

func (*Book_Poetry) ProtoMessage()

func (*Book_Poetry) ProtoReflect

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

func (*Book_Poetry) Reset

func (x *Book_Poetry) Reset()

func (*Book_Poetry) Schema added in v0.0.10

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

Schema ...

func (*Book_Poetry) String

func (x *Book_Poetry) String() string

func (*Book_Poetry) UnmarshalJSON added in v0.0.12

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

UnmarshalJSON ...

func (*Book_Poetry) UnmarshalMap added in v0.0.12

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

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

func (*Book_Poetry) Validate added in v0.4.44

func (m *Book_Poetry) Validate() error

Validate checks the field values on Book_Poetry 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 (*Book_Poetry) ValidateAll added in v0.4.44

func (m *Book_Poetry) ValidateAll() error

ValidateAll checks the field values on Book_Poetry 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 Book_PoetryMultiError, or nil if none found.

type Book_PoetryMultiError added in v0.4.44

type Book_PoetryMultiError []error

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

func (Book_PoetryMultiError) AllErrors added in v0.4.44

func (m Book_PoetryMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Book_PoetryMultiError) Error added in v0.4.44

func (m Book_PoetryMultiError) Error() string

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

type Book_PoetryValidationError added in v0.4.44

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

Book_PoetryValidationError is the validation error returned by Book_Poetry.Validate if the designated constraints aren't met.

func (Book_PoetryValidationError) Cause added in v0.4.44

Cause function returns cause value.

func (Book_PoetryValidationError) Error added in v0.4.44

Error satisfies the builtin error interface

func (Book_PoetryValidationError) ErrorName added in v0.4.44

func (e Book_PoetryValidationError) ErrorName() string

ErrorName returns error name.

func (Book_PoetryValidationError) Field added in v0.4.44

Field function returns field value.

func (Book_PoetryValidationError) Key added in v0.4.44

Key function returns key value.

func (Book_PoetryValidationError) Reason added in v0.4.44

Reason function returns reason value.

type Book_Poetry_

type Book_Poetry_ struct {
	Poetry *Book_Poetry `protobuf:"bytes,7,opt,name=poetry,proto3,oneof"`
}

type Book_Review

type Book_Review struct {
	Message  string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	UserName string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*Book_Review) Argument added in v0.1.1

Argument ...

func (*Book_Review) Descriptor deprecated

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

Deprecated: Use Book_Review.ProtoReflect.Descriptor instead.

func (*Book_Review) GetMessage

func (x *Book_Review) GetMessage() string

func (*Book_Review) GetUserName

func (x *Book_Review) GetUserName() string

func (*Book_Review) Object added in v0.1.1

func (*Book_Review) Object() *graphql.Object

Object ...

func (*Book_Review) Output added in v0.1.1

func (*Book_Review) Output() graphql.Output

Output ...

func (*Book_Review) ProtoMessage

func (*Book_Review) ProtoMessage()

func (*Book_Review) ProtoReflect

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

func (*Book_Review) Reset

func (x *Book_Review) Reset()

func (*Book_Review) Schema added in v0.0.10

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

Schema ...

func (*Book_Review) String

func (x *Book_Review) String() string

func (*Book_Review) UnmarshalJSON added in v0.0.12

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

UnmarshalJSON ...

func (*Book_Review) UnmarshalMap added in v0.0.12

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

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

func (*Book_Review) Validate added in v0.4.44

func (m *Book_Review) Validate() error

Validate checks the field values on Book_Review 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 (*Book_Review) ValidateAll added in v0.4.44

func (m *Book_Review) ValidateAll() error

ValidateAll checks the field values on Book_Review 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 Book_ReviewMultiError, or nil if none found.

type Book_ReviewMultiError added in v0.4.44

type Book_ReviewMultiError []error

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

func (Book_ReviewMultiError) AllErrors added in v0.4.44

func (m Book_ReviewMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Book_ReviewMultiError) Error added in v0.4.44

func (m Book_ReviewMultiError) Error() string

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

type Book_ReviewValidationError added in v0.4.44

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

Book_ReviewValidationError is the validation error returned by Book_Review.Validate if the designated constraints aren't met.

func (Book_ReviewValidationError) Cause added in v0.4.44

Cause function returns cause value.

func (Book_ReviewValidationError) Error added in v0.4.44

Error satisfies the builtin error interface

func (Book_ReviewValidationError) ErrorName added in v0.4.44

func (e Book_ReviewValidationError) ErrorName() string

ErrorName returns error name.

func (Book_ReviewValidationError) Field added in v0.4.44

Field function returns field value.

func (Book_ReviewValidationError) Key added in v0.4.44

Key function returns key value.

func (Book_ReviewValidationError) Reason added in v0.4.44

Reason function returns reason value.

type Book_ShortStory

type Book_ShortStory struct {
	LengthPages  int32 `protobuf:"varint,1,opt,name=lengthPages,proto3" json:"lengthPages,omitempty"`
	IsCollection *bool `protobuf:"varint,2,opt,name=isCollection,proto3,oneof" json:"isCollection,omitempty"`
	// contains filtered or unexported fields
}

func (*Book_ShortStory) Argument added in v0.1.1

Argument ...

func (*Book_ShortStory) Descriptor deprecated

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

Deprecated: Use Book_ShortStory.ProtoReflect.Descriptor instead.

func (*Book_ShortStory) GetIsCollection

func (x *Book_ShortStory) GetIsCollection() bool

func (*Book_ShortStory) GetLengthPages

func (x *Book_ShortStory) GetLengthPages() int32

func (*Book_ShortStory) Object added in v0.1.1

func (*Book_ShortStory) Object() *graphql.Object

Object ...

func (*Book_ShortStory) Output added in v0.1.1

func (*Book_ShortStory) Output() graphql.Output

Output ...

func (*Book_ShortStory) ProtoMessage

func (*Book_ShortStory) ProtoMessage()

func (*Book_ShortStory) ProtoReflect

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

func (*Book_ShortStory) Reset

func (x *Book_ShortStory) Reset()

func (*Book_ShortStory) Schema added in v0.0.10

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

Schema ...

func (*Book_ShortStory) String

func (x *Book_ShortStory) String() string

func (*Book_ShortStory) UnmarshalJSON added in v0.0.12

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

UnmarshalJSON ...

func (*Book_ShortStory) UnmarshalMap added in v0.0.12

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

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

func (*Book_ShortStory) Validate added in v0.4.44

func (m *Book_ShortStory) Validate() error

Validate checks the field values on Book_ShortStory 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 (*Book_ShortStory) ValidateAll added in v0.4.44

func (m *Book_ShortStory) ValidateAll() error

ValidateAll checks the field values on Book_ShortStory 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 Book_ShortStoryMultiError, or nil if none found.

type Book_ShortStoryMultiError added in v0.4.44

type Book_ShortStoryMultiError []error

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

func (Book_ShortStoryMultiError) AllErrors added in v0.4.44

func (m Book_ShortStoryMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Book_ShortStoryMultiError) Error added in v0.4.44

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

type Book_ShortStoryValidationError added in v0.4.44

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

Book_ShortStoryValidationError is the validation error returned by Book_ShortStory.Validate if the designated constraints aren't met.

func (Book_ShortStoryValidationError) Cause added in v0.4.44

Cause function returns cause value.

func (Book_ShortStoryValidationError) Error added in v0.4.44

Error satisfies the builtin error interface

func (Book_ShortStoryValidationError) ErrorName added in v0.4.44

func (e Book_ShortStoryValidationError) ErrorName() string

ErrorName returns error name.

func (Book_ShortStoryValidationError) Field added in v0.4.44

Field function returns field value.

func (Book_ShortStoryValidationError) Key added in v0.4.44

Key function returns key value.

func (Book_ShortStoryValidationError) Reason added in v0.4.44

Reason function returns reason value.

type Book_ShortStory_

type Book_ShortStory_ struct {
	ShortStory *Book_ShortStory `protobuf:"bytes,5,opt,name=shortStory,proto3,oneof"`
}

type Client added in v0.0.8

type Client struct {
	Key    string `protobuf:"bytes,1,opt,name=_key,proto3" json:"_key,omitempty"`
	Name   string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Email  string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
	Member *bool  `protobuf:"varint,4,opt,name=member,proto3,oneof" json:"member,omitempty"`
	// contains filtered or unexported fields
}

func (*Client) Argument added in v0.1.1

func (*Client) Argument() graphql.FieldConfigArgument

Argument ...

func (*Client) Descriptor deprecated added in v0.0.8

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

Deprecated: Use Client.ProtoReflect.Descriptor instead.

func (*Client) GetEmail added in v0.0.8

func (x *Client) GetEmail() string

func (*Client) GetKey added in v0.0.8

func (x *Client) GetKey() string

func (*Client) GetMember added in v0.0.8

func (x *Client) GetMember() bool

func (*Client) GetName added in v0.0.8

func (x *Client) GetName() string

func (*Client) Object added in v0.1.1

func (*Client) Object() *graphql.Object

Object ...

func (*Client) Output added in v0.1.1

func (*Client) Output() graphql.Output

Output ...

func (*Client) ProtoMessage added in v0.0.8

func (*Client) ProtoMessage()

func (*Client) ProtoReflect added in v0.0.8

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

func (*Client) Reset added in v0.0.8

func (x *Client) Reset()

func (*Client) Schema added in v0.0.10

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

Schema ...

func (*Client) String added in v0.0.8

func (x *Client) String() string

func (*Client) UnmarshalJSON added in v0.0.12

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

UnmarshalJSON ...

func (*Client) UnmarshalMap added in v0.0.12

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

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

func (*Client) Validate added in v0.4.44

func (m *Client) Validate() error

Validate checks the field values on Client 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 (*Client) ValidateAll added in v0.4.44

func (m *Client) ValidateAll() error

ValidateAll checks the field values on Client 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 ClientMultiError, or nil if none found.

type ClientMultiError added in v0.4.44

type ClientMultiError []error

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

func (ClientMultiError) AllErrors added in v0.4.44

func (m ClientMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ClientMultiError) Error added in v0.4.44

func (m ClientMultiError) Error() string

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

type ClientValidationError added in v0.4.44

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

ClientValidationError is the validation error returned by Client.Validate if the designated constraints aren't met.

func (ClientValidationError) Cause added in v0.4.44

func (e ClientValidationError) Cause() error

Cause function returns cause value.

func (ClientValidationError) Error added in v0.4.44

func (e ClientValidationError) Error() string

Error satisfies the builtin error interface

func (ClientValidationError) ErrorName added in v0.4.44

func (e ClientValidationError) ErrorName() string

ErrorName returns error name.

func (ClientValidationError) Field added in v0.4.44

func (e ClientValidationError) Field() string

Field function returns field value.

func (ClientValidationError) Key added in v0.4.44

func (e ClientValidationError) Key() bool

Key function returns key value.

func (ClientValidationError) Reason added in v0.4.44

func (e ClientValidationError) Reason() string

Reason function returns reason value.

type DeleteBookRequest added in v0.1.1

type DeleteBookRequest struct {
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteBookRequest) Argument added in v0.1.1

Argument ...

func (*DeleteBookRequest) Descriptor deprecated added in v0.1.1

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

Deprecated: Use DeleteBookRequest.ProtoReflect.Descriptor instead.

func (*DeleteBookRequest) GetKey added in v0.1.1

func (x *DeleteBookRequest) GetKey() string

func (*DeleteBookRequest) Object added in v0.1.1

func (*DeleteBookRequest) Object() *graphql.Object

Object ...

func (*DeleteBookRequest) Output added in v0.1.1

func (*DeleteBookRequest) Output() graphql.Output

Output ...

func (*DeleteBookRequest) ProtoMessage added in v0.1.1

func (*DeleteBookRequest) ProtoMessage()

func (*DeleteBookRequest) ProtoReflect added in v0.1.1

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

func (*DeleteBookRequest) Reset added in v0.1.1

func (x *DeleteBookRequest) Reset()

func (*DeleteBookRequest) String added in v0.1.1

func (x *DeleteBookRequest) String() string

func (*DeleteBookRequest) Validate added in v0.4.44

func (m *DeleteBookRequest) Validate() error

Validate checks the field values on DeleteBookRequest 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 (*DeleteBookRequest) ValidateAll added in v0.4.44

func (m *DeleteBookRequest) ValidateAll() error

ValidateAll checks the field values on DeleteBookRequest 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 DeleteBookRequestMultiError, or nil if none found.

type DeleteBookRequestMultiError added in v0.4.44

type DeleteBookRequestMultiError []error

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

func (DeleteBookRequestMultiError) AllErrors added in v0.4.44

func (m DeleteBookRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteBookRequestMultiError) Error added in v0.4.44

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

type DeleteBookRequestValidationError added in v0.4.44

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

DeleteBookRequestValidationError is the validation error returned by DeleteBookRequest.Validate if the designated constraints aren't met.

func (DeleteBookRequestValidationError) Cause added in v0.4.44

Cause function returns cause value.

func (DeleteBookRequestValidationError) Error added in v0.4.44

Error satisfies the builtin error interface

func (DeleteBookRequestValidationError) ErrorName added in v0.4.44

ErrorName returns error name.

func (DeleteBookRequestValidationError) Field added in v0.4.44

Field function returns field value.

func (DeleteBookRequestValidationError) Key added in v0.4.44

Key function returns key value.

func (DeleteBookRequestValidationError) Reason added in v0.4.44

Reason function returns reason value.

type Library added in v0.0.12

type Library struct {
	Key        string        `protobuf:"bytes,1,opt,name=_key,proto3" json:"_key,omitempty"`
	Name       string        `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Categories []v1.Category `protobuf:"varint,3,rep,packed,name=categories,proto3,enum=common.v1.Category" json:"categories,omitempty"`
	Location   *v11.Location `protobuf:"bytes,4,opt,name=location,proto3" json:"location,omitempty"`
	Country    v12.Country   `protobuf:"varint,5,opt,name=country,proto3,enum=graphify.collections.v1.Country" json:"country,omitempty"`
	// contains filtered or unexported fields
}

func (*Library) Argument added in v0.1.0

func (*Library) Argument() graphql.FieldConfigArgument

Argument ...

func (*Library) Descriptor deprecated added in v0.0.12

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

Deprecated: Use Library.ProtoReflect.Descriptor instead.

func (*Library) GetCategories added in v0.4.26

func (x *Library) GetCategories() []v1.Category

func (*Library) GetCountry added in v0.4.7

func (x *Library) GetCountry() v12.Country

func (*Library) GetKey added in v0.0.12

func (x *Library) GetKey() string

func (*Library) GetLocation added in v0.0.12

func (x *Library) GetLocation() *v11.Location

func (*Library) GetName added in v0.0.12

func (x *Library) GetName() string

func (*Library) Object added in v0.1.0

func (*Library) Object() *graphql.Object

Object ...

func (*Library) Output added in v0.1.0

func (*Library) Output() graphql.Output

Output ...

func (*Library) ProtoMessage added in v0.0.12

func (*Library) ProtoMessage()

func (*Library) ProtoReflect added in v0.0.12

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

func (*Library) Reset added in v0.0.12

func (x *Library) Reset()

func (*Library) Schema added in v0.0.12

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

Schema ...

func (*Library) String added in v0.0.12

func (x *Library) String() string

func (*Library) UnmarshalJSON added in v0.0.12

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

UnmarshalJSON ...

func (*Library) UnmarshalMap added in v0.0.12

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

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

func (*Library) Validate added in v0.4.44

func (m *Library) Validate() error

Validate checks the field values on Library 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 (*Library) ValidateAll added in v0.4.44

func (m *Library) ValidateAll() error

ValidateAll checks the field values on Library 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 LibraryMultiError, or nil if none found.

type LibraryMultiError added in v0.4.44

type LibraryMultiError []error

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

func (LibraryMultiError) AllErrors added in v0.4.44

func (m LibraryMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LibraryMultiError) Error added in v0.4.44

func (m LibraryMultiError) Error() string

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

type LibraryValidationError added in v0.4.44

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

LibraryValidationError is the validation error returned by Library.Validate if the designated constraints aren't met.

func (LibraryValidationError) Cause added in v0.4.44

func (e LibraryValidationError) Cause() error

Cause function returns cause value.

func (LibraryValidationError) Error added in v0.4.44

func (e LibraryValidationError) Error() string

Error satisfies the builtin error interface

func (LibraryValidationError) ErrorName added in v0.4.44

func (e LibraryValidationError) ErrorName() string

ErrorName returns error name.

func (LibraryValidationError) Field added in v0.4.44

func (e LibraryValidationError) Field() string

Field function returns field value.

func (LibraryValidationError) Key added in v0.4.44

func (e LibraryValidationError) Key() bool

Key function returns key value.

func (LibraryValidationError) Reason added in v0.4.44

func (e LibraryValidationError) Reason() string

Reason function returns reason value.

type ListBooksResponse added in v0.1.1

type ListBooksResponse struct {
	Books []*Book `protobuf:"bytes,1,rep,name=books,proto3" json:"books,omitempty"`
	// contains filtered or unexported fields
}

func (*ListBooksResponse) Argument added in v0.1.1

Argument ...

func (*ListBooksResponse) Descriptor deprecated added in v0.1.1

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

Deprecated: Use ListBooksResponse.ProtoReflect.Descriptor instead.

func (*ListBooksResponse) GetBooks added in v0.1.1

func (x *ListBooksResponse) GetBooks() []*Book

func (*ListBooksResponse) Object added in v0.1.1

func (*ListBooksResponse) Object() *graphql.Object

Object ...

func (*ListBooksResponse) Output added in v0.1.1

func (*ListBooksResponse) Output() graphql.Output

Output ...

func (*ListBooksResponse) ProtoMessage added in v0.1.1

func (*ListBooksResponse) ProtoMessage()

func (*ListBooksResponse) ProtoReflect added in v0.1.1

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

func (*ListBooksResponse) Reset added in v0.1.1

func (x *ListBooksResponse) Reset()

func (*ListBooksResponse) String added in v0.1.1

func (x *ListBooksResponse) String() string

func (*ListBooksResponse) Validate added in v0.4.44

func (m *ListBooksResponse) Validate() error

Validate checks the field values on ListBooksResponse 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 (*ListBooksResponse) ValidateAll added in v0.4.44

func (m *ListBooksResponse) ValidateAll() error

ValidateAll checks the field values on ListBooksResponse 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 ListBooksResponseMultiError, or nil if none found.

type ListBooksResponseMultiError added in v0.4.44

type ListBooksResponseMultiError []error

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

func (ListBooksResponseMultiError) AllErrors added in v0.4.44

func (m ListBooksResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListBooksResponseMultiError) Error added in v0.4.44

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

type ListBooksResponseValidationError added in v0.4.44

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

ListBooksResponseValidationError is the validation error returned by ListBooksResponse.Validate if the designated constraints aren't met.

func (ListBooksResponseValidationError) Cause added in v0.4.44

Cause function returns cause value.

func (ListBooksResponseValidationError) Error added in v0.4.44

Error satisfies the builtin error interface

func (ListBooksResponseValidationError) ErrorName added in v0.4.44

ErrorName returns error name.

func (ListBooksResponseValidationError) Field added in v0.4.44

Field function returns field value.

func (ListBooksResponseValidationError) Key added in v0.4.44

Key function returns key value.

func (ListBooksResponseValidationError) Reason added in v0.4.44

Reason function returns reason value.

Jump to

Keyboard shortcuts

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