Documentation ¶
Index ¶
- Constants
- Variables
- type Activity
- type ActivityAction
- type ActivityConnection
- type ActivityEdge
- type ActivityItem
- type ActivityOrder
- type ActivityOrderField
- type Cast
- type CastConnection
- type CastEdge
- type CastOrder
- type CastOrderField
- type Channel
- type ChannelConnection
- type ChannelEdge
- type ChannelGroup
- type Character
- type CharacterConnection
- type CharacterEdge
- type CharacterOrder
- type CharacterOrderField
- type Client
- func (c *Client) CreateEpisodeRecord(ctx context.Context, episodeID string, rating RatingState, comment *string, ...) (*HogeCreateEpisodeRecordPayload, error)
- func (c *Client) CreateWorkReview(ctx context.Context, workID string, body string, ratingOverall *RatingState, ...) (*HogeCreateWorkReviewPayload, error)
- func (c *Client) FetchUnwatchEpisodes(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*FetchUnwatchEpisodes, error)
- func (c *Client) FetchUserLibrary(ctx context.Context, states []StatusState, seasons []string, first int64, ...) (*FetchUserLibrary, error)
- func (c *Client) FetchWorkEpisodes(ctx context.Context, annictID int64, ...) (*FetchWorkEpisodes, error)
- func (c *Client) FetchWorkInfo(ctx context.Context, annictID int64, ...) (*FetchWorkInfo, error)
- func (c *Client) SearchWorksByKeyword(ctx context.Context, query string, seasons []string, first int64, ...) (*SearchWorksByKeyword, error)
- func (c *Client) UpdateWorkState(ctx context.Context, workID string, state StatusState, ...) (*HogeUpdateWorkStatePayload, error)
- type CreateEpisodeRecord_CreateRecord
- type CreateRecordInput
- type CreateRecordPayload
- type CreateReviewInput
- type CreateReviewPayload
- type CreateWorkReview_CreateReview
- type DeleteRecordInput
- type DeleteRecordPayload
- type DeleteReviewInput
- type DeleteReviewPayload
- type Episode
- type EpisodeConnection
- type EpisodeEdge
- type EpisodeFragment
- type EpisodeOrder
- type EpisodeOrderField
- type FetchUnwatchEpisodes
- type FetchUnwatchEpisodes_Viewer
- type FetchUnwatchEpisodes_Viewer_LibraryEntries
- type FetchUnwatchEpisodes_Viewer_LibraryEntries_Nodes_UnwatchLibraryEntryFragment_Work
- type FetchUserLibrary
- type FetchUserLibrary_Viewer
- type FetchUserLibrary_Viewer_LibraryEntries
- type FetchUserLibrary_Viewer_LibraryEntries_Nodes
- type FetchWorkEpisodes
- type FetchWorkEpisodes_SearchWorks
- type FetchWorkEpisodes_SearchWorks_Nodes_WorkEpisodesFragment_Episodes
- type FetchWorkInfo
- type FetchWorkInfo_SearchWorks
- type FetchWorkInfo_SearchWorks_Nodes_WorkInfoFragment_Image
- type FetchWorkInfo_SearchWorks_Nodes_WorkInfoFragment_WorkEpisodesFragment_Episodes
- type HogeCreateEpisodeRecordPayload
- type HogeCreateWorkReviewPayload
- type HogeUpdateWorkStatePayload
- type LibraryEntry
- type LibraryEntryConnection
- type LibraryEntryEdge
- type LibraryEntryOrder
- type LibraryEntryOrderField
- type Media
- type MultipleRecord
- type Mutation
- type Node
- type OrderDirection
- type Organization
- type OrganizationConnection
- type OrganizationEdge
- type OrganizationOrder
- type OrganizationOrderField
- type PageInfo
- type Person
- type PersonConnection
- type PersonEdge
- type PersonOrder
- type PersonOrderField
- type Prefecture
- type Program
- type ProgramConnection
- type ProgramEdge
- type ProgramOrder
- type ProgramOrderField
- type ProgramState
- type Query
- type RatingState
- type Record
- type RecordConnection
- type RecordEdge
- type RecordOrder
- type RecordOrderField
- type Review
- type ReviewConnection
- type ReviewEdge
- type ReviewOrder
- type ReviewOrderField
- type SearchWorksByKeyword
- type SearchWorksByKeyword_SearchWorks
- type SeasonName
- type Series
- type SeriesConnection
- type SeriesEdge
- type SeriesWorkConnection
- type SeriesWorkEdge
- type SeriesWorkOrder
- type SeriesWorkOrderField
- type Staff
- type StaffConnection
- type StaffEdge
- type StaffOrder
- type StaffOrderField
- type StaffResourceItem
- type Status
- type StatusState
- type UnwatchLibraryEntryFragment
- type UnwatchLibraryEntryFragment_Work
- type UpdateRecordInput
- type UpdateRecordPayload
- type UpdateReviewInput
- type UpdateReviewPayload
- type UpdateStatusInput
- type UpdateStatusPayload
- type UpdateWorkState_UpdateStatus
- type User
- type UserConnection
- type UserEdge
- type Work
- type WorkConnection
- type WorkEdge
- type WorkEpisodesFragment
- type WorkEpisodesFragment_Episodes
- type WorkFragment
- type WorkImage
- type WorkInfoFragment
- type WorkInfoFragment_Image
- type WorkInfoFragment_WorkEpisodesFragment_Episodes
- type WorkOrder
- type WorkOrderField
Constants ¶
const CreateEpisodeRecordDocument = `` /* 198-byte string literal not displayed */
const CreateWorkReviewDocument = `` /* 434-byte string literal not displayed */
const FetchUnwatchEpisodesDocument = `` /* 395-byte string literal not displayed */
const FetchUserLibraryDocument = `` /* 384-byte string literal not displayed */
const FetchWorkEpisodesDocument = `` /* 371-byte string literal not displayed */
const FetchWorkInfoDocument = `` /* 649-byte string literal not displayed */
const SearchWorksByKeywordDocument = `` /* 333-byte string literal not displayed */
const UpdateWorkStateDocument = `` /* 142-byte string literal not displayed */
Variables ¶
var AllActivityAction = []ActivityAction{ ActivityActionCreate, }
var AllActivityOrderField = []ActivityOrderField{ ActivityOrderFieldCreatedAt, }
var AllCastOrderField = []CastOrderField{ CastOrderFieldCreatedAt, CastOrderFieldSortNumber, }
var AllCharacterOrderField = []CharacterOrderField{ CharacterOrderFieldCreatedAt, CharacterOrderFieldFavoriteCharactersCount, }
var AllEpisodeOrderField = []EpisodeOrderField{ EpisodeOrderFieldCreatedAt, EpisodeOrderFieldSortNumber, }
var AllLibraryEntryOrderField = []LibraryEntryOrderField{ LibraryEntryOrderFieldLastTrackedAt, }
var AllMedia = []Media{ MediaTv, MediaOva, MediaMovie, MediaWeb, MediaOther, }
var AllOrderDirection = []OrderDirection{ OrderDirectionAsc, OrderDirectionDesc, }
var AllOrganizationOrderField = []OrganizationOrderField{ OrganizationOrderFieldCreatedAt, OrganizationOrderFieldFavoriteOrganizationsCount, }
var AllPersonOrderField = []PersonOrderField{ PersonOrderFieldCreatedAt, PersonOrderFieldFavoritePeopleCount, }
var AllProgramOrderField = []ProgramOrderField{ ProgramOrderFieldStartedAt, }
var AllProgramState = []ProgramState{ ProgramStatePublished, ProgramStateHidden, }
var AllRatingState = []RatingState{ RatingStateGreat, RatingStateGood, RatingStateAverage, RatingStateBad, }
var AllRecordOrderField = []RecordOrderField{ RecordOrderFieldCreatedAt, RecordOrderFieldLikesCount, }
var AllReviewOrderField = []ReviewOrderField{ ReviewOrderFieldCreatedAt, ReviewOrderFieldLikesCount, }
var AllSeasonName = []SeasonName{ SeasonNameWinter, SeasonNameSpring, SeasonNameSummer, SeasonNameAutumn, }
var AllSeriesWorkOrderField = []SeriesWorkOrderField{ SeriesWorkOrderFieldSeason, }
var AllStaffOrderField = []StaffOrderField{ StaffOrderFieldCreatedAt, StaffOrderFieldSortNumber, }
var AllStatusState = []StatusState{ StatusStateWannaWatch, StatusStateWatching, StatusStateWatched, StatusStateOnHold, StatusStateStopWatching, StatusStateNoState, }
var AllWorkOrderField = []WorkOrderField{ WorkOrderFieldCreatedAt, WorkOrderFieldSeason, WorkOrderFieldWatchersCount, }
Functions ¶
This section is empty.
Types ¶
type Activity ¶
type ActivityAction ¶
type ActivityAction string
const (
ActivityActionCreate ActivityAction = "CREATE"
)
func (ActivityAction) IsValid ¶
func (e ActivityAction) IsValid() bool
func (ActivityAction) MarshalGQL ¶
func (e ActivityAction) MarshalGQL(w io.Writer)
func (ActivityAction) String ¶
func (e ActivityAction) String() string
func (*ActivityAction) UnmarshalGQL ¶
func (e *ActivityAction) UnmarshalGQL(v interface{}) error
type ActivityConnection ¶
type ActivityConnection struct { // A list of edges. Edges []*ActivityEdge `json:"edges"` // A list of nodes. Nodes []*Activity `json:"nodes"` // Information to aid in pagination. PageInfo PageInfo `json:"pageInfo"` }
The connection type for Activity.
type ActivityEdge ¶
type ActivityEdge struct { Action ActivityAction `json:"action"` AnnictID int64 `json:"annictId"` // A cursor for use in pagination. Cursor string `json:"cursor"` Item ActivityItem `json:"item"` // Deprecated: Use `item` instead. Node ActivityItem `json:"node"` User User `json:"user"` }
An edge in a connection.
type ActivityItem ¶
type ActivityItem interface {
IsActivityItem()
}
type ActivityOrder ¶
type ActivityOrder struct { Field ActivityOrderField `json:"field"` Direction OrderDirection `json:"direction"` }
type ActivityOrderField ¶
type ActivityOrderField string
const (
ActivityOrderFieldCreatedAt ActivityOrderField = "CREATED_AT"
)
func (ActivityOrderField) IsValid ¶
func (e ActivityOrderField) IsValid() bool
func (ActivityOrderField) MarshalGQL ¶
func (e ActivityOrderField) MarshalGQL(w io.Writer)
func (ActivityOrderField) String ¶
func (e ActivityOrderField) String() string
func (*ActivityOrderField) UnmarshalGQL ¶
func (e *ActivityOrderField) UnmarshalGQL(v interface{}) error
type Cast ¶
type CastConnection ¶
type CastConnection struct { // A list of edges. Edges []*CastEdge `json:"edges"` // A list of nodes. Nodes []*Cast `json:"nodes"` // Information to aid in pagination. PageInfo PageInfo `json:"pageInfo"` }
The connection type for Cast.
type CastEdge ¶
type CastEdge struct { // A cursor for use in pagination. Cursor string `json:"cursor"` // The item at the end of the edge. Node *Cast `json:"node"` }
An edge in a connection.
type CastOrder ¶
type CastOrder struct { Field CastOrderField `json:"field"` Direction OrderDirection `json:"direction"` }
type CastOrderField ¶
type CastOrderField string
const ( CastOrderFieldCreatedAt CastOrderField = "CREATED_AT" CastOrderFieldSortNumber CastOrderField = "SORT_NUMBER" )
func (CastOrderField) IsValid ¶
func (e CastOrderField) IsValid() bool
func (CastOrderField) MarshalGQL ¶
func (e CastOrderField) MarshalGQL(w io.Writer)
func (CastOrderField) String ¶
func (e CastOrderField) String() string
func (*CastOrderField) UnmarshalGQL ¶
func (e *CastOrderField) UnmarshalGQL(v interface{}) error
type Channel ¶
type Channel struct { AnnictID int64 `json:"annictId"` ChannelGroup ChannelGroup `json:"channelGroup"` ID string `json:"id"` Name string `json:"name"` Programs *ProgramConnection `json:"programs"` Published bool `json:"published"` ScChid int64 `json:"scChid"` }
type ChannelConnection ¶
type ChannelConnection struct { // A list of edges. Edges []*ChannelEdge `json:"edges"` // A list of nodes. Nodes []*Channel `json:"nodes"` // Information to aid in pagination. PageInfo PageInfo `json:"pageInfo"` }
The connection type for Channel.
type ChannelEdge ¶
type ChannelEdge struct { // A cursor for use in pagination. Cursor string `json:"cursor"` // The item at the end of the edge. Node *Channel `json:"node"` }
An edge in a connection.
type ChannelGroup ¶
type ChannelGroup struct { AnnictID int64 `json:"annictId"` Channels *ChannelConnection `json:"channels"` ID string `json:"id"` Name string `json:"name"` SortNumber int64 `json:"sortNumber"` }
func (ChannelGroup) IsNode ¶
func (ChannelGroup) IsNode()
type Character ¶
type Character struct { Age string `json:"age"` AgeEn string `json:"ageEn"` AnnictID int64 `json:"annictId"` Birthday string `json:"birthday"` BirthdayEn string `json:"birthdayEn"` BloodType string `json:"bloodType"` BloodTypeEn string `json:"bloodTypeEn"` Description string `json:"description"` DescriptionEn string `json:"descriptionEn"` DescriptionSource string `json:"descriptionSource"` DescriptionSourceEn string `json:"descriptionSourceEn"` FavoriteCharactersCount int64 `json:"favoriteCharactersCount"` Height string `json:"height"` HeightEn string `json:"heightEn"` ID string `json:"id"` Name string `json:"name"` NameEn string `json:"nameEn"` NameKana string `json:"nameKana"` Nationality string `json:"nationality"` NationalityEn string `json:"nationalityEn"` Nickname string `json:"nickname"` NicknameEn string `json:"nicknameEn"` Occupation string `json:"occupation"` OccupationEn string `json:"occupationEn"` Series Series `json:"series"` Weight string `json:"weight"` WeightEn string `json:"weightEn"` }
type CharacterConnection ¶
type CharacterConnection struct { // A list of edges. Edges []*CharacterEdge `json:"edges"` // A list of nodes. Nodes []*Character `json:"nodes"` // Information to aid in pagination. PageInfo PageInfo `json:"pageInfo"` }
The connection type for Character.
type CharacterEdge ¶
type CharacterEdge struct { // A cursor for use in pagination. Cursor string `json:"cursor"` // The item at the end of the edge. Node *Character `json:"node"` }
An edge in a connection.
type CharacterOrder ¶
type CharacterOrder struct { Field CharacterOrderField `json:"field"` Direction OrderDirection `json:"direction"` }
type CharacterOrderField ¶
type CharacterOrderField string
const ( CharacterOrderFieldCreatedAt CharacterOrderField = "CREATED_AT" CharacterOrderFieldFavoriteCharactersCount CharacterOrderField = "FAVORITE_CHARACTERS_COUNT" )
func (CharacterOrderField) IsValid ¶
func (e CharacterOrderField) IsValid() bool
func (CharacterOrderField) MarshalGQL ¶
func (e CharacterOrderField) MarshalGQL(w io.Writer)
func (CharacterOrderField) String ¶
func (e CharacterOrderField) String() string
func (*CharacterOrderField) UnmarshalGQL ¶
func (e *CharacterOrderField) UnmarshalGQL(v interface{}) error
type Client ¶
func (*Client) CreateEpisodeRecord ¶
func (c *Client) CreateEpisodeRecord(ctx context.Context, episodeID string, rating RatingState, comment *string, interceptors ...clientv2.RequestInterceptor) (*HogeCreateEpisodeRecordPayload, error)
func (*Client) CreateWorkReview ¶
func (c *Client) CreateWorkReview(ctx context.Context, workID string, body string, ratingOverall *RatingState, ratingMovie *RatingState, ratingChara *RatingState, ratingStory *RatingState, ratingMusic *RatingState, interceptors ...clientv2.RequestInterceptor) (*HogeCreateWorkReviewPayload, error)
func (*Client) FetchUnwatchEpisodes ¶
func (c *Client) FetchUnwatchEpisodes(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*FetchUnwatchEpisodes, error)
func (*Client) FetchUserLibrary ¶
func (c *Client) FetchUserLibrary(ctx context.Context, states []StatusState, seasons []string, first int64, interceptors ...clientv2.RequestInterceptor) (*FetchUserLibrary, error)
func (*Client) FetchWorkEpisodes ¶
func (c *Client) FetchWorkEpisodes(ctx context.Context, annictID int64, interceptors ...clientv2.RequestInterceptor) (*FetchWorkEpisodes, error)
func (*Client) FetchWorkInfo ¶
func (c *Client) FetchWorkInfo(ctx context.Context, annictID int64, interceptors ...clientv2.RequestInterceptor) (*FetchWorkInfo, error)
func (*Client) SearchWorksByKeyword ¶
func (c *Client) SearchWorksByKeyword(ctx context.Context, query string, seasons []string, first int64, interceptors ...clientv2.RequestInterceptor) (*SearchWorksByKeyword, error)
func (*Client) UpdateWorkState ¶
func (c *Client) UpdateWorkState(ctx context.Context, workID string, state StatusState, interceptors ...clientv2.RequestInterceptor) (*HogeUpdateWorkStatePayload, error)
type CreateEpisodeRecord_CreateRecord ¶
type CreateEpisodeRecord_CreateRecord struct {
ClientMutationID *string "json:\"clientMutationId,omitempty\" graphql:\"clientMutationId\""
}
type CreateRecordInput ¶
type CreateRecordInput struct { EpisodeID string `json:"episodeId"` Comment *string `json:"comment,omitempty"` RatingState *RatingState `json:"ratingState,omitempty"` // A unique identifier for the client performing the mutation. ClientMutationID *string `json:"clientMutationId,omitempty"` }
Autogenerated input type of CreateRecord
type CreateRecordPayload ¶
type CreateRecordPayload struct { // A unique identifier for the client performing the mutation. ClientMutationID *string `json:"clientMutationId"` Record *Record `json:"record"` }
Autogenerated return type of CreateRecord
type CreateReviewInput ¶
type CreateReviewInput struct { WorkID string `json:"workId"` Title *string `json:"title,omitempty"` Body string `json:"body"` RatingOverallState *RatingState `json:"ratingOverallState,omitempty"` RatingAnimationState *RatingState `json:"ratingAnimationState,omitempty"` RatingMusicState *RatingState `json:"ratingMusicState,omitempty"` RatingStoryState *RatingState `json:"ratingStoryState,omitempty"` RatingCharacterState *RatingState `json:"ratingCharacterState,omitempty"` // A unique identifier for the client performing the mutation. ClientMutationID *string `json:"clientMutationId,omitempty"` }
Autogenerated input type of CreateReview
type CreateReviewPayload ¶
type CreateReviewPayload struct { // A unique identifier for the client performing the mutation. ClientMutationID *string `json:"clientMutationId"` Review *Review `json:"review"` }
Autogenerated return type of CreateReview
type CreateWorkReview_CreateReview ¶
type CreateWorkReview_CreateReview struct {
ClientMutationID *string "json:\"clientMutationId,omitempty\" graphql:\"clientMutationId\""
}
type DeleteRecordInput ¶
type DeleteRecordInput struct { RecordID string `json:"recordId"` // A unique identifier for the client performing the mutation. ClientMutationID *string `json:"clientMutationId,omitempty"` }
Autogenerated input type of DeleteRecord
type DeleteRecordPayload ¶
type DeleteRecordPayload struct { // A unique identifier for the client performing the mutation. ClientMutationID *string `json:"clientMutationId"` Episode *Episode `json:"episode"` }
Autogenerated return type of DeleteRecord
type DeleteReviewInput ¶
type DeleteReviewInput struct { ReviewID string `json:"reviewId"` // A unique identifier for the client performing the mutation. ClientMutationID *string `json:"clientMutationId,omitempty"` }
Autogenerated input type of DeleteReview
type DeleteReviewPayload ¶
type DeleteReviewPayload struct { // A unique identifier for the client performing the mutation. ClientMutationID *string `json:"clientMutationId"` Work *Work `json:"work"` }
Autogenerated return type of DeleteReview
type Episode ¶
type Episode struct { AnnictID int64 `json:"annictId"` ID string `json:"id"` NextEpisode *Episode `json:"nextEpisode"` Number *int64 `json:"number"` NumberText *string `json:"numberText"` PrevEpisode *Episode `json:"prevEpisode"` RecordCommentsCount int64 `json:"recordCommentsCount"` Records *RecordConnection `json:"records"` RecordsCount int64 `json:"recordsCount"` SatisfactionRate *float64 `json:"satisfactionRate"` SortNumber int64 `json:"sortNumber"` Title *string `json:"title"` ViewerDidTrack bool `json:"viewerDidTrack"` ViewerRecordsCount int64 `json:"viewerRecordsCount"` Work Work `json:"work"` }
An episode of a work
type EpisodeConnection ¶
type EpisodeConnection struct { // A list of edges. Edges []*EpisodeEdge `json:"edges"` // A list of nodes. Nodes []*Episode `json:"nodes"` // Information to aid in pagination. PageInfo PageInfo `json:"pageInfo"` }
The connection type for Episode.
type EpisodeEdge ¶
type EpisodeEdge struct { // A cursor for use in pagination. Cursor string `json:"cursor"` // The item at the end of the edge. Node *Episode `json:"node"` }
An edge in a connection.
type EpisodeFragment ¶
type EpisodeFragment struct { ID string "json:\"id\" graphql:\"id\"" Number *int64 "json:\"number,omitempty\" graphql:\"number\"" NumberText *string "json:\"numberText,omitempty\" graphql:\"numberText\"" Title *string "json:\"title,omitempty\" graphql:\"title\"" ViewerRecordsCount int64 "json:\"viewerRecordsCount\" graphql:\"viewerRecordsCount\"" }
type EpisodeOrder ¶
type EpisodeOrder struct { Field EpisodeOrderField `json:"field"` Direction OrderDirection `json:"direction"` }
type EpisodeOrderField ¶
type EpisodeOrderField string
const ( EpisodeOrderFieldCreatedAt EpisodeOrderField = "CREATED_AT" EpisodeOrderFieldSortNumber EpisodeOrderField = "SORT_NUMBER" )
func (EpisodeOrderField) IsValid ¶
func (e EpisodeOrderField) IsValid() bool
func (EpisodeOrderField) MarshalGQL ¶
func (e EpisodeOrderField) MarshalGQL(w io.Writer)
func (EpisodeOrderField) String ¶
func (e EpisodeOrderField) String() string
func (*EpisodeOrderField) UnmarshalGQL ¶
func (e *EpisodeOrderField) UnmarshalGQL(v interface{}) error
type FetchUnwatchEpisodes ¶
type FetchUnwatchEpisodes struct {
Viewer *FetchUnwatchEpisodes_Viewer "json:\"viewer,omitempty\" graphql:\"viewer\""
}
type FetchUnwatchEpisodes_Viewer ¶
type FetchUnwatchEpisodes_Viewer struct {
LibraryEntries *FetchUnwatchEpisodes_Viewer_LibraryEntries "json:\"libraryEntries,omitempty\" graphql:\"libraryEntries\""
}
type FetchUnwatchEpisodes_Viewer_LibraryEntries ¶
type FetchUnwatchEpisodes_Viewer_LibraryEntries struct {
Nodes []*UnwatchLibraryEntryFragment "json:\"nodes,omitempty\" graphql:\"nodes\""
}
type FetchUnwatchEpisodes_Viewer_LibraryEntries_Nodes_UnwatchLibraryEntryFragment_Work ¶
type FetchUnwatchEpisodes_Viewer_LibraryEntries_Nodes_UnwatchLibraryEntryFragment_Work struct {
Title string "json:\"title\" graphql:\"title\""
}
type FetchUserLibrary ¶
type FetchUserLibrary struct {
Viewer *FetchUserLibrary_Viewer "json:\"viewer,omitempty\" graphql:\"viewer\""
}
type FetchUserLibrary_Viewer ¶
type FetchUserLibrary_Viewer struct {
LibraryEntries *FetchUserLibrary_Viewer_LibraryEntries "json:\"libraryEntries,omitempty\" graphql:\"libraryEntries\""
}
type FetchUserLibrary_Viewer_LibraryEntries ¶
type FetchUserLibrary_Viewer_LibraryEntries struct {
Nodes []*FetchUserLibrary_Viewer_LibraryEntries_Nodes "json:\"nodes,omitempty\" graphql:\"nodes\""
}
type FetchUserLibrary_Viewer_LibraryEntries_Nodes ¶
type FetchUserLibrary_Viewer_LibraryEntries_Nodes struct {
Work *WorkFragment "json:\"work\" graphql:\"work\""
}
type FetchWorkEpisodes ¶
type FetchWorkEpisodes struct {
SearchWorks *FetchWorkEpisodes_SearchWorks "json:\"searchWorks,omitempty\" graphql:\"searchWorks\""
}
type FetchWorkEpisodes_SearchWorks ¶
type FetchWorkEpisodes_SearchWorks struct {
Nodes []*WorkEpisodesFragment "json:\"nodes,omitempty\" graphql:\"nodes\""
}
type FetchWorkEpisodes_SearchWorks_Nodes_WorkEpisodesFragment_Episodes ¶
type FetchWorkEpisodes_SearchWorks_Nodes_WorkEpisodesFragment_Episodes struct {
Nodes []*EpisodeFragment "json:\"nodes,omitempty\" graphql:\"nodes\""
}
type FetchWorkInfo ¶
type FetchWorkInfo struct {
SearchWorks *FetchWorkInfo_SearchWorks "json:\"searchWorks,omitempty\" graphql:\"searchWorks\""
}
type FetchWorkInfo_SearchWorks ¶
type FetchWorkInfo_SearchWorks struct {
Nodes []*WorkInfoFragment "json:\"nodes,omitempty\" graphql:\"nodes\""
}
type FetchWorkInfo_SearchWorks_Nodes_WorkInfoFragment_Image ¶
type FetchWorkInfo_SearchWorks_Nodes_WorkInfoFragment_Image struct { Copyright *string "json:\"copyright,omitempty\" graphql:\"copyright\"" RecommendedImageURL *string "json:\"recommendedImageUrl,omitempty\" graphql:\"recommendedImageUrl\"" FacebookOgImageURL *string "json:\"facebookOgImageUrl,omitempty\" graphql:\"facebookOgImageUrl\"" }
type FetchWorkInfo_SearchWorks_Nodes_WorkInfoFragment_WorkEpisodesFragment_Episodes ¶
type FetchWorkInfo_SearchWorks_Nodes_WorkInfoFragment_WorkEpisodesFragment_Episodes struct {
Nodes []*EpisodeFragment "json:\"nodes,omitempty\" graphql:\"nodes\""
}
type HogeCreateEpisodeRecordPayload ¶
type HogeCreateEpisodeRecordPayload struct {
CreateRecord *CreateEpisodeRecord_CreateRecord "json:\"createRecord,omitempty\" graphql:\"createRecord\""
}
type HogeCreateWorkReviewPayload ¶
type HogeCreateWorkReviewPayload struct {
CreateReview *CreateWorkReview_CreateReview "json:\"createReview,omitempty\" graphql:\"createReview\""
}
type HogeUpdateWorkStatePayload ¶
type HogeUpdateWorkStatePayload struct {
UpdateStatus *UpdateWorkState_UpdateStatus "json:\"updateStatus,omitempty\" graphql:\"updateStatus\""
}
type LibraryEntry ¶
type LibraryEntry struct { ID string `json:"id"` NextEpisode *Episode `json:"nextEpisode"` NextProgram *Program `json:"nextProgram"` Note string `json:"note"` Status *Status `json:"status"` User User `json:"user"` Work Work `json:"work"` }
func (LibraryEntry) IsNode ¶
func (LibraryEntry) IsNode()
type LibraryEntryConnection ¶
type LibraryEntryConnection struct { // A list of edges. Edges []*LibraryEntryEdge `json:"edges"` // A list of nodes. Nodes []*LibraryEntry `json:"nodes"` // Information to aid in pagination. PageInfo PageInfo `json:"pageInfo"` }
The connection type for LibraryEntry.
type LibraryEntryEdge ¶
type LibraryEntryEdge struct { // A cursor for use in pagination. Cursor string `json:"cursor"` // The item at the end of the edge. Node *LibraryEntry `json:"node"` }
An edge in a connection.
type LibraryEntryOrder ¶
type LibraryEntryOrder struct { Field LibraryEntryOrderField `json:"field"` Direction OrderDirection `json:"direction"` }
type LibraryEntryOrderField ¶
type LibraryEntryOrderField string
const ( // 最後に記録またはスキップした日時 LibraryEntryOrderFieldLastTrackedAt LibraryEntryOrderField = "LAST_TRACKED_AT" )
func (LibraryEntryOrderField) IsValid ¶
func (e LibraryEntryOrderField) IsValid() bool
func (LibraryEntryOrderField) MarshalGQL ¶
func (e LibraryEntryOrderField) MarshalGQL(w io.Writer)
func (LibraryEntryOrderField) String ¶
func (e LibraryEntryOrderField) String() string
func (*LibraryEntryOrderField) UnmarshalGQL ¶
func (e *LibraryEntryOrderField) UnmarshalGQL(v interface{}) error
type Media ¶
type Media string
Media of anime
func (Media) MarshalGQL ¶
func (*Media) UnmarshalGQL ¶
type MultipleRecord ¶
type MultipleRecord struct { AnnictID int64 `json:"annictId"` CreatedAt string `json:"createdAt"` ID string `json:"id"` Records *RecordConnection `json:"records"` User User `json:"user"` Work Work `json:"work"` }
func (MultipleRecord) IsActivityItem ¶
func (MultipleRecord) IsActivityItem()
func (MultipleRecord) IsNode ¶
func (MultipleRecord) IsNode()
type Mutation ¶
type Mutation struct { CreateRecord *CreateRecordPayload "json:\"createRecord,omitempty\" graphql:\"createRecord\"" CreateReview *CreateReviewPayload "json:\"createReview,omitempty\" graphql:\"createReview\"" DeleteRecord *DeleteRecordPayload "json:\"deleteRecord,omitempty\" graphql:\"deleteRecord\"" DeleteReview *DeleteReviewPayload "json:\"deleteReview,omitempty\" graphql:\"deleteReview\"" UpdateRecord *UpdateRecordPayload "json:\"updateRecord,omitempty\" graphql:\"updateRecord\"" UpdateReview *UpdateReviewPayload "json:\"updateReview,omitempty\" graphql:\"updateReview\"" UpdateStatus *UpdateStatusPayload "json:\"updateStatus,omitempty\" graphql:\"updateStatus\"" }
type Node ¶
type Node interface { IsNode() // ID of the object. GetID() string }
An object with an ID.
type OrderDirection ¶
type OrderDirection string
const ( OrderDirectionAsc OrderDirection = "ASC" OrderDirectionDesc OrderDirection = "DESC" )
func (OrderDirection) IsValid ¶
func (e OrderDirection) IsValid() bool
func (OrderDirection) MarshalGQL ¶
func (e OrderDirection) MarshalGQL(w io.Writer)
func (OrderDirection) String ¶
func (e OrderDirection) String() string
func (*OrderDirection) UnmarshalGQL ¶
func (e *OrderDirection) UnmarshalGQL(v interface{}) error
type Organization ¶
type Organization struct { AnnictID int64 `json:"annictId"` FavoriteOrganizationsCount int64 `json:"favoriteOrganizationsCount"` ID string `json:"id"` Name string `json:"name"` NameEn string `json:"nameEn"` NameKana string `json:"nameKana"` StaffsCount int64 `json:"staffsCount"` TwitterUsername string `json:"twitterUsername"` TwitterUsernameEn string `json:"twitterUsernameEn"` URL string `json:"url"` URLEn string `json:"urlEn"` WikipediaURL string `json:"wikipediaUrl"` WikipediaURLEn string `json:"wikipediaUrlEn"` }
func (Organization) IsNode ¶
func (Organization) IsNode()
func (Organization) IsStaffResourceItem ¶
func (Organization) IsStaffResourceItem()
type OrganizationConnection ¶
type OrganizationConnection struct { // A list of edges. Edges []*OrganizationEdge `json:"edges"` // A list of nodes. Nodes []*Organization `json:"nodes"` // Information to aid in pagination. PageInfo PageInfo `json:"pageInfo"` }
The connection type for Organization.
type OrganizationEdge ¶
type OrganizationEdge struct { // A cursor for use in pagination. Cursor string `json:"cursor"` // The item at the end of the edge. Node *Organization `json:"node"` }
An edge in a connection.
type OrganizationOrder ¶
type OrganizationOrder struct { Field OrganizationOrderField `json:"field"` Direction OrderDirection `json:"direction"` }
type OrganizationOrderField ¶
type OrganizationOrderField string
const ( OrganizationOrderFieldCreatedAt OrganizationOrderField = "CREATED_AT" OrganizationOrderFieldFavoriteOrganizationsCount OrganizationOrderField = "FAVORITE_ORGANIZATIONS_COUNT" )
func (OrganizationOrderField) IsValid ¶
func (e OrganizationOrderField) IsValid() bool
func (OrganizationOrderField) MarshalGQL ¶
func (e OrganizationOrderField) MarshalGQL(w io.Writer)
func (OrganizationOrderField) String ¶
func (e OrganizationOrderField) String() string
func (*OrganizationOrderField) UnmarshalGQL ¶
func (e *OrganizationOrderField) UnmarshalGQL(v interface{}) error
type PageInfo ¶
type PageInfo struct { // When paginating forwards, the cursor to continue. EndCursor *string `json:"endCursor"` // When paginating forwards, are there more items? HasNextPage bool `json:"hasNextPage"` // When paginating backwards, are there more items? HasPreviousPage bool `json:"hasPreviousPage"` // When paginating backwards, the cursor to continue. StartCursor *string `json:"startCursor"` }
Information about pagination in a connection.
type Person ¶
type Person struct { AnnictID int64 `json:"annictId"` Birthday string `json:"birthday"` BloodType string `json:"bloodType"` CastsCount int64 `json:"castsCount"` FavoritePeopleCount int64 `json:"favoritePeopleCount"` GenderText string `json:"genderText"` Height string `json:"height"` ID string `json:"id"` Name string `json:"name"` NameEn string `json:"nameEn"` NameKana string `json:"nameKana"` Nickname string `json:"nickname"` NicknameEn string `json:"nicknameEn"` Prefecture Prefecture `json:"prefecture"` StaffsCount int64 `json:"staffsCount"` TwitterUsername string `json:"twitterUsername"` TwitterUsernameEn string `json:"twitterUsernameEn"` URL string `json:"url"` URLEn string `json:"urlEn"` WikipediaURL string `json:"wikipediaUrl"` WikipediaURLEn string `json:"wikipediaUrlEn"` }
func (Person) IsStaffResourceItem ¶
func (Person) IsStaffResourceItem()
type PersonConnection ¶
type PersonConnection struct { // A list of edges. Edges []*PersonEdge `json:"edges"` // A list of nodes. Nodes []*Person `json:"nodes"` // Information to aid in pagination. PageInfo PageInfo `json:"pageInfo"` }
The connection type for Person.
type PersonEdge ¶
type PersonEdge struct { // A cursor for use in pagination. Cursor string `json:"cursor"` // The item at the end of the edge. Node *Person `json:"node"` }
An edge in a connection.
type PersonOrder ¶
type PersonOrder struct { Field PersonOrderField `json:"field"` Direction OrderDirection `json:"direction"` }
type PersonOrderField ¶
type PersonOrderField string
const ( PersonOrderFieldCreatedAt PersonOrderField = "CREATED_AT" PersonOrderFieldFavoritePeopleCount PersonOrderField = "FAVORITE_PEOPLE_COUNT" )
func (PersonOrderField) IsValid ¶
func (e PersonOrderField) IsValid() bool
func (PersonOrderField) MarshalGQL ¶
func (e PersonOrderField) MarshalGQL(w io.Writer)
func (PersonOrderField) String ¶
func (e PersonOrderField) String() string
func (*PersonOrderField) UnmarshalGQL ¶
func (e *PersonOrderField) UnmarshalGQL(v interface{}) error
type Prefecture ¶
type Prefecture struct { AnnictID int64 `json:"annictId"` ID string `json:"id"` Name string `json:"name"` }
func (Prefecture) IsNode ¶
func (Prefecture) IsNode()
type Program ¶
type Program struct { AnnictID int64 `json:"annictId"` Channel Channel `json:"channel"` Episode Episode `json:"episode"` ID string `json:"id"` Rebroadcast bool `json:"rebroadcast"` ScPid *int64 `json:"scPid"` StartedAt string `json:"startedAt"` State ProgramState `json:"state"` Work Work `json:"work"` }
type ProgramConnection ¶
type ProgramConnection struct { // A list of edges. Edges []*ProgramEdge `json:"edges"` // A list of nodes. Nodes []*Program `json:"nodes"` // Information to aid in pagination. PageInfo PageInfo `json:"pageInfo"` }
The connection type for Program.
type ProgramEdge ¶
type ProgramEdge struct { // A cursor for use in pagination. Cursor string `json:"cursor"` // The item at the end of the edge. Node *Program `json:"node"` }
An edge in a connection.
type ProgramOrder ¶
type ProgramOrder struct { Field ProgramOrderField `json:"field"` Direction OrderDirection `json:"direction"` }
type ProgramOrderField ¶
type ProgramOrderField string
const (
ProgramOrderFieldStartedAt ProgramOrderField = "STARTED_AT"
)
func (ProgramOrderField) IsValid ¶
func (e ProgramOrderField) IsValid() bool
func (ProgramOrderField) MarshalGQL ¶
func (e ProgramOrderField) MarshalGQL(w io.Writer)
func (ProgramOrderField) String ¶
func (e ProgramOrderField) String() string
func (*ProgramOrderField) UnmarshalGQL ¶
func (e *ProgramOrderField) UnmarshalGQL(v interface{}) error
type ProgramState ¶
type ProgramState string
const ( ProgramStatePublished ProgramState = "PUBLISHED" ProgramStateHidden ProgramState = "HIDDEN" )
func (ProgramState) IsValid ¶
func (e ProgramState) IsValid() bool
func (ProgramState) MarshalGQL ¶
func (e ProgramState) MarshalGQL(w io.Writer)
func (ProgramState) String ¶
func (e ProgramState) String() string
func (*ProgramState) UnmarshalGQL ¶
func (e *ProgramState) UnmarshalGQL(v interface{}) error
type Query ¶
type Query struct { Node Node "json:\"node,omitempty\" graphql:\"node\"" Nodes []Node "json:\"nodes\" graphql:\"nodes\"" SearchCharacters *CharacterConnection "json:\"searchCharacters,omitempty\" graphql:\"searchCharacters\"" SearchEpisodes *EpisodeConnection "json:\"searchEpisodes,omitempty\" graphql:\"searchEpisodes\"" SearchOrganizations *OrganizationConnection "json:\"searchOrganizations,omitempty\" graphql:\"searchOrganizations\"" SearchPeople *PersonConnection "json:\"searchPeople,omitempty\" graphql:\"searchPeople\"" SearchWorks *WorkConnection "json:\"searchWorks,omitempty\" graphql:\"searchWorks\"" User *User "json:\"user,omitempty\" graphql:\"user\"" Viewer *User "json:\"viewer,omitempty\" graphql:\"viewer\"" }
type RatingState ¶
type RatingState string
const ( RatingStateGreat RatingState = "GREAT" RatingStateGood RatingState = "GOOD" RatingStateAverage RatingState = "AVERAGE" RatingStateBad RatingState = "BAD" )
func (RatingState) IsValid ¶
func (e RatingState) IsValid() bool
func (RatingState) MarshalGQL ¶
func (e RatingState) MarshalGQL(w io.Writer)
func (RatingState) String ¶
func (e RatingState) String() string
func (*RatingState) UnmarshalGQL ¶
func (e *RatingState) UnmarshalGQL(v interface{}) error
type Record ¶
type Record struct { AnnictID int64 `json:"annictId"` Comment *string `json:"comment"` CommentsCount int64 `json:"commentsCount"` CreatedAt string `json:"createdAt"` Episode Episode `json:"episode"` FacebookClickCount int64 `json:"facebookClickCount"` ID string `json:"id"` LikesCount int64 `json:"likesCount"` Modified bool `json:"modified"` Rating *float64 `json:"rating"` RatingState *RatingState `json:"ratingState"` TwitterClickCount int64 `json:"twitterClickCount"` UpdatedAt string `json:"updatedAt"` User User `json:"user"` Work Work `json:"work"` }
func (Record) IsActivityItem ¶
func (Record) IsActivityItem()
type RecordConnection ¶
type RecordConnection struct { // A list of edges. Edges []*RecordEdge `json:"edges"` // A list of nodes. Nodes []*Record `json:"nodes"` // Information to aid in pagination. PageInfo PageInfo `json:"pageInfo"` }
The connection type for Record.
type RecordEdge ¶
type RecordEdge struct { // A cursor for use in pagination. Cursor string `json:"cursor"` // The item at the end of the edge. Node *Record `json:"node"` }
An edge in a connection.
type RecordOrder ¶
type RecordOrder struct { Field RecordOrderField `json:"field"` Direction OrderDirection `json:"direction"` }
type RecordOrderField ¶
type RecordOrderField string
const ( RecordOrderFieldCreatedAt RecordOrderField = "CREATED_AT" RecordOrderFieldLikesCount RecordOrderField = "LIKES_COUNT" )
func (RecordOrderField) IsValid ¶
func (e RecordOrderField) IsValid() bool
func (RecordOrderField) MarshalGQL ¶
func (e RecordOrderField) MarshalGQL(w io.Writer)
func (RecordOrderField) String ¶
func (e RecordOrderField) String() string
func (*RecordOrderField) UnmarshalGQL ¶
func (e *RecordOrderField) UnmarshalGQL(v interface{}) error
type Review ¶
type Review struct { AnnictID int64 `json:"annictId"` Body string `json:"body"` CreatedAt string `json:"createdAt"` ID string `json:"id"` ImpressionsCount int64 `json:"impressionsCount"` LikesCount int64 `json:"likesCount"` ModifiedAt *string `json:"modifiedAt"` RatingAnimationState *RatingState `json:"ratingAnimationState"` RatingCharacterState *RatingState `json:"ratingCharacterState"` RatingMusicState *RatingState `json:"ratingMusicState"` RatingOverallState *RatingState `json:"ratingOverallState"` RatingStoryState *RatingState `json:"ratingStoryState"` Title *string `json:"title"` UpdatedAt string `json:"updatedAt"` User User `json:"user"` Work Work `json:"work"` }
func (Review) IsActivityItem ¶
func (Review) IsActivityItem()
type ReviewConnection ¶
type ReviewConnection struct { // A list of edges. Edges []*ReviewEdge `json:"edges"` // A list of nodes. Nodes []*Review `json:"nodes"` // Information to aid in pagination. PageInfo PageInfo `json:"pageInfo"` }
The connection type for Review.
type ReviewEdge ¶
type ReviewEdge struct { // A cursor for use in pagination. Cursor string `json:"cursor"` // The item at the end of the edge. Node *Review `json:"node"` }
An edge in a connection.
type ReviewOrder ¶
type ReviewOrder struct { Field ReviewOrderField `json:"field"` Direction OrderDirection `json:"direction"` }
type ReviewOrderField ¶
type ReviewOrderField string
const ( ReviewOrderFieldCreatedAt ReviewOrderField = "CREATED_AT" ReviewOrderFieldLikesCount ReviewOrderField = "LIKES_COUNT" )
func (ReviewOrderField) IsValid ¶
func (e ReviewOrderField) IsValid() bool
func (ReviewOrderField) MarshalGQL ¶
func (e ReviewOrderField) MarshalGQL(w io.Writer)
func (ReviewOrderField) String ¶
func (e ReviewOrderField) String() string
func (*ReviewOrderField) UnmarshalGQL ¶
func (e *ReviewOrderField) UnmarshalGQL(v interface{}) error
type SearchWorksByKeyword ¶
type SearchWorksByKeyword struct {
SearchWorks *SearchWorksByKeyword_SearchWorks "json:\"searchWorks,omitempty\" graphql:\"searchWorks\""
}
type SearchWorksByKeyword_SearchWorks ¶
type SearchWorksByKeyword_SearchWorks struct {
Nodes []*WorkFragment "json:\"nodes,omitempty\" graphql:\"nodes\""
}
type SeasonName ¶
type SeasonName string
Season name
const ( SeasonNameWinter SeasonName = "WINTER" SeasonNameSpring SeasonName = "SPRING" SeasonNameSummer SeasonName = "SUMMER" SeasonNameAutumn SeasonName = "AUTUMN" )
func (SeasonName) IsValid ¶
func (e SeasonName) IsValid() bool
func (SeasonName) MarshalGQL ¶
func (e SeasonName) MarshalGQL(w io.Writer)
func (SeasonName) String ¶
func (e SeasonName) String() string
func (*SeasonName) UnmarshalGQL ¶
func (e *SeasonName) UnmarshalGQL(v interface{}) error
type Series ¶
type SeriesConnection ¶
type SeriesConnection struct { // A list of edges. Edges []*SeriesEdge `json:"edges"` // A list of nodes. Nodes []*Series `json:"nodes"` // Information to aid in pagination. PageInfo PageInfo `json:"pageInfo"` }
The connection type for Series.
type SeriesEdge ¶
type SeriesEdge struct { // A cursor for use in pagination. Cursor string `json:"cursor"` // The item at the end of the edge. Node *Series `json:"node"` }
An edge in a connection.
type SeriesWorkConnection ¶
type SeriesWorkConnection struct { // A list of edges. Edges []*SeriesWorkEdge `json:"edges"` // A list of nodes. Nodes []*Work `json:"nodes"` // Information to aid in pagination. PageInfo PageInfo `json:"pageInfo"` }
The connection type for Work.
type SeriesWorkEdge ¶
type SeriesWorkEdge struct { // A cursor for use in pagination. Cursor string `json:"cursor"` Item Work `json:"item"` // Deprecated: Use `item` instead. Node Work `json:"node"` Summary *string `json:"summary"` SummaryEn *string `json:"summaryEn"` }
An edge in a connection.
type SeriesWorkOrder ¶
type SeriesWorkOrder struct { Field SeriesWorkOrderField `json:"field"` Direction OrderDirection `json:"direction"` }
type SeriesWorkOrderField ¶
type SeriesWorkOrderField string
const (
SeriesWorkOrderFieldSeason SeriesWorkOrderField = "SEASON"
)
func (SeriesWorkOrderField) IsValid ¶
func (e SeriesWorkOrderField) IsValid() bool
func (SeriesWorkOrderField) MarshalGQL ¶
func (e SeriesWorkOrderField) MarshalGQL(w io.Writer)
func (SeriesWorkOrderField) String ¶
func (e SeriesWorkOrderField) String() string
func (*SeriesWorkOrderField) UnmarshalGQL ¶
func (e *SeriesWorkOrderField) UnmarshalGQL(v interface{}) error
type Staff ¶
type Staff struct { AnnictID int64 `json:"annictId"` ID string `json:"id"` Name string `json:"name"` NameEn string `json:"nameEn"` Resource StaffResourceItem `json:"resource"` RoleOther string `json:"roleOther"` RoleOtherEn string `json:"roleOtherEn"` RoleText string `json:"roleText"` SortNumber int64 `json:"sortNumber"` Work Work `json:"work"` }
type StaffConnection ¶
type StaffConnection struct { // A list of edges. Edges []*StaffEdge `json:"edges"` // A list of nodes. Nodes []*Staff `json:"nodes"` // Information to aid in pagination. PageInfo PageInfo `json:"pageInfo"` }
The connection type for Staff.
type StaffEdge ¶
type StaffEdge struct { // A cursor for use in pagination. Cursor string `json:"cursor"` // The item at the end of the edge. Node *Staff `json:"node"` }
An edge in a connection.
type StaffOrder ¶
type StaffOrder struct { Field StaffOrderField `json:"field"` Direction OrderDirection `json:"direction"` }
type StaffOrderField ¶
type StaffOrderField string
const ( StaffOrderFieldCreatedAt StaffOrderField = "CREATED_AT" StaffOrderFieldSortNumber StaffOrderField = "SORT_NUMBER" )
func (StaffOrderField) IsValid ¶
func (e StaffOrderField) IsValid() bool
func (StaffOrderField) MarshalGQL ¶
func (e StaffOrderField) MarshalGQL(w io.Writer)
func (StaffOrderField) String ¶
func (e StaffOrderField) String() string
func (*StaffOrderField) UnmarshalGQL ¶
func (e *StaffOrderField) UnmarshalGQL(v interface{}) error
type StaffResourceItem ¶
type StaffResourceItem interface {
IsStaffResourceItem()
}
type Status ¶
type Status struct { AnnictID int64 `json:"annictId"` CreatedAt string `json:"createdAt"` ID string `json:"id"` LikesCount int64 `json:"likesCount"` State StatusState `json:"state"` User User `json:"user"` Work Work `json:"work"` }
func (Status) IsActivityItem ¶
func (Status) IsActivityItem()
type StatusState ¶
type StatusState string
const ( StatusStateWannaWatch StatusState = "WANNA_WATCH" StatusStateWatching StatusState = "WATCHING" StatusStateWatched StatusState = "WATCHED" StatusStateOnHold StatusState = "ON_HOLD" StatusStateStopWatching StatusState = "STOP_WATCHING" StatusStateNoState StatusState = "NO_STATE" )
func (StatusState) IsValid ¶
func (e StatusState) IsValid() bool
func (StatusState) MarshalGQL ¶
func (e StatusState) MarshalGQL(w io.Writer)
func (StatusState) String ¶
func (e StatusState) String() string
func (*StatusState) UnmarshalGQL ¶
func (e *StatusState) UnmarshalGQL(v interface{}) error
type UnwatchLibraryEntryFragment ¶
type UnwatchLibraryEntryFragment struct { Work UnwatchLibraryEntryFragment_Work "json:\"work\" graphql:\"work\"" NextEpisode *EpisodeFragment "json:\"nextEpisode,omitempty\" graphql:\"nextEpisode\"" }
type UnwatchLibraryEntryFragment_Work ¶
type UnwatchLibraryEntryFragment_Work struct {
Title string "json:\"title\" graphql:\"title\""
}
type UpdateRecordInput ¶
type UpdateRecordInput struct { RecordID string `json:"recordId"` Comment *string `json:"comment,omitempty"` RatingState *RatingState `json:"ratingState,omitempty"` // A unique identifier for the client performing the mutation. ClientMutationID *string `json:"clientMutationId,omitempty"` }
Autogenerated input type of UpdateRecord
type UpdateRecordPayload ¶
type UpdateRecordPayload struct { // A unique identifier for the client performing the mutation. ClientMutationID *string `json:"clientMutationId"` Record *Record `json:"record"` }
Autogenerated return type of UpdateRecord
type UpdateReviewInput ¶
type UpdateReviewInput struct { ReviewID string `json:"reviewId"` Title *string `json:"title,omitempty"` Body string `json:"body"` RatingOverallState RatingState `json:"ratingOverallState"` RatingAnimationState RatingState `json:"ratingAnimationState"` RatingMusicState RatingState `json:"ratingMusicState"` RatingStoryState RatingState `json:"ratingStoryState"` RatingCharacterState RatingState `json:"ratingCharacterState"` // A unique identifier for the client performing the mutation. ClientMutationID *string `json:"clientMutationId,omitempty"` }
Autogenerated input type of UpdateReview
type UpdateReviewPayload ¶
type UpdateReviewPayload struct { // A unique identifier for the client performing the mutation. ClientMutationID *string `json:"clientMutationId"` Review *Review `json:"review"` }
Autogenerated return type of UpdateReview
type UpdateStatusInput ¶
type UpdateStatusInput struct { WorkID string `json:"workId"` State StatusState `json:"state"` // A unique identifier for the client performing the mutation. ClientMutationID *string `json:"clientMutationId,omitempty"` }
Autogenerated input type of UpdateStatus
type UpdateStatusPayload ¶
type UpdateStatusPayload struct { // A unique identifier for the client performing the mutation. ClientMutationID *string `json:"clientMutationId"` Work *Work `json:"work"` }
Autogenerated return type of UpdateStatus
type UpdateWorkState_UpdateStatus ¶
type UpdateWorkState_UpdateStatus struct {
ClientMutationID *string "json:\"clientMutationId,omitempty\" graphql:\"clientMutationId\""
}
type User ¶
type User struct { Activities *ActivityConnection `json:"activities"` AnnictID int64 `json:"annictId"` AvatarURL *string `json:"avatarUrl"` BackgroundImageURL *string `json:"backgroundImageUrl"` CreatedAt string `json:"createdAt"` Description string `json:"description"` Email *string `json:"email"` Followers *UserConnection `json:"followers"` FollowersCount int64 `json:"followersCount"` Following *UserConnection `json:"following"` FollowingActivities *ActivityConnection `json:"followingActivities"` FollowingsCount int64 `json:"followingsCount"` ID string `json:"id"` LibraryEntries *LibraryEntryConnection `json:"libraryEntries"` Name string `json:"name"` NotificationsCount *int64 `json:"notificationsCount"` OnHoldCount int64 `json:"onHoldCount"` Programs *ProgramConnection `json:"programs"` Records *RecordConnection `json:"records"` RecordsCount int64 `json:"recordsCount"` StopWatchingCount int64 `json:"stopWatchingCount"` URL *string `json:"url"` Username string `json:"username"` ViewerCanFollow bool `json:"viewerCanFollow"` ViewerIsFollowing bool `json:"viewerIsFollowing"` WannaWatchCount int64 `json:"wannaWatchCount"` WatchedCount int64 `json:"watchedCount"` WatchingCount int64 `json:"watchingCount"` Works *WorkConnection `json:"works"` }
type UserConnection ¶
type UserConnection struct { // A list of edges. Edges []*UserEdge `json:"edges"` // A list of nodes. Nodes []*User `json:"nodes"` // Information to aid in pagination. PageInfo PageInfo `json:"pageInfo"` }
The connection type for User.
type UserEdge ¶
type UserEdge struct { // A cursor for use in pagination. Cursor string `json:"cursor"` // The item at the end of the edge. Node *User `json:"node"` }
An edge in a connection.
type Work ¶
type Work struct { AnnictID int64 `json:"annictId"` Casts *CastConnection `json:"casts"` Episodes *EpisodeConnection `json:"episodes"` EpisodesCount int64 `json:"episodesCount"` ID string `json:"id"` Image *WorkImage `json:"image"` MalAnimeID *string `json:"malAnimeId"` Media Media `json:"media"` NoEpisodes bool `json:"noEpisodes"` OfficialSiteURL *string `json:"officialSiteUrl"` OfficialSiteURLEn *string `json:"officialSiteUrlEn"` Programs *ProgramConnection `json:"programs"` Reviews *ReviewConnection `json:"reviews"` ReviewsCount int64 `json:"reviewsCount"` SatisfactionRate *float64 `json:"satisfactionRate"` SeasonName *SeasonName `json:"seasonName"` SeasonYear *int64 `json:"seasonYear"` SeriesList *SeriesConnection `json:"seriesList"` Staffs *StaffConnection `json:"staffs"` SyobocalTid *int64 `json:"syobocalTid"` Title string `json:"title"` TitleEn *string `json:"titleEn"` TitleKana *string `json:"titleKana"` TitleRo *string `json:"titleRo"` TwitterHashtag *string `json:"twitterHashtag"` TwitterUsername *string `json:"twitterUsername"` ViewerStatusState *StatusState `json:"viewerStatusState"` WatchersCount int64 `json:"watchersCount"` WikipediaURL *string `json:"wikipediaUrl"` WikipediaURLEn *string `json:"wikipediaUrlEn"` }
An anime title
type WorkConnection ¶
type WorkConnection struct { // A list of edges. Edges []*WorkEdge `json:"edges"` // A list of nodes. Nodes []*Work `json:"nodes"` // Information to aid in pagination. PageInfo PageInfo `json:"pageInfo"` }
The connection type for Work.
type WorkEdge ¶
type WorkEdge struct { // A cursor for use in pagination. Cursor string `json:"cursor"` // The item at the end of the edge. Node *Work `json:"node"` }
An edge in a connection.
type WorkEpisodesFragment ¶
type WorkEpisodesFragment struct { Episodes *WorkEpisodesFragment_Episodes "json:\"episodes,omitempty\" graphql:\"episodes\"" NoEpisodes bool "json:\"noEpisodes\" graphql:\"noEpisodes\"" }
type WorkEpisodesFragment_Episodes ¶
type WorkEpisodesFragment_Episodes struct {
Nodes []*EpisodeFragment "json:\"nodes,omitempty\" graphql:\"nodes\""
}
type WorkFragment ¶
type WorkFragment struct { AnnictID int64 "json:\"annictId\" graphql:\"annictId\"" ID string "json:\"id\" graphql:\"id\"" Title string "json:\"title\" graphql:\"title\"" Media Media "json:\"media\" graphql:\"media\"" SeasonName *SeasonName "json:\"seasonName,omitempty\" graphql:\"seasonName\"" SeasonYear *int64 "json:\"seasonYear,omitempty\" graphql:\"seasonYear\"" ViewerStatusState *StatusState "json:\"viewerStatusState,omitempty\" graphql:\"viewerStatusState\"" }
type WorkImage ¶
type WorkImage struct { AnnictID *int64 `json:"annictId"` Copyright *string `json:"copyright"` FacebookOgImageURL *string `json:"facebookOgImageUrl"` ID string `json:"id"` InternalURL *string `json:"internalUrl"` RecommendedImageURL *string `json:"recommendedImageUrl"` TwitterAvatarURL *string `json:"twitterAvatarUrl"` TwitterBiggerAvatarURL *string `json:"twitterBiggerAvatarUrl"` TwitterMiniAvatarURL *string `json:"twitterMiniAvatarUrl"` TwitterNormalAvatarURL *string `json:"twitterNormalAvatarUrl"` Work *Work `json:"work"` }
type WorkInfoFragment ¶
type WorkInfoFragment struct { AnnictID int64 "json:\"annictId\" graphql:\"annictId\"" ID string "json:\"id\" graphql:\"id\"" Title string "json:\"title\" graphql:\"title\"" Media Media "json:\"media\" graphql:\"media\"" SeasonName *SeasonName "json:\"seasonName,omitempty\" graphql:\"seasonName\"" SeasonYear *int64 "json:\"seasonYear,omitempty\" graphql:\"seasonYear\"" ViewerStatusState *StatusState "json:\"viewerStatusState,omitempty\" graphql:\"viewerStatusState\"" Episodes *WorkInfoFragment_WorkEpisodesFragment_Episodes "json:\"episodes,omitempty\" graphql:\"episodes\"" NoEpisodes bool "json:\"noEpisodes\" graphql:\"noEpisodes\"" Image *WorkInfoFragment_Image "json:\"image,omitempty\" graphql:\"image\"" OfficialSiteURL *string "json:\"officialSiteUrl,omitempty\" graphql:\"officialSiteUrl\"" WatchersCount int64 "json:\"watchersCount\" graphql:\"watchersCount\"" }
type WorkInfoFragment_Image ¶
type WorkInfoFragment_Image struct { Copyright *string "json:\"copyright,omitempty\" graphql:\"copyright\"" RecommendedImageURL *string "json:\"recommendedImageUrl,omitempty\" graphql:\"recommendedImageUrl\"" FacebookOgImageURL *string "json:\"facebookOgImageUrl,omitempty\" graphql:\"facebookOgImageUrl\"" }
type WorkInfoFragment_WorkEpisodesFragment_Episodes ¶
type WorkInfoFragment_WorkEpisodesFragment_Episodes struct {
Nodes []*EpisodeFragment "json:\"nodes,omitempty\" graphql:\"nodes\""
}
type WorkOrder ¶
type WorkOrder struct { Field WorkOrderField `json:"field"` Direction OrderDirection `json:"direction"` }
type WorkOrderField ¶
type WorkOrderField string
const ( WorkOrderFieldCreatedAt WorkOrderField = "CREATED_AT" WorkOrderFieldSeason WorkOrderField = "SEASON" WorkOrderFieldWatchersCount WorkOrderField = "WATCHERS_COUNT" )
func (WorkOrderField) IsValid ¶
func (e WorkOrderField) IsValid() bool
func (WorkOrderField) MarshalGQL ¶
func (e WorkOrderField) MarshalGQL(w io.Writer)
func (WorkOrderField) String ¶
func (e WorkOrderField) String() string
func (*WorkOrderField) UnmarshalGQL ¶
func (e *WorkOrderField) UnmarshalGQL(v interface{}) error