libraryv1

package
v0.0.0-...-eb27688 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

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_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_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: 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_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_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_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 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: "",
})
View Source
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},
	},
})
View Source
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: "",
})
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 File_library_v1_library_proto protoreflect.FileDescriptor
View Source
var Library_Location_Object = graphql.NewObject(graphql.ObjectConfig{
	Name: "Library_Location",
	Fields: graphql.Fields{
		"lat": &graphql.Field{
			Type: graphql.Float,
		},
		"lng": &graphql.Field{
			Type: graphql.Float,
		},
	},
	Description: "",
})
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,
		},
		"location": &graphql.Field{
			Type: Library_Location_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]*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) Descriptor() ([]byte, []int)

Deprecated: Use Book.ProtoReflect.Descriptor instead.

func (*Book) GetAcademic

func (x *Book) GetAcademic() *Book_Academic

func (*Book) GetAdmin

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() Category

func (*Book) GetChapters

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

func (*Book) GetCharacters

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

func (*Book) GetClient

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

func (x *Book) GetManager() bool

func (*Book) GetNovel

func (x *Book) GetNovel() *Book_Novel

func (*Book) GetOther

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

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

func (*Book) ProtoMessage()

func (*Book) ProtoReflect

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

func (*Book) QueryObject

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

QueryObject ...

func (*Book) Reset

func (x *Book) Reset()

func (*Book) Schema

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

Schema ...

func (*Book) String

func (x *Book) String() string

func (*Book) UnmarshalJSON

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

UnmarshalJSON ...

func (*Book) UnmarshalMap

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

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

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

QueryObject ...

func (*Book_Academic) Reset

func (x *Book_Academic) Reset()

func (*Book_Academic) Schema

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

Schema ...

func (*Book_Academic) String

func (x *Book_Academic) String() string

func (*Book_Academic) UnmarshalJSON

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

UnmarshalJSON ...

func (*Book_Academic) UnmarshalMap

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

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

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

QueryObject ...

func (*Book_Biography) Reset

func (x *Book_Biography) Reset()

func (*Book_Biography) Schema

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

Schema ...

func (*Book_Biography) String

func (x *Book_Biography) String() string

func (*Book_Biography) UnmarshalJSON

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

UnmarshalJSON ...

func (*Book_Biography) UnmarshalMap

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

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

type Book_Manager

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

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

QueryObject ...

func (*Book_Novel) Reset

func (x *Book_Novel) Reset()

func (*Book_Novel) Schema

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

Schema ...

func (*Book_Novel) String

func (x *Book_Novel) String() string

func (*Book_Novel) UnmarshalJSON

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

UnmarshalJSON ...

func (*Book_Novel) UnmarshalMap

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

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" 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

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

QueryObject ...

func (*Book_Poetry) Reset

func (x *Book_Poetry) Reset()

func (*Book_Poetry) Schema

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

Schema ...

func (*Book_Poetry) String

func (x *Book_Poetry) String() string

func (*Book_Poetry) UnmarshalJSON

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

UnmarshalJSON ...

func (*Book_Poetry) UnmarshalMap

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

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

QueryObject ...

func (*Book_Review) Reset

func (x *Book_Review) Reset()

func (*Book_Review) Schema

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

Schema ...

func (*Book_Review) String

func (x *Book_Review) String() string

func (*Book_Review) UnmarshalJSON

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

UnmarshalJSON ...

func (*Book_Review) UnmarshalMap

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" 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

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

QueryObject ...

func (*Book_ShortStory) Reset

func (x *Book_ShortStory) Reset()

func (*Book_ShortStory) Schema

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

Schema ...

func (*Book_ShortStory) String

func (x *Book_ShortStory) String() string

func (*Book_ShortStory) UnmarshalJSON

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

UnmarshalJSON ...

func (*Book_ShortStory) UnmarshalMap

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

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

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

Deprecated: Use Borrow.ProtoReflect.Descriptor instead.

func (*Borrow) GetDate

func (x *Borrow) GetDate() int64

func (*Borrow) GetFrom

func (x *Borrow) GetFrom() string

func (*Borrow) GetKey

func (x *Borrow) GetKey() string

func (*Borrow) GetTo

func (x *Borrow) GetTo() string

func (*Borrow) ProtoMessage

func (*Borrow) ProtoMessage()

