handler

package
v0.0.2-rc.1 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

func New

func New(svc *service.Service) *Service

func (Service) CloseTomato

func (s Service) CloseTomato(ctx *context.Context) (err error)

func (Service) GetWorkingOnTomato

func (s Service) GetWorkingOnTomato(ctx *context.Context) error

GetWorkingOnTomato get a working on tomato clock for login user

func (*Service) RegisterRoute

func (s *Service) RegisterRoute(engine *gin.Engine)

func (Service) StartTomato

func (s Service) StartTomato(ctx *context.Context) error

StartTomato start a tomato clock if there is no working tomato clock.

Jump to

Keyboard shortcuts

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