Documentation
¶
Index ¶
- Variables
- func Setup(repo repository.Repository) *echo.Echo
- type Client
- type Handlers
- func (h *Handlers) CallbackHandler(c echo.Context) error
- func (h *Handlers) DeletePresentation(c echo.Context) error
- func (h *Handlers) GetGeneratedCode(c echo.Context) error
- func (h *Handlers) GetLiveID(c echo.Context) error
- func (h *Handlers) GetPresentation(c echo.Context) error
- func (h *Handlers) GetPresentationComments(c echo.Context) error
- func (h *Handlers) GetPresentationReaction(c echo.Context) error
- func (h *Handlers) GetPresentationReview(c echo.Context) error
- func (h *Handlers) GetPresentations(c echo.Context) error
- func (h *Handlers) GetUserMe(c echo.Context) error
- func (h *Handlers) GetViewer(c echo.Context) error
- func (h *Handlers) IsAdminUserMiddleware(next echo.HandlerFunc) echo.HandlerFunc
- func (h *Handlers) IsTraQUserMiddleware(next echo.HandlerFunc) echo.HandlerFunc
- func (h *Handlers) PatchPresentation(c echo.Context) error
- func (h *Handlers) PatchPresentationReview(c echo.Context) error
- func (h *Handlers) PostPresentationReview(c echo.Context) error
- func (h *Handlers) PostPresentations(c echo.Context) error
- func (h *Handlers) PostState(c echo.Context) error
- func (h *Handlers) PostToken(c echo.Context) error
- func (h *Handlers) PutLiveID(c echo.Context) error
- func (h *Handlers) TraQUserMiddleware(next echo.HandlerFunc) echo.HandlerFunc
- type Live
- type PatchPresentationsStruct
- type PostPresentationsStruct
- type PostReviewStruct
- type ResponseToken
- type Streamer
- type TokenResponse
Constants ¶
This section is empty.
Variables ¶
var ( // ErrAlreadyClosed 既に閉じられています ErrAlreadyClosed = errors.New("already IsClosed") // ErrBufferIsFull 送信バッファが溢れました ErrBufferIsFull = errors.New("buffer is full") )
Functions ¶
func Setup ¶
func Setup(repo repository.Repository) *echo.Echo
Types ¶
type Handlers ¶
type Handlers struct { Repo repository.Repository SessionOption sessions.Options ClientID string // contains filtered or unexported fields }
func (*Handlers) CallbackHandler ¶
CallbackHandler GET /api/callback
func (*Handlers) DeletePresentation ¶
DeletePresentation DELETE /presentations/:presentationID
func (*Handlers) GetGeneratedCode ¶
GetGeneratedCode GET /oauth2/generate/code
func (*Handlers) GetPresentation ¶
GetPresentation GET /presentations/:presentationID
func (*Handlers) GetPresentationComments ¶
GetPresentationComments GET /presentations/:presentationID/comments
func (*Handlers) GetPresentationReaction ¶
GetPresentationReaction GET /presentations/:presentationID/reaction
func (*Handlers) GetPresentationReview ¶
GetPresentationReview GET /presentations/:presentationID/review
func (*Handlers) GetPresentations ¶
GetPresentations GET /presentations
func (*Handlers) IsAdminUserMiddleware ¶
func (h *Handlers) IsAdminUserMiddleware(next echo.HandlerFunc) echo.HandlerFunc
AdminUserMiddleware 管理者ユーザーか判定するミドルウェア
func (*Handlers) IsTraQUserMiddleware ¶
func (h *Handlers) IsTraQUserMiddleware(next echo.HandlerFunc) echo.HandlerFunc
TraQUserMiddleware traQユーザーか判定するミドルウェア
func (*Handlers) PatchPresentation ¶
PatchPresentation PATCH /presentations/:presentationID
func (*Handlers) PatchPresentationReview ¶
PatchPresentationReview PATCH /presentations/:presentationID/review
func (*Handlers) PostPresentationReview ¶
PostPresentationReview POST /presentations/:presentationID/review
func (*Handlers) PostPresentations ¶
PostPresentations POST /presentations
func (*Handlers) TraQUserMiddleware ¶
func (h *Handlers) TraQUserMiddleware(next echo.HandlerFunc) echo.HandlerFunc
type PostPresentationsStruct ¶
type PostReviewStruct ¶
type ResponseToken ¶
type ResponseToken struct {
Token string `json:"token"`
}
type Streamer ¶
Streamer WebSocketストリーマー
func NewStreamer ¶
func NewStreamer(repo repository.Repository) *Streamer
NewStreamer WebSocketストリーマーを生成し起動します
func (*Streamer) IsClosedWithoutLock ¶
IsClosedWithoutLock ストリーマーが停止しているかどうか