api

package
v0.0.0-...-dbebb78 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IHandlers

type IHandlers interface {
	AuthMiddleware() fiber.Handler
	ScreenshotCreate(ctx *fiber.Ctx) error
	ScreenshotGet(ctx *fiber.Ctx) error
	ScreenshotView(ctx *fiber.Ctx) error
	ScreenshotDelete(ctx *fiber.Ctx) error
	ScreenshotList(ctx *fiber.Ctx) error
	Serve(ctx *fiber.Ctx, status int, data interface{}) error
}

func NewHandlers

func NewHandlers(cfg *config.AppCfg, screenshotDao dao.IScreenshotDao,
	queueService services.IQueueService, storageService services.IBlobStorageService, logger log.IAppLogger) IHandlers

type Server

type Server struct {
	FiberApp  *fiber.App
	AppConfig *config.AppCfg
}

func NewServer

func NewServer(cfg *config.AppCfg) *Server

func (*Server) App

func (s *Server) App() *fiber.App

func (*Server) Start

func (s *Server) Start(handlers IHandlers) error

func (*Server) Stop

func (s *Server) Stop() error

Jump to

Keyboard shortcuts

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