Versions in this module Expand all Collapse all v0 v0.0.2 Apr 30, 2021 v0.0.1 Apr 30, 2021 Changes in this version + const CreateRecordMutationQuery + const GetProfileQuery + const GetWorkQuery + const ListNextEpisodesQuery + const ListRecordsQuery + const ListWorksQuery + const SearchWorksQuery + const UpdateStatusMutationQuery + const UpdateWorkStatusQuery + var AllActivityAction = []ActivityAction + var AllActivityOrderField = []ActivityOrderField + var AllCastOrderField = []CastOrderField + var AllCharacterOrderField = []CharacterOrderField + var AllEpisodeOrderField = []EpisodeOrderField + var AllMedia = []Media + var AllOrderDirection = []OrderDirection + var AllOrganizationOrderField = []OrganizationOrderField + var AllPersonOrderField = []PersonOrderField + var AllProgramOrderField = []ProgramOrderField + var AllProgramState = []ProgramState + var AllRatingState = []RatingState + var AllRecordOrderField = []RecordOrderField + var AllReviewOrderField = []ReviewOrderField + var AllSeasonName = []SeasonName + var AllSeriesWorkOrderField = []SeriesWorkOrderField + var AllStaffOrderField = []StaffOrderField + var AllStatusState = []StatusState + var AllWorkOrderField = []WorkOrderField + type Activity struct + AnnictID int64 + ID string + User *User + func (Activity) IsNode() + type ActivityAction string + const ActivityActionCreate + func (e *ActivityAction) UnmarshalGQL(v interface{}) error + func (e ActivityAction) IsValid() bool + func (e ActivityAction) MarshalGQL(w io.Writer) + func (e ActivityAction) String() string + type ActivityConnection struct + Edges []*ActivityEdge + Nodes []*Activity + PageInfo *PageInfo + type ActivityEdge struct + Action ActivityAction + AnnictID int64 + Cursor string + Node ActivityItem + User *User + type ActivityItem interface + IsActivityItem func() + type ActivityOrder struct + Direction OrderDirection + Field ActivityOrderField + type ActivityOrderField string + const ActivityOrderFieldCreatedAt + func (e *ActivityOrderField) UnmarshalGQL(v interface{}) error + func (e ActivityOrderField) IsValid() bool + func (e ActivityOrderField) MarshalGQL(w io.Writer) + func (e ActivityOrderField) String() string + type Cast struct + AnnictID int64 + Character *Character + ID string + Name string + NameEn string + Person *Person + SortNumber int64 + Work *Work + func (Cast) IsNode() + type CastConnection struct + Edges []*CastEdge + Nodes []*Cast + PageInfo *PageInfo + type CastEdge struct + Cursor string + Node *Cast + type CastOrder struct + Direction OrderDirection + Field CastOrderField + type CastOrderField string + const CastOrderFieldCreatedAt + const CastOrderFieldSortNumber + func (e *CastOrderField) UnmarshalGQL(v interface{}) error + func (e CastOrderField) IsValid() bool + func (e CastOrderField) MarshalGQL(w io.Writer) + func (e CastOrderField) String() string + type Channel struct + AnnictID int64 + ChannelGroup *ChannelGroup + ID string + Name string + Programs *ProgramConnection + Published bool + ScChid int64 + func (Channel) IsNode() + type ChannelConnection struct + Edges []*ChannelEdge + Nodes []*Channel + PageInfo *PageInfo + type ChannelEdge struct + Cursor string + Node *Channel + type ChannelGroup struct + AnnictID int64 + Channels *ChannelConnection + ID string + Name string + SortNumber int64 + func (ChannelGroup) IsNode() + type Character struct + Age string + AgeEn string + AnnictID int64 + Birthday string + BirthdayEn string + BloodType string + BloodTypeEn string + Description string + DescriptionEn string + DescriptionSource string + DescriptionSourceEn string + FavoriteCharactersCount int64 + Height string + HeightEn string + ID string + Name string + NameEn string + NameKana string + Nationality string + NationalityEn string + Nickname string + NicknameEn string + Occupation string + OccupationEn string + Series *Series + Weight string + WeightEn string + func (Character) IsNode() + type CharacterConnection struct + Edges []*CharacterEdge + Nodes []*Character + PageInfo *PageInfo + type CharacterEdge struct + Cursor string + Node *Character + type CharacterOrder struct + Direction OrderDirection + Field CharacterOrderField + type CharacterOrderField string + const CharacterOrderFieldCreatedAt + const CharacterOrderFieldFavoriteCharactersCount + func (e *CharacterOrderField) UnmarshalGQL(v interface{}) error + func (e CharacterOrderField) IsValid() bool + func (e CharacterOrderField) MarshalGQL(w io.Writer) + func (e CharacterOrderField) String() string + type Client struct + Client *clientv2.Client + func NewClient(cli *http.Client, baseURL string, interceptors ...clientv2.RequestInterceptor) *Client + func (c *Client) CreateRecordMutation(ctx context.Context, episodeID string, ...) (*HogeCreateRecordMutationPayload, error) + func (c *Client) GetProfile(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetProfile, error) + func (c *Client) GetWork(ctx context.Context, ids []int64, interceptors ...clientv2.RequestInterceptor) (*GetWork, error) + func (c *Client) ListNextEpisodes(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*ListNextEpisodes, error) + func (c *Client) ListRecords(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*ListRecords, error) + func (c *Client) ListWorks(ctx context.Context, state *StatusState, after *string, n int64, ...) (*ListWorks, error) + func (c *Client) SearchWorks(ctx context.Context, seasons []string, ...) (*SearchWorks, error) + func (c *Client) UpdateStatusMutation(ctx context.Context, state StatusState, workID string, ...) (*HogeUpdateStatusMutationPayload, error) + func (c *Client) UpdateWorkStatus(ctx context.Context, workID string, ...) (*HogeUpdateWorkStatusPayload, error) + type CreateRecordInput struct + ClientMutationID *string + Comment *string + EpisodeID string + RatingState *RatingState + ShareFacebook *bool + ShareTwitter *bool + type CreateRecordPayload struct + ClientMutationID *string + Record *Record + type CreateReviewInput struct + Body string + ClientMutationID *string + RatingAnimationState *RatingState + RatingCharacterState *RatingState + RatingMusicState *RatingState + RatingOverallState *RatingState + RatingStoryState *RatingState + ShareFacebook *bool + ShareTwitter *bool + Title *string + WorkID string + type CreateReviewPayload struct + ClientMutationID *string + Review *Review + type DeleteRecordInput struct + ClientMutationID *string + RecordID string + type DeleteRecordPayload struct + ClientMutationID *string + Episode *Episode + type DeleteReviewInput struct + ClientMutationID *string + ReviewID string + type DeleteReviewPayload struct + ClientMutationID *string + Work *Work + type Episode struct + AnnictID int64 + ID string + NextEpisode *Episode + Number *int64 + NumberText *string + PrevEpisode *Episode + RecordCommentsCount int64 + Records *RecordConnection + RecordsCount int64 + SatisfactionRate *float64 + SortNumber int64 + Title *string + ViewerDidTrack bool + ViewerRecordsCount int64 + Work *Work + func (Episode) IsNode() + type EpisodeConnection struct + Edges []*EpisodeEdge + Nodes []*Episode + PageInfo *PageInfo + type EpisodeEdge struct + Cursor string + Node *Episode + type EpisodeOrder struct + Direction OrderDirection + Field EpisodeOrderField + type EpisodeOrderField string + const EpisodeOrderFieldCreatedAt + const EpisodeOrderFieldSortNumber + func (e *EpisodeOrderField) UnmarshalGQL(v interface{}) error + func (e EpisodeOrderField) IsValid() bool + func (e EpisodeOrderField) MarshalGQL(w io.Writer) + func (e EpisodeOrderField) String() string + type GetProfile struct + Viewer *ViewerFragment + type GetWork struct + SearchWorks ... + type HogeCreateRecordMutationPayload struct + CreateRecord ... + type HogeUpdateStatusMutationPayload struct + UpdateStatus ... + type HogeUpdateWorkStatusPayload struct + UpdateStatus ... + type ListNextEpisodes struct + Viewer ... + type ListRecords struct + Viewer ... + type ListWorks struct + Viewer ... + type Media string + const MediaMovie + const MediaOther + const MediaOva + const MediaTv + const MediaWeb + func (e *Media) UnmarshalGQL(v interface{}) error + func (e Media) IsValid() bool + func (e Media) MarshalGQL(w io.Writer) + func (e Media) String() string + type MultipleRecord struct + AnnictID int64 + CreatedAt time.Time + ID string + Records *RecordConnection + User *User + Work *Work + func (MultipleRecord) IsActivityItem() + func (MultipleRecord) IsNode() + type Mutation struct + CreateRecord *CreateRecordPayload + CreateReview *CreateReviewPayload + DeleteRecord *DeleteRecordPayload + DeleteReview *DeleteReviewPayload + UpdateRecord *UpdateRecordPayload + UpdateReview *UpdateReviewPayload + UpdateStatus *UpdateStatusPayload + type Node interface + IsNode func() + type OrderDirection string + const OrderDirectionAsc + const OrderDirectionDesc + func (e *OrderDirection) UnmarshalGQL(v interface{}) error + func (e OrderDirection) IsValid() bool + func (e OrderDirection) MarshalGQL(w io.Writer) + func (e OrderDirection) String() string + type Organization struct + AnnictID int64 + FavoriteOrganizationsCount int64 + ID string + Name string + NameEn string + NameKana string + StaffsCount int64 + TwitterUsername string + TwitterUsernameEn string + URL string + URLEn string + WikipediaURL string + WikipediaURLEn string + func (Organization) IsNode() + func (Organization) IsStaffResourceItem() + type OrganizationConnection struct + Edges []*OrganizationEdge + Nodes []*Organization + PageInfo *PageInfo + type OrganizationEdge struct + Cursor string + Node *Organization + type OrganizationOrder struct + Direction OrderDirection + Field OrganizationOrderField + type OrganizationOrderField string + const OrganizationOrderFieldCreatedAt + const OrganizationOrderFieldFavoriteOrganizationsCount + func (e *OrganizationOrderField) UnmarshalGQL(v interface{}) error + func (e OrganizationOrderField) IsValid() bool + func (e OrganizationOrderField) MarshalGQL(w io.Writer) + func (e OrganizationOrderField) String() string + type PageInfo struct + EndCursor *string + HasNextPage bool + HasPreviousPage bool + StartCursor *string + type Person struct + AnnictID int64 + Birthday string + BloodType string + CastsCount int64 + FavoritePeopleCount int64 + GenderText string + Height string + ID string + Name string + NameEn string + NameKana string + Nickname string + NicknameEn string + Prefecture *Prefecture + StaffsCount int64 + TwitterUsername string + TwitterUsernameEn string + URL string + URLEn string + WikipediaURL string + WikipediaURLEn string + func (Person) IsNode() + func (Person) IsStaffResourceItem() + type PersonConnection struct + Edges []*PersonEdge + Nodes []*Person + PageInfo *PageInfo + type PersonEdge struct + Cursor string + Node *Person + type PersonOrder struct + Direction OrderDirection + Field PersonOrderField + type PersonOrderField string + const PersonOrderFieldCreatedAt + const PersonOrderFieldFavoritePeopleCount + func (e *PersonOrderField) UnmarshalGQL(v interface{}) error + func (e PersonOrderField) IsValid() bool + func (e PersonOrderField) MarshalGQL(w io.Writer) + func (e PersonOrderField) String() string + type Prefecture struct + AnnictID int64 + ID string + Name string + func (Prefecture) IsNode() + type Program struct + AnnictID int64 + Channel *Channel + Episode *Episode + ID string + Rebroadcast bool + ScPid *int64 + StartedAt time.Time + State ProgramState + Work *Work + func (Program) IsNode() + type ProgramConnection struct + Edges []*ProgramEdge + Nodes []*Program + PageInfo *PageInfo + type ProgramEdge struct + Cursor string + Node *Program + type ProgramOrder struct + Direction OrderDirection + Field ProgramOrderField + type ProgramOrderField string + const ProgramOrderFieldStartedAt + func (e *ProgramOrderField) UnmarshalGQL(v interface{}) error + func (e ProgramOrderField) IsValid() bool + func (e ProgramOrderField) MarshalGQL(w io.Writer) + func (e ProgramOrderField) String() string + type ProgramState string + const ProgramStateHidden + const ProgramStatePublished + func (e *ProgramState) UnmarshalGQL(v interface{}) error + func (e ProgramState) IsValid() bool + func (e ProgramState) MarshalGQL(w io.Writer) + func (e ProgramState) String() string + type Query struct + Node Node + Nodes []Node + SearchCharacters *CharacterConnection + SearchEpisodes *EpisodeConnection + SearchOrganizations *OrganizationConnection + SearchPeople *PersonConnection + SearchWorks *WorkConnection + User *User + Viewer *User + type RatingState string + const RatingStateAverage + const RatingStateBad + const RatingStateGood + const RatingStateGreat + func (e *RatingState) UnmarshalGQL(v interface{}) error + func (e RatingState) IsValid() bool + func (e RatingState) MarshalGQL(w io.Writer) + func (e RatingState) String() string + type Record struct + AnnictID int64 + Comment *string + CommentsCount int64 + CreatedAt time.Time + Episode *Episode + FacebookClickCount int64 + ID string + LikesCount int64 + Modified bool + Rating *float64 + RatingState *RatingState + TwitterClickCount int64 + UpdatedAt time.Time + User *User + Work *Work + func (Record) IsActivityItem() + func (Record) IsNode() + type RecordConnection struct + Edges []*RecordEdge + Nodes []*Record + PageInfo *PageInfo + type RecordEdge struct + Cursor string + Node *Record + type RecordOrder struct + Direction OrderDirection + Field RecordOrderField + type RecordOrderField string + const RecordOrderFieldCreatedAt + const RecordOrderFieldLikesCount + func (e *RecordOrderField) UnmarshalGQL(v interface{}) error + func (e RecordOrderField) IsValid() bool + func (e RecordOrderField) MarshalGQL(w io.Writer) + func (e RecordOrderField) String() string + type Review struct + AnnictID int64 + Body string + CreatedAt time.Time + ID string + ImpressionsCount int64 + LikesCount int64 + ModifiedAt *time.Time + RatingAnimationState *RatingState + RatingCharacterState *RatingState + RatingMusicState *RatingState + RatingOverallState *RatingState + RatingStoryState *RatingState + Title *string + UpdatedAt time.Time + User *User + Work *Work + func (Review) IsActivityItem() + func (Review) IsNode() + type ReviewConnection struct + Edges []*ReviewEdge + Nodes []*Review + PageInfo *PageInfo + type ReviewEdge struct + Cursor string + Node *Review + type ReviewOrder struct + Direction OrderDirection + Field ReviewOrderField + type ReviewOrderField string + const ReviewOrderFieldCreatedAt + const ReviewOrderFieldLikesCount + func (e *ReviewOrderField) UnmarshalGQL(v interface{}) error + func (e ReviewOrderField) IsValid() bool + func (e ReviewOrderField) MarshalGQL(w io.Writer) + func (e ReviewOrderField) String() string + type SearchWorks struct + SearchWorks ... + type SeasonName string + const SeasonNameAutumn + const SeasonNameSpring + const SeasonNameSummer + const SeasonNameWinter + func (e *SeasonName) UnmarshalGQL(v interface{}) error + func (e SeasonName) IsValid() bool + func (e SeasonName) MarshalGQL(w io.Writer) + func (e SeasonName) String() string + type Series struct + AnnictID int64 + ID string + Name string + NameEn string + NameRo string + Works *SeriesWorkConnection + func (Series) IsNode() + type SeriesConnection struct + Edges []*SeriesEdge + Nodes []*Series + PageInfo *PageInfo + type SeriesEdge struct + Cursor string + Node *Series + type SeriesWorkConnection struct + Edges []*SeriesWorkEdge + Nodes []*Work + PageInfo *PageInfo + type SeriesWorkEdge struct + Cursor string + Node *Work + Summary *string + SummaryEn *string + type SeriesWorkOrder struct + Direction OrderDirection + Field SeriesWorkOrderField + type SeriesWorkOrderField string + const SeriesWorkOrderFieldSeason + func (e *SeriesWorkOrderField) UnmarshalGQL(v interface{}) error + func (e SeriesWorkOrderField) IsValid() bool + func (e SeriesWorkOrderField) MarshalGQL(w io.Writer) + func (e SeriesWorkOrderField) String() string + type Staff struct + AnnictID int64 + ID string + Name string + NameEn string + Resource StaffResourceItem + RoleOther string + RoleOtherEn string + RoleText string + SortNumber int64 + Work *Work + func (Staff) IsNode() + type StaffConnection struct + Edges []*StaffEdge + Nodes []*Staff + PageInfo *PageInfo + type StaffEdge struct + Cursor string + Node *Staff + type StaffOrder struct + Direction OrderDirection + Field StaffOrderField + type StaffOrderField string + const StaffOrderFieldCreatedAt + const StaffOrderFieldSortNumber + func (e *StaffOrderField) UnmarshalGQL(v interface{}) error + func (e StaffOrderField) IsValid() bool + func (e StaffOrderField) MarshalGQL(w io.Writer) + func (e StaffOrderField) String() string + type StaffResourceItem interface + IsStaffResourceItem func() + type Status struct + AnnictID int64 + CreatedAt time.Time + ID string + LikesCount int64 + State StatusState + User *User + Work *Work + func (Status) IsActivityItem() + func (Status) IsNode() + type StatusState string + const StatusStateNoState + const StatusStateOnHold + const StatusStateStopWatching + const StatusStateWannaWatch + const StatusStateWatched + const StatusStateWatching + func (e *StatusState) UnmarshalGQL(v interface{}) error + func (e StatusState) IsValid() bool + func (e StatusState) MarshalGQL(w io.Writer) + func (e StatusState) String() string + type UpdateRecordInput struct + ClientMutationID *string + Comment *string + RatingState *RatingState + RecordID string + ShareFacebook *bool + ShareTwitter *bool + type UpdateRecordPayload struct + ClientMutationID *string + Record *Record + type UpdateReviewInput struct + Body string + ClientMutationID *string + RatingAnimationState RatingState + RatingCharacterState RatingState + RatingMusicState RatingState + RatingOverallState RatingState + RatingStoryState RatingState + ReviewID string + ShareFacebook *bool + ShareTwitter *bool + Title *string + type UpdateReviewPayload struct + ClientMutationID *string + Review *Review + type UpdateStatusInput struct + ClientMutationID *string + State StatusState + WorkID string + type UpdateStatusPayload struct + ClientMutationID *string + Work *Work + type User struct + Activities *ActivityConnection + AnnictID int64 + AvatarURL *string + BackgroundImageURL *string + CreatedAt time.Time + Description string + Email *string + Followers *UserConnection + FollowersCount int64 + Following *UserConnection + FollowingActivities *ActivityConnection + FollowingsCount int64 + ID string + Name string + NotificationsCount *int64 + OnHoldCount int64 + Programs *ProgramConnection + Records *RecordConnection + RecordsCount int64 + StopWatchingCount int64 + URL *string + Username string + ViewerCanFollow bool + ViewerIsFollowing bool + WannaWatchCount int64 + WatchedCount int64 + WatchingCount int64 + Works *WorkConnection + func (User) IsNode() + type UserConnection struct + Edges []*UserEdge + Nodes []*User + PageInfo *PageInfo + type UserEdge struct + Cursor string + Node *User + type ViewerFragment struct + AvatarURL *string + RecordsCount int64 + WannaWatchCount int64 + WatchedCount int64 + WatchingCount int64 + type Work struct + AnnictID int64 + Casts *CastConnection + Episodes *EpisodeConnection + EpisodesCount int64 + ID string + Image *WorkImage + MalAnimeID *string + Media Media + NoEpisodes bool + OfficialSiteURL *string + OfficialSiteURLEn *string + Programs *ProgramConnection + Reviews *ReviewConnection + ReviewsCount int64 + SatisfactionRate *float64 + SeasonName *SeasonName + SeasonYear *int64 + SeriesList *SeriesConnection + Staffs *StaffConnection + SyobocalTid *int64 + Title string + TitleEn *string + TitleKana *string + TitleRo *string + TwitterHashtag *string + TwitterUsername *string + ViewerStatusState *StatusState + WatchersCount int64 + WikipediaURL *string + WikipediaURLEn *string + func (Work) IsNode() + type WorkConnection struct + Edges []*WorkEdge + Nodes []*Work + PageInfo *PageInfo + type WorkEdge struct + Cursor string + Node *Work + type WorkFragment struct + AnnictID int64 + Episodes ... + EpisodesCount int64 + ID string + OfficialSiteURL *string + SeasonName *SeasonName + SeasonYear *int64 + Title string + ViewerStatusState *StatusState + WikipediaURL *string + type WorkImage struct + AnnictID *int64 + FacebookOgImageURL *string + ID string + InternalURL *string + RecommendedImageURL *string + TwitterAvatarURL *string + TwitterBiggerAvatarURL *string + TwitterMiniAvatarURL *string + TwitterNormalAvatarURL *string + Work *Work + func (WorkImage) IsNode() + type WorkOrder struct + Direction OrderDirection + Field WorkOrderField + type WorkOrderField string + const WorkOrderFieldCreatedAt + const WorkOrderFieldSeason + const WorkOrderFieldWatchersCount + func (e *WorkOrderField) UnmarshalGQL(v interface{}) error + func (e WorkOrderField) IsValid() bool + func (e WorkOrderField) MarshalGQL(w io.Writer) + func (e WorkOrderField) String() string