Documentation ¶
Index ¶
- Variables
- type Book
- func (*Book) Descriptor() ([]byte, []int)deprecated
- func (x *Book) GetAcademic() *Book_Academic
- func (x *Book) GetAdmin() bool
- func (x *Book) GetAuthor() string
- func (x *Book) GetBiography() *Book_Biography
- func (x *Book) GetBookPrice() map[string]int32
- func (x *Book) GetCategory() Category
- func (x *Book) GetChapters() map[int32]string
- func (x *Book) GetCharacters() map[string]*Character
- func (x *Book) GetClient() bool
- func (x *Book) GetGallery() [][]byte
- func (x *Book) GetKey() string
- func (x *Book) GetMainReview() *Book_Review
- func (x *Book) GetManager() bool
- func (x *Book) GetNovel() *Book_Novel
- func (x *Book) GetOther() string
- func (x *Book) GetPoetry() *Book_Poetry
- func (x *Book) GetPortrait() []byte
- func (x *Book) GetReviews() []*Book_Review
- func (m *Book) GetRole() isBook_Role
- func (x *Book) GetShortStory() *Book_ShortStory
- func (x *Book) GetTags() []string
- func (x *Book) GetTitle() string
- func (m *Book) GetType() isBook_Type
- func (*Book) ProtoMessage()
- func (x *Book) ProtoReflect() protoreflect.Message
- func (*Book) QueryObject() *graphql.Object
- func (x *Book) Reset()
- func (*Book) Schema() map[string]interface{}
- func (x *Book) String() string
- func (o *Book) UnmarshalJSON(b []byte) error
- func (o *Book) UnmarshalMap(values map[string]interface{})
- type Book_Academic
- func (*Book_Academic) Descriptor() ([]byte, []int)deprecated
- func (x *Book_Academic) GetEdition() int32
- func (x *Book_Academic) GetSubject() string
- func (*Book_Academic) ProtoMessage()
- func (x *Book_Academic) ProtoReflect() protoreflect.Message
- func (*Book_Academic) QueryObject() *graphql.Object
- func (x *Book_Academic) Reset()
- func (*Book_Academic) Schema() map[string]interface{}
- func (x *Book_Academic) String() string
- func (o *Book_Academic) UnmarshalJSON(b []byte) error
- func (o *Book_Academic) UnmarshalMap(values map[string]interface{})
- type Book_Academic_
- type Book_Admin
- type Book_Biography
- func (*Book_Biography) Descriptor() ([]byte, []int)deprecated
- func (x *Book_Biography) GetNotableAchievements() string
- func (x *Book_Biography) GetSubjectPerson() string
- func (*Book_Biography) ProtoMessage()
- func (x *Book_Biography) ProtoReflect() protoreflect.Message
- func (*Book_Biography) QueryObject() *graphql.Object
- func (x *Book_Biography) Reset()
- func (*Book_Biography) Schema() map[string]interface{}
- func (x *Book_Biography) String() string
- func (o *Book_Biography) UnmarshalJSON(b []byte) error
- func (o *Book_Biography) UnmarshalMap(values map[string]interface{})
- type Book_Biography_
- type Book_Client
- type Book_Manager
- type Book_Novel
- func (*Book_Novel) Descriptor() ([]byte, []int)deprecated
- func (x *Book_Novel) GetGenre() string
- func (x *Book_Novel) GetPublicationYear() int32
- func (*Book_Novel) ProtoMessage()
- func (x *Book_Novel) ProtoReflect() protoreflect.Message
- func (*Book_Novel) QueryObject() *graphql.Object
- func (x *Book_Novel) Reset()
- func (*Book_Novel) Schema() map[string]interface{}
- func (x *Book_Novel) String() string
- func (o *Book_Novel) UnmarshalJSON(b []byte) error
- func (o *Book_Novel) UnmarshalMap(values map[string]interface{})
- type Book_Novel_
- type Book_Other
- type Book_Poetry
- func (*Book_Poetry) Descriptor() ([]byte, []int)deprecated
- func (x *Book_Poetry) GetIsAnthology() bool
- func (x *Book_Poetry) GetStyle() string
- func (*Book_Poetry) ProtoMessage()
- func (x *Book_Poetry) ProtoReflect() protoreflect.Message
- func (*Book_Poetry) QueryObject() *graphql.Object
- func (x *Book_Poetry) Reset()
- func (*Book_Poetry) Schema() map[string]interface{}
- func (x *Book_Poetry) String() string
- func (o *Book_Poetry) UnmarshalJSON(b []byte) error
- func (o *Book_Poetry) UnmarshalMap(values map[string]interface{})
- type Book_Poetry_
- type Book_Review
- func (*Book_Review) Descriptor() ([]byte, []int)deprecated
- func (x *Book_Review) GetMessage() string
- func (x *Book_Review) GetUserName() string
- func (*Book_Review) ProtoMessage()
- func (x *Book_Review) ProtoReflect() protoreflect.Message
- func (*Book_Review) QueryObject() *graphql.Object
- func (x *Book_Review) Reset()
- func (*Book_Review) Schema() map[string]interface{}
- func (x *Book_Review) String() string
- func (o *Book_Review) UnmarshalJSON(b []byte) error
- func (o *Book_Review) UnmarshalMap(values map[string]interface{})
- type Book_ShortStory
- func (*Book_ShortStory) Descriptor() ([]byte, []int)deprecated
- func (x *Book_ShortStory) GetIsCollection() bool
- func (x *Book_ShortStory) GetLengthPages() int32
- func (*Book_ShortStory) ProtoMessage()
- func (x *Book_ShortStory) ProtoReflect() protoreflect.Message
- func (*Book_ShortStory) QueryObject() *graphql.Object
- func (x *Book_ShortStory) Reset()
- func (*Book_ShortStory) Schema() map[string]interface{}
- func (x *Book_ShortStory) String() string
- func (o *Book_ShortStory) UnmarshalJSON(b []byte) error
- func (o *Book_ShortStory) UnmarshalMap(values map[string]interface{})
- type Book_ShortStory_
- type Borrow
- func (*Borrow) Descriptor() ([]byte, []int)deprecated
- func (x *Borrow) GetDate() int64
- func (x *Borrow) GetFrom() string
- func (x *Borrow) GetKey() string
- func (x *Borrow) GetTo() string
- func (*Borrow) ProtoMessage()
- func (x *Borrow) ProtoReflect() protoreflect.Message
- func (*Borrow) QueryObject() *graphql.Object
- func (x *Borrow) Reset()
- func (*Borrow) Schema() map[string]interface{}
- func (x *Borrow) String() string
- func (o *Borrow) UnmarshalJSON(b []byte) error
- func (o *Borrow) UnmarshalMap(values map[string]interface{})
- type Category
- type Character
- func (*Character) Descriptor() ([]byte, []int)deprecated
- func (x *Character) GetName() string
- func (x *Character) GetRole() string
- func (*Character) ProtoMessage()
- func (x *Character) ProtoReflect() protoreflect.Message
- func (*Character) QueryObject() *graphql.Object
- func (x *Character) Reset()
- func (*Character) Schema() map[string]interface{}
- func (x *Character) String() string
- func (o *Character) UnmarshalJSON(b []byte) error
- func (o *Character) UnmarshalMap(values map[string]interface{})
- type Client
- func (*Client) Descriptor() ([]byte, []int)deprecated
- func (x *Client) GetEmail() string
- func (x *Client) GetKey() string
- func (x *Client) GetMember() bool
- func (x *Client) GetName() string
- func (*Client) ProtoMessage()
- func (x *Client) ProtoReflect() protoreflect.Message
- func (*Client) QueryObject() *graphql.Object
- func (x *Client) Reset()
- func (*Client) Schema() map[string]interface{}
- func (x *Client) String() string
- func (o *Client) UnmarshalJSON(b []byte) error
- func (o *Client) UnmarshalMap(values map[string]interface{})
- type Library
- func (*Library) Descriptor() ([]byte, []int)deprecated
- func (x *Library) GetKey() string
- func (x *Library) GetLocation() *Library_Location
- func (x *Library) GetName() string
- func (*Library) ProtoMessage()
- func (x *Library) ProtoReflect() protoreflect.Message
- func (*Library) QueryObject() *graphql.Object
- func (x *Library) Reset()
- func (*Library) Schema() map[string]interface{}
- func (x *Library) String() string
- func (o *Library) UnmarshalJSON(b []byte) error
- func (o *Library) UnmarshalMap(values map[string]interface{})
- type Library_Location
- func (*Library_Location) Descriptor() ([]byte, []int)deprecated
- func (x *Library_Location) GetLat() float32
- func (x *Library_Location) GetLng() float32
- func (*Library_Location) ProtoMessage()
- func (x *Library_Location) ProtoReflect() protoreflect.Message
- func (*Library_Location) QueryObject() *graphql.Object
- func (x *Library_Location) Reset()
- func (*Library_Location) Schema() map[string]interface{}
- func (x *Library_Location) String() string
- func (o *Library_Location) UnmarshalJSON(b []byte) error
- func (o *Library_Location) UnmarshalMap(values map[string]interface{})
Constants ¶
This section is empty.
Variables ¶
var ( Category_name = map[int32]string{ 0: "CATEGORY_UNSPECIFIED", 1: "CATEGORY_DRAMA", 2: "CATEGORY_HORROR", } Category_value = map[string]int32{ "CATEGORY_UNSPECIFIED": 0, "CATEGORY_DRAMA": 1, "CATEGORY_HORROR": 2, } )
Enum value maps for Category.
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: "", })
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: "", })
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: "", })
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: 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: "", })
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: "", })
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: "", })
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: "", })
var Borrow_Object = graphql.NewObject(graphql.ObjectConfig{ Name: "Borrow", Fields: graphql.Fields{ "_key": &graphql.Field{ Type: graphql.ID, }, "_from": &graphql.Field{ Type: graphql.String, }, "_to": &graphql.Field{ Type: graphql.String, }, "date": &graphql.Field{ Type: graphql.Int, }, }, Description: "", })
var Category_Enum = graphql.NewEnum(graphql.EnumConfig{ Name: "Category", Values: graphql.EnumValueConfigMap{ "CATEGORY_UNSPECIFIED": &graphql.EnumValueConfig{Value: Category_CATEGORY_UNSPECIFIED}, "CATEGORY_DRAMA": &graphql.EnumValueConfig{Value: Category_CATEGORY_DRAMA}, "CATEGORY_HORROR": &graphql.EnumValueConfig{Value: Category_CATEGORY_HORROR}, }, })
var Character_Object = graphql.NewObject(graphql.ObjectConfig{ Name: "Character", Fields: graphql.Fields{ "name": &graphql.Field{ Type: graphql.String, }, "role": &graphql.Field{ Type: graphql.String, }, }, Description: "", })
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: "", })
var File_library_v1_library_proto protoreflect.FileDescriptor
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]*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 Category `protobuf:"varint,17,opt,name=category,proto3,enum=library.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) Descriptor
deprecated
func (*Book) GetAcademic ¶
func (x *Book) GetAcademic() *Book_Academic
func (*Book) GetBiography ¶
func (x *Book) GetBiography() *Book_Biography
func (*Book) GetBookPrice ¶
func (*Book) GetCategory ¶
func (*Book) GetChapters ¶
func (*Book) GetCharacters ¶ added in v0.0.2
func (*Book) GetGallery ¶
func (*Book) GetMainReview ¶
func (x *Book) GetMainReview() *Book_Review
func (*Book) GetManager ¶ added in v0.0.12
func (*Book) GetNovel ¶
func (x *Book) GetNovel() *Book_Novel
func (*Book) GetPoetry ¶
func (x *Book) GetPoetry() *Book_Poetry
func (*Book) GetPortrait ¶
func (*Book) GetReviews ¶
func (x *Book) GetReviews() []*Book_Review
func (*Book) GetShortStory ¶
func (x *Book) GetShortStory() *Book_ShortStory
func (*Book) ProtoMessage ¶
func (*Book) ProtoMessage()
func (*Book) ProtoReflect ¶
func (x *Book) ProtoReflect() protoreflect.Message
func (*Book) QueryObject ¶ added in v0.0.12
QueryObject ...
func (*Book) UnmarshalJSON ¶ added in v0.0.12
UnmarshalJSON ...
func (*Book) UnmarshalMap ¶ added in v0.0.12
UnmarshalMap populates struct fields from a map, handling decoding for special fields.
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) 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) ProtoMessage ¶
func (*Book_Academic) ProtoMessage()
func (*Book_Academic) ProtoReflect ¶
func (x *Book_Academic) ProtoReflect() protoreflect.Message
func (*Book_Academic) QueryObject ¶ added in v0.0.12
func (*Book_Academic) QueryObject() *graphql.Object
QueryObject ...
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.
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) 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) ProtoMessage ¶
func (*Book_Biography) ProtoMessage()
func (*Book_Biography) ProtoReflect ¶
func (x *Book_Biography) ProtoReflect() protoreflect.Message
func (*Book_Biography) QueryObject ¶ added in v0.0.12
func (*Book_Biography) QueryObject() *graphql.Object
QueryObject ...
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.
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) 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) ProtoMessage ¶
func (*Book_Novel) ProtoMessage()
func (*Book_Novel) ProtoReflect ¶
func (x *Book_Novel) ProtoReflect() protoreflect.Message
func (*Book_Novel) QueryObject ¶ added in v0.0.12
func (*Book_Novel) QueryObject() *graphql.Object
QueryObject ...
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.
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) 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) ProtoMessage ¶
func (*Book_Poetry) ProtoMessage()
func (*Book_Poetry) ProtoReflect ¶
func (x *Book_Poetry) ProtoReflect() protoreflect.Message
func (*Book_Poetry) QueryObject ¶ added in v0.0.12
func (*Book_Poetry) QueryObject() *graphql.Object
QueryObject ...
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.
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) 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) ProtoMessage ¶
func (*Book_Review) ProtoMessage()
func (*Book_Review) ProtoReflect ¶
func (x *Book_Review) ProtoReflect() protoreflect.Message
func (*Book_Review) QueryObject ¶ added in v0.0.12
func (*Book_Review) QueryObject() *graphql.Object
QueryObject ...
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.
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) 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) ProtoMessage ¶
func (*Book_ShortStory) ProtoMessage()
func (*Book_ShortStory) ProtoReflect ¶
func (x *Book_ShortStory) ProtoReflect() protoreflect.Message
func (*Book_ShortStory) QueryObject ¶ added in v0.0.12
func (*Book_ShortStory) QueryObject() *graphql.Object
QueryObject ...
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.
type Book_ShortStory_ ¶
type Book_ShortStory_ struct {
ShortStory *Book_ShortStory `protobuf:"bytes,5,opt,name=shortStory,proto3,oneof"`
}
type Borrow ¶ added in v0.0.8
type Borrow struct { Key string `protobuf:"bytes,1,opt,name=_key,proto3" json:"_key,omitempty"` From string `protobuf:"bytes,2,opt,name=_from,proto3" json:"_from,omitempty"` To string `protobuf:"bytes,3,opt,name=_to,proto3" json:"_to,omitempty"` Date *int64 `protobuf:"varint,4,opt,name=date,proto3,oneof" json:"date,omitempty"` // contains filtered or unexported fields }
func (*Borrow) Descriptor
deprecated
added in
v0.0.8
func (*Borrow) ProtoMessage ¶ added in v0.0.8
func (*Borrow) ProtoMessage()
func (*Borrow) ProtoReflect ¶ added in v0.0.8
func (x *Borrow) ProtoReflect() protoreflect.Message
func (*Borrow) QueryObject ¶ added in v0.0.12
QueryObject ...
func (*Borrow) UnmarshalJSON ¶ added in v0.0.12
UnmarshalJSON ...
func (*Borrow) UnmarshalMap ¶ added in v0.0.12
UnmarshalMap populates struct fields from a map, handling decoding for special fields.
type Category ¶
type Category int32
func (Category) Descriptor ¶
func (Category) Descriptor() protoreflect.EnumDescriptor
func (Category) EnumDescriptor
deprecated
func (Category) Number ¶
func (x Category) Number() protoreflect.EnumNumber
func (Category) Type ¶
func (Category) Type() protoreflect.EnumType
type Character ¶ added in v0.0.2
type Character struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Role string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"` // contains filtered or unexported fields }
func (*Character) Descriptor
deprecated
added in
v0.0.2
func (*Character) ProtoMessage ¶ added in v0.0.2
func (*Character) ProtoMessage()
func (*Character) ProtoReflect ¶ added in v0.0.2
func (x *Character) ProtoReflect() protoreflect.Message
func (*Character) QueryObject ¶ added in v0.0.12
QueryObject ...
func (*Character) UnmarshalJSON ¶ added in v0.0.12
UnmarshalJSON ...
func (*Character) UnmarshalMap ¶ added in v0.0.12
UnmarshalMap populates struct fields from a map, handling decoding for special fields.
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) Descriptor
deprecated
added in
v0.0.8
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) QueryObject ¶ added in v0.0.12
QueryObject ...
func (*Client) UnmarshalJSON ¶ added in v0.0.12
UnmarshalJSON ...
func (*Client) UnmarshalMap ¶ added in v0.0.12
UnmarshalMap populates struct fields from a map, handling decoding for special fields.
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"` Location *Library_Location `protobuf:"bytes,3,opt,name=location,proto3" json:"location,omitempty"` // contains filtered or unexported fields }
func (*Library) Descriptor
deprecated
added in
v0.0.12
func (*Library) GetLocation ¶ added in v0.0.12
func (x *Library) GetLocation() *Library_Location
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) QueryObject ¶ added in v0.0.12
QueryObject ...
func (*Library) UnmarshalJSON ¶ added in v0.0.12
UnmarshalJSON ...
func (*Library) UnmarshalMap ¶ added in v0.0.12
UnmarshalMap populates struct fields from a map, handling decoding for special fields.
type Library_Location ¶ added in v0.0.12
type Library_Location struct { Lat float32 `protobuf:"fixed32,1,opt,name=lat,proto3" json:"lat,omitempty"` Lng float32 `protobuf:"fixed32,2,opt,name=lng,proto3" json:"lng,omitempty"` // contains filtered or unexported fields }
func (*Library_Location) Descriptor
deprecated
added in
v0.0.12
func (*Library_Location) Descriptor() ([]byte, []int)
Deprecated: Use Library_Location.ProtoReflect.Descriptor instead.
func (*Library_Location) GetLat ¶ added in v0.0.12
func (x *Library_Location) GetLat() float32
func (*Library_Location) GetLng ¶ added in v0.0.12
func (x *Library_Location) GetLng() float32
func (*Library_Location) ProtoMessage ¶ added in v0.0.12
func (*Library_Location) ProtoMessage()
func (*Library_Location) ProtoReflect ¶ added in v0.0.12
func (x *Library_Location) ProtoReflect() protoreflect.Message
func (*Library_Location) QueryObject ¶ added in v0.0.12
func (*Library_Location) QueryObject() *graphql.Object
QueryObject ...
func (*Library_Location) Reset ¶ added in v0.0.12
func (x *Library_Location) Reset()
func (*Library_Location) Schema ¶ added in v0.0.12
func (*Library_Location) Schema() map[string]interface{}
Schema ...
func (*Library_Location) String ¶ added in v0.0.12
func (x *Library_Location) String() string
func (*Library_Location) UnmarshalJSON ¶ added in v0.0.12
func (o *Library_Location) UnmarshalJSON(b []byte) error
UnmarshalJSON ...
func (*Library_Location) UnmarshalMap ¶ added in v0.0.12
func (o *Library_Location) UnmarshalMap(values map[string]interface{})
UnmarshalMap populates struct fields from a map, handling decoding for special fields.