model

package
v0.0.0-...-905eacb Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SJFRequest

type SJFRequest struct {
	Name        string        `json:"name" validate:"required"`
	DurationSec float64       `json:"duration" validate:"required"`
	Duration    time.Duration // this will be calculated from DurationSec, not a part of request
}

func (*SJFRequest) CalculateDuration

func (sjfRequest *SJFRequest) CalculateDuration()

func (*SJFRequest) Validate

func (sjfRequest *SJFRequest) Validate() error

Jump to

Keyboard shortcuts

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