Documentation ¶
Index ¶
- Variables
- func Setup(repo repository.Repository) *echo.Echo
- type Client
- type ErrorBody
- type ErrorResponse
- type Handlers
- func (h *Handlers) AdminUserMiddleware(next echo.HandlerFunc) echo.HandlerFunc
- 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) 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) PutLiveID(c echo.Context) error
- func (h *Handlers) WatchCallbackMiddleware(next echo.HandlerFunc) echo.HandlerFunc
- type Live
- type PatchPresentationsStruct
- type PostPresentationsStruct
- type PostReviewStruct
- type RuntimeCallerStruct
- type Streamer
- type TokenResponse
Constants ¶
This section is empty.
Variables ¶
var ( // ErrAlreadyClosed 既に閉じられています ErrAlreadyClosed = errors.New("already closed") // ErrBufferIsFull 送信バッファが溢れました ErrBufferIsFull = errors.New("buffer is full") )
Functions ¶
func Setup ¶
func Setup(repo repository.Repository) *echo.Echo
Types ¶
type ErrorResponse ¶
type ErrorResponse struct {
ErrorBody `json:"errors"`
}
type Handlers ¶
type Handlers struct { Repo repository.Repository SessionOption sessions.Options ClientID string // contains filtered or unexported fields }
func (*Handlers) AdminUserMiddleware ¶
func (h *Handlers) AdminUserMiddleware(next echo.HandlerFunc) echo.HandlerFunc
AdminUserMiddleware 管理者ユーザーか判定するミドルウェア
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) 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) WatchCallbackMiddleware ¶
func (h *Handlers) WatchCallbackMiddleware(next echo.HandlerFunc) echo.HandlerFunc
WatchCallbackMiddleware /callback?code= を監視
type PostPresentationsStruct ¶
type PostReviewStruct ¶
type RuntimeCallerStruct ¶
type Streamer ¶
type Streamer struct {
// contains filtered or unexported fields
}
やっぱhub必要かも Streamer WebSocketストリーマー
func NewStreamer ¶
func NewStreamer(repo repository.Repository) *Streamer
NewStreamer WebSocketストリーマーを生成し起動します