Documentation ¶
Index ¶
- Variables
- func RequestSession(ctx echo.Context) *model.Session
- func RequestUser(ctx echo.Context) *model.User
- type AuthView
- type CommunityView
- func (self *CommunityView) GetCommunity(ctx echo.Context) error
- func (self *CommunityView) GetCommunityList(ctx echo.Context) error
- func (self *CommunityView) GetCommunityUser(ctx echo.Context) error
- func (self *CommunityView) GetCommunityUserList(ctx echo.Context) error
- func (self *CommunityView) PostCommunity(ctx echo.Context) error
- func (self *CommunityView) PostCommunityInvite(ctx echo.Context) error
- func (self *CommunityView) PostCommunityLeave(ctx echo.Context) error
- type FileView
- type InvitationView
- type PostView
- func (self *PostView) GetPost(ctx echo.Context) error
- func (self *PostView) GetPostHistory(ctx echo.Context) error
- func (self *PostView) GetPostList(ctx echo.Context) error
- func (self *PostView) GetPostThread(ctx echo.Context) error
- func (self *PostView) PostPinPost(ctx echo.Context) error
- func (self *PostView) PostPost(ctx echo.Context) error
- func (self *PostView) PostUnpinPost(ctx echo.Context) error
- func (self *PostView) PostUnvotePost(ctx echo.Context) error
- func (self *PostView) PostVotePost(ctx echo.Context) error
- func (self *PostView) PostVotePostPoll(ctx echo.Context) error
- func (self *PostView) PutPost(ctx echo.Context) error
- type UserView
- func (self *UserView) DeleteUser(ctx echo.Context) error
- func (self *UserView) GetProfile(ctx echo.Context) error
- func (self *UserView) PostEmailEnd(ctx echo.Context) error
- func (self *UserView) PostEmailStart(ctx echo.Context) error
- func (self *UserView) PostPhoneEnd(ctx echo.Context) error
- func (self *UserView) PostPhoneStart(ctx echo.Context) error
- func (self *UserView) PostProfile(ctx echo.Context) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ExcOTPAlreadySent = internal.NewException(http.StatusForbidden, "ERR_OTP_ALREADY_SENT") ExcOTPMaxAttempts = internal.NewException(http.StatusForbidden, "ERR_OTP_MAX_ATTEMPTS") ExcOTPWrongCode = internal.NewException(http.StatusForbidden, "ERR_OTP_WRONG_CODE") ExcUserAlreadyJoined = internal.NewException(http.StatusForbidden, "ERR_USER_ALREADY_JOINED") ExcUserNotBelongs = internal.NewException(http.StatusForbidden, "ERR_USER_NOT_BELONGS") ExcUserNotPermission = internal.NewException(http.StatusForbidden, "ERR_USER_NOT_PERMISSION") ExcUserAlreadyInvited = internal.NewException(http.StatusForbidden, "ERR_USER_ALREADY_INVITED") ExcUserAlreadyVoted = internal.NewException(http.StatusForbidden, "ERR_USER_ALREADY_VOTED") )
Functions ¶
func RequestSession ¶
func RequestUser ¶
Types ¶
type AuthView ¶
func NewAuthView ¶
func NewAuthView(configuration internal.Configuration, logger core.Logger, otpCreator otp.CreatorUsecase, authLogger auth.LoggerUsecase) *AuthView
func (*AuthView) PostLoginEnd ¶
func (*AuthView) PostLoginStart ¶
func (*AuthView) PostLogout ¶
type CommunityView ¶
func NewCommunityView ¶
func NewCommunityView(configuration internal.Configuration, logger core.Logger, communityCreator community.CreatorUsecase, communityGetter community.GetterUsecase, communityLeaver community.LeaverUsecase, invitationCreator invitation.CreatorUsecase) *CommunityView
func (*CommunityView) GetCommunity ¶
func (self *CommunityView) GetCommunity(ctx echo.Context) error
func (*CommunityView) GetCommunityList ¶
func (self *CommunityView) GetCommunityList(ctx echo.Context) error
func (*CommunityView) GetCommunityUser ¶
func (self *CommunityView) GetCommunityUser(ctx echo.Context) error
func (*CommunityView) GetCommunityUserList ¶
func (self *CommunityView) GetCommunityUserList(ctx echo.Context) error
func (*CommunityView) PostCommunity ¶
func (self *CommunityView) PostCommunity(ctx echo.Context) error
func (*CommunityView) PostCommunityInvite ¶
func (self *CommunityView) PostCommunityInvite(ctx echo.Context) error
func (*CommunityView) PostCommunityLeave ¶
func (self *CommunityView) PostCommunityLeave(ctx echo.Context) error
type FileView ¶
func NewFileView ¶
func NewFileView(configuration internal.Configuration, logger core.Logger, fileCreator file.CreatorUsecase, fileGetter file.GetterUsecase) *FileView
type InvitationView ¶
func NewInvitationView ¶
func NewInvitationView(configuration internal.Configuration, logger core.Logger, invitationGetter invitation.GetterUsecase, invitationAccepter invitation.AccepterUsecase, invitationRejecter invitation.RejecterUsecase) *InvitationView
func (*InvitationView) GetInvitationList ¶
func (self *InvitationView) GetInvitationList(ctx echo.Context) error
func (*InvitationView) PostInvitationAccept ¶
func (self *InvitationView) PostInvitationAccept(ctx echo.Context) error
func (*InvitationView) PostInvitationReject ¶
func (self *InvitationView) PostInvitationReject(ctx echo.Context) error
type PostView ¶
func NewPostView ¶
func NewPostView(configuration internal.Configuration, logger core.Logger, postGetter post.GetterUsecase, postCreator post.CreatorUsecase, postUpdater post.UpdaterUsecase, postVoter post.VoterUsecase, postUnvoter post.UnvoterUsecase, postPollVoter post.PollVoterUsecase, postPinner post.PinnerUsecase, postUnpinner post.UnpinnerUsecase, postRepository repository.PostRepository) *PostView
func (*PostView) GetPostHistory ¶
func (*PostView) GetPostList ¶
func (*PostView) GetPostThread ¶
func (*PostView) PostPinPost ¶
func (*PostView) PostUnpinPost ¶
func (*PostView) PostUnvotePost ¶
func (*PostView) PostVotePost ¶
func (*PostView) PostVotePostPoll ¶
type UserView ¶
func NewUserView ¶
func NewUserView(configuration internal.Configuration, logger core.Logger, userGetter user.GetterUsecase, userUpdater user.UpdaterUsecase, userDeleter user.DeleterUsecase, otpCreator otp.CreatorUsecase) *UserView
func (*UserView) DeleteUser ¶
func (*UserView) GetProfile ¶
func (*UserView) PostEmailEnd ¶
func (*UserView) PostEmailStart ¶
func (*UserView) PostPhoneEnd ¶
func (*UserView) PostPhoneStart ¶
func (*UserView) PostProfile ¶
Click to show internal directories.
Click to hide internal directories.