Documentation ¶
Index ¶
- Variables
- type Ctrl
- func (ctl Ctrl) CountEpisode(ctx context.Context, subjectID model.SubjectID, epType *episode.Type) (int64, error)
- func (ctl Ctrl) CreatePrivateMessage(ctx context.Context, senderID model.UserID, receiverIDs []model.UserID, ...) ([]pm.PrivateMessage, error)
- func (ctl Ctrl) GetActors(ctx context.Context, subjectID model.SubjectID, ...) (map[model.CharacterID][]model.Person, error)
- func (ctl Ctrl) GetCharacter(ctx context.Context, user auth.Auth, id model.CharacterID) (model.Character, error)
- func (ctl Ctrl) GetCharacterNoRedirect(ctx context.Context, user auth.Auth, id model.CharacterID) (model.Character, error)
- func (ctl Ctrl) GetCharacterRelatedSubjects(ctx context.Context, user auth.Auth, characterID model.CharacterID) (model.Character, []model.SubjectCharacterRelation, error)
- func (ctl Ctrl) GetEpisode(ctx context.Context, id model.EpisodeID) (episode.Episode, error)
- func (ctl Ctrl) GetFriends(ctx context.Context, id model.UserID) (map[model.UserID]user.FriendItem, error)
- func (ctl Ctrl) GetIndexWithCache(c context.Context, id uint32) (res.Index, bool, error)
- func (ctl Ctrl) GetPerson(ctx context.Context, personID model.PersonID) (model.Person, error)
- func (ctl Ctrl) GetPersonRelated(ctx context.Context, personID model.PersonID) ([]model.SubjectPersonRelation, error)
- func (ctl Ctrl) GetPersonRelatedCharacters(ctx context.Context, personID model.PersonID) ([]model.PersonCharacterRelation, error)
- func (ctl Ctrl) GetSubject(ctx context.Context, user auth.Auth, subjectID model.SubjectID) (model.Subject, error)
- func (ctl Ctrl) GetSubjectByIDs(ctx context.Context, subjectIDs []model.SubjectID, filter SubjectFilter) (map[model.SubjectID]model.Subject, error)
- func (ctl Ctrl) GetSubjectNoRedirect(ctx context.Context, user auth.Auth, subjectID model.SubjectID) (model.Subject, error)
- func (ctl Ctrl) GetSubjectRelatedCharacters(ctx context.Context, user auth.Auth, subjectID model.SubjectID) (model.Subject, []model.SubjectCharacterRelation, error)
- func (ctl Ctrl) GetSubjectRelatedSubjects(ctx context.Context, user auth.Auth, subjectID model.SubjectID) ([]model.SubjectInternalRelation, error)
- func (ctl Ctrl) GetUser(ctx context.Context, userID model.UserID) (user.User, error)
- func (ctl Ctrl) GetUsersByIDs(ctx context.Context, userIDs []model.UserID) (map[model.UserID]user.User, error)
- func (ctl Ctrl) ListEpisode(ctx context.Context, subjectID model.SubjectID, epType *episode.Type, ...) ([]episode.Episode, int64, error)
- func (ctl Ctrl) UpdateCollection(ctx context.Context, u auth.Auth, subjectID model.SubjectID, ...) error
- func (ctl Ctrl) UpdateEpisodeCollection(ctx context.Context, u auth.Auth, episodeID model.EpisodeID, ...) error
- func (ctl Ctrl) UpdateEpisodesCollection(ctx context.Context, u auth.Auth, subjectID model.SubjectID, ...) error
- type SubjectFilter
- type UpdateCollectionRequest
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidInput = errors.New("invalid input")
View Source
var ErrOffsetTooBig = errors.New("limit too big")
View Source
var ErrPmBlocked = errors.New("have been blocked")
View Source
var ErrPmNotAFriend = errors.New("not a friend to some receivers")
View Source
var ErrPmNotAllReceiversExist = errors.New("some receivers not exist")
View Source
var ErrPmReceiverReject = errors.New("some receivers reject private message")
Functions ¶
This section is empty.
Types ¶
type Ctrl ¶
type Ctrl struct {
// contains filtered or unexported fields
}
func (Ctrl) CountEpisode ¶
func (Ctrl) CreatePrivateMessage ¶
func (Ctrl) GetCharacter ¶
func (Ctrl) GetCharacterNoRedirect ¶
func (Ctrl) GetCharacterRelatedSubjects ¶
func (Ctrl) GetEpisode ¶
func (Ctrl) GetFriends ¶
func (Ctrl) GetIndexWithCache ¶
func (Ctrl) GetPersonRelated ¶
func (Ctrl) GetPersonRelatedCharacters ¶
func (Ctrl) GetSubject ¶
func (Ctrl) GetSubjectByIDs ¶
func (Ctrl) GetSubjectNoRedirect ¶
func (Ctrl) GetSubjectRelatedCharacters ¶
func (Ctrl) GetSubjectRelatedSubjects ¶
func (Ctrl) GetUsersByIDs ¶
func (Ctrl) ListEpisode ¶
func (Ctrl) UpdateCollection ¶
func (Ctrl) UpdateEpisodeCollection ¶
type SubjectFilter ¶
Source Files ¶
- count_episode_for_subject.go
- create_private_message.go
- ctrl.go
- error.go
- fx.go
- get_actors.go
- get_character.go
- get_character_related_subject.go
- get_episode.go
- get_index.go
- get_person.go
- get_person_related_subject.go
- get_person_related_subjects.go
- get_subject.go
- get_subject_related_characters.go
- get_subject_related_subject.go
- get_user.go
- list_episodes.go
- update_subject_collection.go
Click to show internal directories.
Click to hide internal directories.