controller

package
v0.0.0-...-f316938 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthController

type AuthController interface {
	// 未登録ユーザー作成・トークン発行
	CreateUnregisteredUserAndToken(c echo.Context) error
	// トークン更新
	RefreshToken(c echo.Context) error
	// CSRFトークン発行
	CreateCSRFToken(c echo.Context) error
	// logout
	Logout(c echo.Context) error
}

type EventController

type EventController interface {
	Create(c echo.Context) error
	Retrieve(c echo.Context) error
	CreateAnswer(c echo.Context) error
	RetrieveUserAnswer(c echo.Context) error
}

func NewEventController

func NewEventController(eu usecase.EventUsecase) EventController

type OauthController

type OauthController interface {
	// 各サービスの認証ページにリダイレクト
	RedirectToAuthPage(c echo.Context) error
	// callback
	Callback(c echo.Context) error
}

type UserController

type UserController interface {
	// Register(c echo.Context) error
	// GetEvents(c echo.Context) error
	Get(c echo.Context) error
	GetExternalCalendars(c echo.Context) error
	GetEvents(c echo.Context) error
}

func NewUserController

func NewUserController(uu usecase.UserUsecase) UserController

type UserEvent

type UserEvent struct {
	ID            string `json:"id"`
	Name          string `json:"name"`
	Description   string `json:"description"`
	DurationAbout string `json:"durationAbout"`
	UnitSeconds   int    `json:"unitDuration"`
}

Directories

Path Synopsis
internal
Package mockcontroller is a generated GoMock package.
Package mockcontroller is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL