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
Click to show internal directories.
Click to hide internal directories.