Documentation
¶
Index ¶
- type APIHandler
- func (h *APIHandler) CreateCinema(ctx context.Context, req *oas.CinemaInput) (oas.CreateCinemaRes, error)
- func (h *APIHandler) CreateMovieLog(ctx context.Context, req *oas.MovieLogInput) (oas.CreateMovieLogRes, error)
- func (h *APIHandler) DeleteCinema(ctx context.Context, params oas.DeleteCinemaParams) (oas.DeleteCinemaRes, error)
- func (h *APIHandler) DeleteMovieLog(ctx context.Context, params oas.DeleteMovieLogParams) (oas.DeleteMovieLogRes, error)
- func (h *APIHandler) GetCinema(ctx context.Context, params oas.GetCinemaParams) (oas.GetCinemaRes, error)
- func (h *APIHandler) GetMovieLog(ctx context.Context, params oas.GetMovieLogParams) (oas.GetMovieLogRes, error)
- func (h *APIHandler) HandleAdminAPIKey(ctx context.Context, operationName oas.OperationName, t oas.AdminAPIKey) (context.Context, error)
- func (h *APIHandler) ListCinemas(ctx context.Context) (oas.ListCinemasRes, error)
- func (h *APIHandler) ListMovieLogs(ctx context.Context) (oas.ListMovieLogsRes, error)
- func (h *APIHandler) NewError(ctx context.Context, err error) *oas.InternalErrorStatusCode
- func (h *APIHandler) PatchCinema(ctx context.Context, req *oas.CinemaPatch, params oas.PatchCinemaParams) (oas.PatchCinemaRes, error)
- func (h *APIHandler) PatchMovieLog(ctx context.Context, req *oas.MovieLogPatch, params oas.PatchMovieLogParams) (oas.PatchMovieLogRes, error)
- func (h *APIHandler) QuerySql(ctx context.Context, req *oas.QueryRequest) (oas.QuerySqlRes, error)
- func (h *APIHandler) UpdateCinema(ctx context.Context, req *oas.CinemaInput, params oas.UpdateCinemaParams) (oas.UpdateCinemaRes, error)
- func (h *APIHandler) UpdateMovieLog(ctx context.Context, req *oas.MovieLogInput, params oas.UpdateMovieLogParams) (oas.UpdateMovieLogRes, error)
- type AdminCinemasController
- func (c *AdminCinemasController) Create() http.Handler
- func (c *AdminCinemasController) Delete() http.Handler
- func (c *AdminCinemasController) Get() http.Handler
- func (c *AdminCinemasController) GetCreate() http.Handler
- func (c *AdminCinemasController) List() http.Handler
- func (c *AdminCinemasController) Post() http.Handler
- type AdminDashController
- type AdminImportController
- type AdminMovieLogsController
- func (c *AdminMovieLogsController) Create() http.Handler
- func (c *AdminMovieLogsController) Delete() http.Handler
- func (c *AdminMovieLogsController) Get() http.Handler
- func (c *AdminMovieLogsController) GetCreate() http.Handler
- func (c *AdminMovieLogsController) List() http.Handler
- func (c *AdminMovieLogsController) Post() http.Handler
- type HomeController
- type LoginController
- type MovieLogController
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIHandler ¶
APIHandler implements the generated oas.Handler and oas.SecurityHandler.
func (*APIHandler) CreateCinema ¶
func (h *APIHandler) CreateCinema(ctx context.Context, req *oas.CinemaInput) (oas.CreateCinemaRes, error)
CreateCinema implements createCinema operation.
func (*APIHandler) CreateMovieLog ¶
func (h *APIHandler) CreateMovieLog(ctx context.Context, req *oas.MovieLogInput) (oas.CreateMovieLogRes, error)
CreateMovieLog implements createMovieLog operation.
func (*APIHandler) DeleteCinema ¶
func (h *APIHandler) DeleteCinema(ctx context.Context, params oas.DeleteCinemaParams) (oas.DeleteCinemaRes, error)
DeleteCinema implements deleteCinema operation.
func (*APIHandler) DeleteMovieLog ¶
func (h *APIHandler) DeleteMovieLog(ctx context.Context, params oas.DeleteMovieLogParams) (oas.DeleteMovieLogRes, error)
DeleteMovieLog implements deleteMovieLog operation.
func (*APIHandler) GetCinema ¶
func (h *APIHandler) GetCinema(ctx context.Context, params oas.GetCinemaParams) (oas.GetCinemaRes, error)
GetCinema implements getCinema operation.
func (*APIHandler) GetMovieLog ¶
func (h *APIHandler) GetMovieLog(ctx context.Context, params oas.GetMovieLogParams) (oas.GetMovieLogRes, error)
GetMovieLog implements getMovieLog operation.
func (*APIHandler) HandleAdminAPIKey ¶
func (h *APIHandler) HandleAdminAPIKey(ctx context.Context, operationName oas.OperationName, t oas.AdminAPIKey) (context.Context, error)
HandleAdminAPIKey implements oas.SecurityHandler. It checks both Bearer token and the datasite-admin-api-key cookie.
func (*APIHandler) ListCinemas ¶
func (h *APIHandler) ListCinemas(ctx context.Context) (oas.ListCinemasRes, error)
ListCinemas implements listCinemas operation.
func (*APIHandler) ListMovieLogs ¶
func (h *APIHandler) ListMovieLogs(ctx context.Context) (oas.ListMovieLogsRes, error)
ListMovieLogs implements listMovieLogs operation.
func (*APIHandler) NewError ¶
func (h *APIHandler) NewError(ctx context.Context, err error) *oas.InternalErrorStatusCode
NewError implements oas.Handler convenient error handling.
func (*APIHandler) PatchCinema ¶
func (h *APIHandler) PatchCinema(ctx context.Context, req *oas.CinemaPatch, params oas.PatchCinemaParams) (oas.PatchCinemaRes, error)
PatchCinema implements patchCinema operation.
func (*APIHandler) PatchMovieLog ¶
func (h *APIHandler) PatchMovieLog(ctx context.Context, req *oas.MovieLogPatch, params oas.PatchMovieLogParams) (oas.PatchMovieLogRes, error)
PatchMovieLog implements patchMovieLog operation.
func (*APIHandler) QuerySql ¶
func (h *APIHandler) QuerySql(ctx context.Context, req *oas.QueryRequest) (oas.QuerySqlRes, error)
QuerySql implements querySql operation.
func (*APIHandler) UpdateCinema ¶
func (h *APIHandler) UpdateCinema(ctx context.Context, req *oas.CinemaInput, params oas.UpdateCinemaParams) (oas.UpdateCinemaRes, error)
UpdateCinema implements updateCinema operation.
func (*APIHandler) UpdateMovieLog ¶
func (h *APIHandler) UpdateMovieLog(ctx context.Context, req *oas.MovieLogInput, params oas.UpdateMovieLogParams) (oas.UpdateMovieLogRes, error)
UpdateMovieLog implements updateMovieLog operation.
type AdminCinemasController ¶
func (*AdminCinemasController) Create ¶
func (c *AdminCinemasController) Create() http.Handler
func (*AdminCinemasController) Delete ¶
func (c *AdminCinemasController) Delete() http.Handler
func (*AdminCinemasController) Get ¶
func (c *AdminCinemasController) Get() http.Handler
func (*AdminCinemasController) GetCreate ¶
func (c *AdminCinemasController) GetCreate() http.Handler
func (*AdminCinemasController) List ¶
func (c *AdminCinemasController) List() http.Handler
func (*AdminCinemasController) Post ¶
func (c *AdminCinemasController) Post() http.Handler
type AdminDashController ¶
func (*AdminDashController) Get ¶
func (c *AdminDashController) Get() http.Handler
type AdminImportController ¶
func (*AdminImportController) Get ¶
func (c *AdminImportController) Get() http.Handler
func (*AdminImportController) Post ¶
func (c *AdminImportController) Post() http.Handler
type AdminMovieLogsController ¶
func (*AdminMovieLogsController) Create ¶
func (c *AdminMovieLogsController) Create() http.Handler
func (*AdminMovieLogsController) Delete ¶
func (c *AdminMovieLogsController) Delete() http.Handler
func (*AdminMovieLogsController) Get ¶
func (c *AdminMovieLogsController) Get() http.Handler
func (*AdminMovieLogsController) GetCreate ¶
func (c *AdminMovieLogsController) GetCreate() http.Handler
func (*AdminMovieLogsController) List ¶
func (c *AdminMovieLogsController) List() http.Handler
func (*AdminMovieLogsController) Post ¶
func (c *AdminMovieLogsController) Post() http.Handler
type HomeController ¶
func (*HomeController) ServeHTTP ¶
func (c *HomeController) ServeHTTP(w http.ResponseWriter, r *http.Request)
type LoginController ¶
type LoginController struct {
ServerSrc string
}
func (*LoginController) Get ¶
func (c *LoginController) Get() http.Handler
func (*LoginController) Post ¶
func (c *LoginController) Post() http.Handler