Documentation ¶
Index ¶
- Variables
- type Ctrl
- func (ctl Ctrl) CountEpisode(ctx context.Context, subjectID model.SubjectID, epType *model.EpType) (int64, 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 domain.Auth, id model.CharacterID) (model.Character, error)
- func (ctl Ctrl) GetCharacterNoRedirect(ctx context.Context, user domain.Auth, id model.CharacterID) (model.Character, error)
- func (ctl Ctrl) GetCharacterRelatedSubjects(ctx context.Context, user domain.Auth, characterID model.CharacterID) (model.Character, []model.SubjectCharacterRelation, error)
- func (ctl Ctrl) GetEpisode(ctx context.Context, id model.EpisodeID) (model.Episode, error)
- func (ctl Ctrl) GetFriends(ctx context.Context, id model.UserID) (map[model.UserID]domain.FriendItem, 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 domain.Auth, subjectID model.SubjectID) (model.Subject, error)
- func (ctl Ctrl) GetSubjectByIDs(ctx context.Context, subjectIDs ...model.SubjectID) (map[model.SubjectID]model.Subject, error)
- func (ctl Ctrl) GetSubjectNoRedirect(ctx context.Context, user domain.Auth, subjectID model.SubjectID) (model.Subject, error)
- func (ctl Ctrl) GetSubjectRelatedCharacters(ctx context.Context, user domain.Auth, subjectID model.SubjectID) (model.Subject, []model.SubjectCharacterRelation, error)
- func (ctl Ctrl) GetSubjectRelatedSubjects(ctx context.Context, user domain.Auth, subjectID model.SubjectID) (model.Subject, []model.SubjectInternalRelation, error)
- func (ctl Ctrl) GetTopic(ctx context.Context, u domain.Auth, topicType domain.TopicType, ...) (model.TopicDetail, error)
- func (ctl Ctrl) GetUser(ctx context.Context, userID model.UserID) (model.User, error)
- func (ctl Ctrl) GetUsersByIDs(ctx context.Context, userIDs ...model.UserID) (map[model.UserID]model.User, error)
- func (ctl Ctrl) ListEpisode(ctx context.Context, subjectID model.SubjectID, epType *model.EpType, ...) ([]model.Episode, int64, error)
- func (ctl Ctrl) ListReplies(ctx context.Context, commentType domain.CommentType, topicID model.TopicID, ...) ([]model.Comment, int64, error)
- func (ctl Ctrl) ListTopics(ctx context.Context, u domain.Auth, topicType domain.TopicType, ...) ([]model.Topic, int64, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidInput = errors.New("failed")
View Source
var ErrOffsetTooBig = errors.New("limit too big")
Functions ¶
This section is empty.
Types ¶
type Ctrl ¶
type Ctrl struct {
// contains filtered or unexported fields
}
func New ¶
func New( episode domain.EpisodeRepo, cache cache.Cache, subject domain.SubjectRepo, person domain.PersonRepo, character domain.CharacterRepo, collection domain.CollectionRepo, metric tally.Scope, user domain.UserRepo, topic domain.TopicRepo, log *zap.Logger, ) Ctrl
func (Ctrl) CountEpisode ¶
func (Ctrl) GetCharacter ¶
func (Ctrl) GetCharacterNoRedirect ¶
func (Ctrl) GetCharacterRelatedSubjects ¶
func (Ctrl) GetEpisode ¶
func (Ctrl) GetFriends ¶
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) ListReplies ¶
Source Files ¶
- count_episode_for_subject.go
- ctrl.go
- error.go
- fx.go
- get_actors.go
- get_character.go
- get_character_related_subject.go
- get_episode.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_topic.go
- get_user.go
- list_episodes.go
Click to show internal directories.
Click to hide internal directories.