func (*Borrow) ProtoReflect

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

func (*Borrow) QueryObject

func (*Borrow) QueryObject() *graphql.Object

QueryObject ...

func (*Borrow) Reset

func (x *Borrow) Reset()

func (*Borrow) Schema

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

Schema ...

func (*Borrow) String

func (x *Borrow) String() string

func (*Borrow) UnmarshalJSON

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

UnmarshalJSON ...

func (*Borrow) UnmarshalMap

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

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

type Category

type Category int32
const (
	Category_CATEGORY_UNSPECIFIED Category = 0
	Category_CATEGORY_DRAMA       Category = 1
	Category_CATEGORY_HORROR      Category = 2
)

func (Category) Descriptor

func (Category) Descriptor() protoreflect.EnumDescriptor

func (Category) Enum

func (x Category) Enum() *Category

func (Category) EnumDescriptor deprecated

func (Category) EnumDescriptor() ([]byte, []int)

Deprecated: Use Category.Descriptor instead.

func (Category) Number

func (x Category) Number() protoreflect.EnumNumber

func (Category) String

func (x Category) String() string

func (Category) Type

type Character

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

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

Deprecated: Use Character.ProtoReflect.Descriptor instead.

func (*Character) GetName

func (x *Character) GetName() string

func (*Character) GetRole

func (x *Character) GetRole() string

func (*Character) ProtoMessage

func (*Character) ProtoMessage()

func (*Character) ProtoReflect

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

func (*Character) QueryObject

func (*Character) QueryObject() *graphql.Object

QueryObject ...

func (*Character) Reset

func (x *Character) Reset()

func (*Character) Schema

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

Schema ...

func (*Character) String

func (x *Character) String() string

func (*Character) UnmarshalJSON

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

UnmarshalJSON ...

func (*Character) UnmarshalMap

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

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

type Client

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" json:"member,omitempty"`
	// contains filtered or unexported fields
}

func (*Client) Descriptor deprecated

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

Deprecated: Use Client.ProtoReflect.Descriptor instead.

func (*Client) GetEmail

func (x *Client) GetEmail() string

func (*Client) GetKey

func (x *Client) GetKey() string

func (*Client) GetMember

func (x *Client) GetMember() bool

func (*Client) GetName

func (x *Client) GetName() string

func (*Client) ProtoMessage

func (*Client) ProtoMessage()

func (*Client) ProtoReflect

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

func (*Client) QueryObject

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

QueryObject ...

func (*Client) Reset

func (x *Client) Reset()

func (*Client) Schema

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

Schema ...

func (*Client) String

func (x *Client) String() string

func (*Client) UnmarshalJSON

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

UnmarshalJSON ...

func (*Client) UnmarshalMap

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

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

type Library

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

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

Deprecated: Use Library.ProtoReflect.Descriptor instead.

func (*Library) GetKey

func (x *Library) GetKey() string

func (*Library) GetLocation

func (x *Library) GetLocation() *Library_Location

func (*Library) GetName

func (x *Library) GetName() string

func (*Library) ProtoMessage

func (*Library) ProtoMessage()

func (*Library) ProtoReflect

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

func (*Library) QueryObject

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

QueryObject ...

func (*Library) Reset

func (x *Library) Reset()

func (*Library) Schema

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

Schema ...

func (*Library) String

func (x *Library) String() string

func (*Library) UnmarshalJSON

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

UnmarshalJSON ...

func (*Library) UnmarshalMap

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

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

type Library_Location

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

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

Deprecated: Use Library_Location.ProtoReflect.Descriptor instead.

func (*Library_Location) GetLat

func (x *Library_Location) GetLat() float32

func (*Library_Location) GetLng

func (x *Library_Location) GetLng() float32

func (*Library_Location) ProtoMessage

func (*Library_Location) ProtoMessage()

func (*Library_Location) ProtoReflect

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

func (*Library_Location) QueryObject

func (*Library_Location) QueryObject() *graphql.Object

QueryObject ...

func (*Library_Location) Reset

func (x *Library_Location) Reset()

func (*Library_Location) Schema

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

Schema ...

func (*Library_Location) String

func (x *Library_Location) String() string

func (*Library_Location) UnmarshalJSON

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

UnmarshalJSON ...

func (*Library_Location) UnmarshalMap

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

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

Jump to

Keyboard shortcuts

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