Documentation
¶
Overview ¶
Package openapi provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen/v2 version v2.2.0 DO NOT EDIT.
Index ¶
- func Handler(si ServerInterface) http.Handler
- func HandlerFromMux(si ServerInterface, m *http.ServeMux) http.Handler
- func HandlerFromMuxWithBaseURL(si ServerInterface, m *http.ServeMux, baseURL string) http.Handler
- func HandlerWithOptions(si ServerInterface, options StdHTTPServerOptions) http.Handler
- func NewAddEquipmentToLineRequest(server string, body AddEquipmentToLineJSONRequestBody) (*http.Request, error)
- func NewAddEquipmentToLineRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewApexchartsTimelineRequest(server string, params *ApexchartsTimelineParams) (*http.Request, error)
- func NewCreateEquipmentRequest(server string, body CreateEquipmentJSONRequestBody) (*http.Request, error)
- func NewCreateEquipmentRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateLineRequest(server string, body CreateLineJSONRequestBody) (*http.Request, error)
- func NewCreateLineRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateQualificationRuleRequest(server string, body CreateQualificationRuleJSONRequestBody) (*http.Request, error)
- func NewCreateQualificationRuleRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateSpecificationRequest(server string, body CreateSpecificationJSONRequestBody) (*http.Request, error)
- func NewCreateSpecificationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCurrentIntervalRequestWithBody(server string, params *CurrentIntervalParams, contentType string, ...) (*http.Request, error)
- func NewCurrentIntervalsListRequest(server string) (*http.Request, error)
- func NewCurrentWorkshiftRequest(server string) (*http.Request, error)
- func NewDeprecateSpecificationRequest(server string, body DeprecateSpecificationJSONRequestBody) (*http.Request, error)
- func NewDeprecateSpecificationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewEventsRequest(server string) (*http.Request, error)
- func NewFinishIntervalRequest(server string, body FinishIntervalJSONRequestBody) (*http.Request, error)
- func NewFinishIntervalRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewFinishWorkshiftRequest(server string, body FinishWorkshiftJSONRequestBody) (*http.Request, error)
- func NewFinishWorkshiftRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewIncreaseProductionRequest(server string, body IncreaseProductionJSONRequestBody) (*http.Request, error)
- func NewIncreaseProductionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewLineTopologyRequest(server string, params *LineTopologyParams) (*http.Request, error)
- func NewLinesListRequest(server string) (*http.Request, error)
- func NewMoveEquipmentInLineRequest(server string, body MoveEquipmentInLineJSONRequestBody) (*http.Request, error)
- func NewMoveEquipmentInLineRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewQualifyDowntimeRequest(server string, body QualifyDowntimeJSONRequestBody) (*http.Request, error)
- func NewQualifyDowntimeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewRemoveEquipmentFromLineRequest(server string, body RemoveEquipmentFromLineJSONRequestBody) (*http.Request, error)
- func NewRemoveEquipmentFromLineRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewRemoveQualificationRuleRequest(server string, body RemoveQualificationRuleJSONRequestBody) (*http.Request, error)
- func NewRemoveQualificationRuleRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewStartIntervalRequest(server string, body StartIntervalJSONRequestBody) (*http.Request, error)
- func NewStartIntervalRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewStartWorkshiftRequest(server string, body StartWorkshiftJSONRequestBody) (*http.Request, error)
- func NewStartWorkshiftRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- type AddEquipmentToLineCommand
- type AddEquipmentToLineJSONRequestBody
- type AddEquipmentToLineResponse
- type ApexchartsTimeline
- type ApexchartsTimelineBar
- type ApexchartsTimelineParams
- type ApexchartsTimelineResponse
- type Client
- func (c *Client) AddEquipmentToLine(ctx context.Context, body AddEquipmentToLineJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) AddEquipmentToLineWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ApexchartsTimeline(ctx context.Context, params *ApexchartsTimelineParams, ...) (*http.Response, error)
- func (c *Client) CreateEquipment(ctx context.Context, body CreateEquipmentJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateEquipmentWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateLine(ctx context.Context, body CreateLineJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateLineWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateQualificationRule(ctx context.Context, body CreateQualificationRuleJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateQualificationRuleWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateSpecification(ctx context.Context, body CreateSpecificationJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateSpecificationWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CurrentIntervalWithBody(ctx context.Context, params *CurrentIntervalParams, contentType string, ...) (*http.Response, error)
- func (c *Client) CurrentIntervalsList(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) CurrentWorkshift(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeprecateSpecification(ctx context.Context, body DeprecateSpecificationJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) DeprecateSpecificationWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) Events(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) FinishInterval(ctx context.Context, body FinishIntervalJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) FinishIntervalWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) FinishWorkshift(ctx context.Context, body FinishWorkshiftJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) FinishWorkshiftWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) IncreaseProduction(ctx context.Context, body IncreaseProductionJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) IncreaseProductionWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) LineTopology(ctx context.Context, params *LineTopologyParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) LinesList(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) MoveEquipmentInLine(ctx context.Context, body MoveEquipmentInLineJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) MoveEquipmentInLineWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) QualifyDowntime(ctx context.Context, body QualifyDowntimeJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) QualifyDowntimeWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) RemoveEquipmentFromLine(ctx context.Context, body RemoveEquipmentFromLineJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) RemoveEquipmentFromLineWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) RemoveQualificationRule(ctx context.Context, body RemoveQualificationRuleJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) RemoveQualificationRuleWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) StartInterval(ctx context.Context, body StartIntervalJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) StartIntervalWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) StartWorkshift(ctx context.Context, body StartWorkshiftJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) StartWorkshiftWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) AddEquipmentToLineWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*AddEquipmentToLineResponse, error)
- func (c *ClientWithResponses) AddEquipmentToLineWithResponse(ctx context.Context, body AddEquipmentToLineJSONRequestBody, ...) (*AddEquipmentToLineResponse, error)
- func (c *ClientWithResponses) ApexchartsTimelineWithResponse(ctx context.Context, params *ApexchartsTimelineParams, ...) (*ApexchartsTimelineResponse, error)
- func (c *ClientWithResponses) CreateEquipmentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateEquipmentResponse, error)
- func (c *ClientWithResponses) CreateEquipmentWithResponse(ctx context.Context, body CreateEquipmentJSONRequestBody, ...) (*CreateEquipmentResponse, error)
- func (c *ClientWithResponses) CreateLineWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateLineResponse, error)
- func (c *ClientWithResponses) CreateLineWithResponse(ctx context.Context, body CreateLineJSONRequestBody, ...) (*CreateLineResponse, error)
- func (c *ClientWithResponses) CreateQualificationRuleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateQualificationRuleResponse, error)
- func (c *ClientWithResponses) CreateQualificationRuleWithResponse(ctx context.Context, body CreateQualificationRuleJSONRequestBody, ...) (*CreateQualificationRuleResponse, error)
- func (c *ClientWithResponses) CreateSpecificationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateSpecificationResponse, error)
- func (c *ClientWithResponses) CreateSpecificationWithResponse(ctx context.Context, body CreateSpecificationJSONRequestBody, ...) (*CreateSpecificationResponse, error)
- func (c *ClientWithResponses) CurrentIntervalWithBodyWithResponse(ctx context.Context, params *CurrentIntervalParams, contentType string, ...) (*CurrentIntervalResponse, error)
- func (c *ClientWithResponses) CurrentIntervalsListWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*CurrentIntervalsListResponse, error)
- func (c *ClientWithResponses) CurrentWorkshiftWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*CurrentWorkshiftResponse, error)
- func (c *ClientWithResponses) DeprecateSpecificationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*DeprecateSpecificationResponse, error)
- func (c *ClientWithResponses) DeprecateSpecificationWithResponse(ctx context.Context, body DeprecateSpecificationJSONRequestBody, ...) (*DeprecateSpecificationResponse, error)
- func (c *ClientWithResponses) EventsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*EventsResponse, error)
- func (c *ClientWithResponses) FinishIntervalWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*FinishIntervalResponse, error)
- func (c *ClientWithResponses) FinishIntervalWithResponse(ctx context.Context, body FinishIntervalJSONRequestBody, ...) (*FinishIntervalResponse, error)
- func (c *ClientWithResponses) FinishWorkshiftWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*FinishWorkshiftResponse, error)
- func (c *ClientWithResponses) FinishWorkshiftWithResponse(ctx context.Context, body FinishWorkshiftJSONRequestBody, ...) (*FinishWorkshiftResponse, error)
- func (c *ClientWithResponses) IncreaseProductionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*IncreaseProductionResponse, error)
- func (c *ClientWithResponses) IncreaseProductionWithResponse(ctx context.Context, body IncreaseProductionJSONRequestBody, ...) (*IncreaseProductionResponse, error)
- func (c *ClientWithResponses) LineTopologyWithResponse(ctx context.Context, params *LineTopologyParams, reqEditors ...RequestEditorFn) (*LineTopologyResponse, error)
- func (c *ClientWithResponses) LinesListWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*LinesListResponse, error)
- func (c *ClientWithResponses) MoveEquipmentInLineWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*MoveEquipmentInLineResponse, error)
- func (c *ClientWithResponses) MoveEquipmentInLineWithResponse(ctx context.Context, body MoveEquipmentInLineJSONRequestBody, ...) (*MoveEquipmentInLineResponse, error)
- func (c *ClientWithResponses) QualifyDowntimeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*QualifyDowntimeResponse, error)
- func (c *ClientWithResponses) QualifyDowntimeWithResponse(ctx context.Context, body QualifyDowntimeJSONRequestBody, ...) (*QualifyDowntimeResponse, error)
- func (c *ClientWithResponses) RemoveEquipmentFromLineWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*RemoveEquipmentFromLineResponse, error)
- func (c *ClientWithResponses) RemoveEquipmentFromLineWithResponse(ctx context.Context, body RemoveEquipmentFromLineJSONRequestBody, ...) (*RemoveEquipmentFromLineResponse, error)
- func (c *ClientWithResponses) RemoveQualificationRuleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*RemoveQualificationRuleResponse, error)
- func (c *ClientWithResponses) RemoveQualificationRuleWithResponse(ctx context.Context, body RemoveQualificationRuleJSONRequestBody, ...) (*RemoveQualificationRuleResponse, error)
- func (c *ClientWithResponses) StartIntervalWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*StartIntervalResponse, error)
- func (c *ClientWithResponses) StartIntervalWithResponse(ctx context.Context, body StartIntervalJSONRequestBody, ...) (*StartIntervalResponse, error)
- func (c *ClientWithResponses) StartWorkshiftWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*StartWorkshiftResponse, error)
- func (c *ClientWithResponses) StartWorkshiftWithResponse(ctx context.Context, body StartWorkshiftJSONRequestBody, ...) (*StartWorkshiftResponse, error)
- type ClientWithResponsesInterface
- type CreateEquipmentCommand
- type CreateEquipmentJSONRequestBody
- type CreateEquipmentResponse
- type CreateLineCommand
- type CreateLineJSONRequestBody
- type CreateLineResponse
- type CreateQualificationRuleCommand
- type CreateQualificationRuleJSONRequestBody
- type CreateQualificationRuleResponse
- type CreateSpecificationCommand
- type CreateSpecificationJSONRequestBody
- type CreateSpecificationResponse
- type CurrentInterval
- type CurrentIntervalMultipartBody
- type CurrentIntervalMultipartRequestBody
- type CurrentIntervalParams
- type CurrentIntervalResponse
- type CurrentIntervalsList
- type CurrentIntervalsListResponse
- type CurrentWorkshift
- type CurrentWorkshiftResponse
- type DeprecateSpecificationCommand
- type DeprecateSpecificationJSONRequestBody
- type DeprecateSpecificationResponse
- type DowntimeQualifiedEvent
- type EquipmentAddedToLineEvent
- type EquipmentCategory
- type EquipmentCreatedEvent
- type EquipmentID
- type EquipmentMovedInLineEvent
- type EquipmentName
- type EquipmentRemovedFromLineEvent
- type EventType
- type EventsResponse
- type FinishIntervalCommand
- type FinishIntervalJSONRequestBody
- type FinishIntervalResponse
- type FinishWorkshiftCommand
- type FinishWorkshiftJSONRequestBody
- type FinishWorkshiftResponse
- type HttpRequestDoer
- type IncreaseProductionCommand
- type IncreaseProductionJSONRequestBody
- type IncreaseProductionResponse
- type IntervalCategory
- type IntervalFinishedAt
- type IntervalID
- type IntervalStartedEvent
- type IntervalStatus
- type InvalidParamFormatError
- type LineCreatedEvent
- type LineID
- type LineName
- type LineTopology
- type LineTopologyItem
- type LineTopologyParams
- type LineTopologyResponse
- type LinesList
- type LinesListItem
- type LinesListResponse
- type MessageEvent
- type MessageEvent_Data
- func (t MessageEvent_Data) AsDowntimeQualifiedEvent() (DowntimeQualifiedEvent, error)
- func (t MessageEvent_Data) AsEquipmentAddedToLineEvent() (EquipmentAddedToLineEvent, error)
- func (t MessageEvent_Data) AsEquipmentCreatedEvent() (EquipmentCreatedEvent, error)
- func (t MessageEvent_Data) AsEquipmentMovedInLineEvent() (EquipmentMovedInLineEvent, error)
- func (t MessageEvent_Data) AsEquipmentRemovedFromLineEvent() (EquipmentRemovedFromLineEvent, error)
- func (t MessageEvent_Data) AsIntervalFinishedAt() (IntervalFinishedAt, error)
- func (t MessageEvent_Data) AsIntervalStartedEvent() (IntervalStartedEvent, error)
- func (t MessageEvent_Data) AsLineCreatedEvent() (LineCreatedEvent, error)
- func (t MessageEvent_Data) AsQualificationRuleCreatedEvent() (QualificationRuleCreatedEvent, error)
- func (t MessageEvent_Data) AsQualificationRuleRemovedEvent() (QualificationRuleRemovedEvent, error)
- func (t MessageEvent_Data) AsSpecificationCreatedEvent() (SpecificationCreatedEvent, error)
- func (t MessageEvent_Data) AsSpecificationDeprecatedEvent() (SpecificationDeprecatedEvent, error)
- func (t MessageEvent_Data) AsWorkshiftFinishedEvent() (WorkshiftFinishedEvent, error)
- func (t MessageEvent_Data) AsWorkshiftStartedEvent() (WorkshiftStartedEvent, error)
- func (t *MessageEvent_Data) FromDowntimeQualifiedEvent(v DowntimeQualifiedEvent) error
- func (t *MessageEvent_Data) FromEquipmentAddedToLineEvent(v EquipmentAddedToLineEvent) error
- func (t *MessageEvent_Data) FromEquipmentCreatedEvent(v EquipmentCreatedEvent) error
- func (t *MessageEvent_Data) FromEquipmentMovedInLineEvent(v EquipmentMovedInLineEvent) error
- func (t *MessageEvent_Data) FromEquipmentRemovedFromLineEvent(v EquipmentRemovedFromLineEvent) error
- func (t *MessageEvent_Data) FromIntervalFinishedAt(v IntervalFinishedAt) error
- func (t *MessageEvent_Data) FromIntervalStartedEvent(v IntervalStartedEvent) error
- func (t *MessageEvent_Data) FromLineCreatedEvent(v LineCreatedEvent) error
- func (t *MessageEvent_Data) FromQualificationRuleCreatedEvent(v QualificationRuleCreatedEvent) error
- func (t *MessageEvent_Data) FromQualificationRuleRemovedEvent(v QualificationRuleRemovedEvent) error
- func (t *MessageEvent_Data) FromSpecificationCreatedEvent(v SpecificationCreatedEvent) error
- func (t *MessageEvent_Data) FromSpecificationDeprecatedEvent(v SpecificationDeprecatedEvent) error
- func (t *MessageEvent_Data) FromWorkshiftFinishedEvent(v WorkshiftFinishedEvent) error
- func (t *MessageEvent_Data) FromWorkshiftStartedEvent(v WorkshiftStartedEvent) error
- func (t MessageEvent_Data) MarshalJSON() ([]byte, error)
- func (t *MessageEvent_Data) MergeDowntimeQualifiedEvent(v DowntimeQualifiedEvent) error
- func (t *MessageEvent_Data) MergeEquipmentAddedToLineEvent(v EquipmentAddedToLineEvent) error
- func (t *MessageEvent_Data) MergeEquipmentCreatedEvent(v EquipmentCreatedEvent) error
- func (t *MessageEvent_Data) MergeEquipmentMovedInLineEvent(v EquipmentMovedInLineEvent) error
- func (t *MessageEvent_Data) MergeEquipmentRemovedFromLineEvent(v EquipmentRemovedFromLineEvent) error
- func (t *MessageEvent_Data) MergeIntervalFinishedAt(v IntervalFinishedAt) error
- func (t *MessageEvent_Data) MergeIntervalStartedEvent(v IntervalStartedEvent) error
- func (t *MessageEvent_Data) MergeLineCreatedEvent(v LineCreatedEvent) error
- func (t *MessageEvent_Data) MergeQualificationRuleCreatedEvent(v QualificationRuleCreatedEvent) error
- func (t *MessageEvent_Data) MergeQualificationRuleRemovedEvent(v QualificationRuleRemovedEvent) error
- func (t *MessageEvent_Data) MergeSpecificationCreatedEvent(v SpecificationCreatedEvent) error
- func (t *MessageEvent_Data) MergeSpecificationDeprecatedEvent(v SpecificationDeprecatedEvent) error
- func (t *MessageEvent_Data) MergeWorkshiftFinishedEvent(v WorkshiftFinishedEvent) error
- func (t *MessageEvent_Data) MergeWorkshiftStartedEvent(v WorkshiftStartedEvent) error
- func (t *MessageEvent_Data) UnmarshalJSON(b []byte) error
- type MiddlewareFunc
- type MoveEquipmentInLineCommand
- type MoveEquipmentInLineCommandDirection
- type MoveEquipmentInLineJSONRequestBody
- type MoveEquipmentInLineResponse
- type ProductionAmount
- type ProductionCategory
- type QualificationComment
- type QualificationRuleCreatedEvent
- type QualificationRuleRemovedEvent
- type QualifyDowntimeCommand
- type QualifyDowntimeJSONRequestBody
- type QualifyDowntimeResponse
- type RemoveEquipmentFromLineCommand
- type RemoveEquipmentFromLineJSONRequestBody
- type RemoveEquipmentFromLineResponse
- type RemoveQualificationRuleCommand
- type RemoveQualificationRuleJSONRequestBody
- type RemoveQualificationRuleResponse
- type RequestEditorFn
- type RequiredHeaderError
- type RequiredParamError
- type ServerInterface
- type ServerInterfaceWrapper
- func (siw *ServerInterfaceWrapper) AddEquipmentToLine(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ApexchartsTimeline(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateEquipment(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateLine(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateQualificationRule(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateSpecification(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CurrentInterval(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CurrentIntervalsList(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CurrentWorkshift(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeprecateSpecification(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) Events(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) FinishInterval(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) FinishWorkshift(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) IncreaseProduction(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) LineTopology(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) LinesList(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) MoveEquipmentInLine(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) QualifyDowntime(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) RemoveEquipmentFromLine(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) RemoveQualificationRule(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) StartInterval(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) StartWorkshift(w http.ResponseWriter, r *http.Request)
- type SpecificationCode
- type SpecificationCreatedEvent
- type SpecificationDeprecatedEvent
- type SpecificationDescription
- type SpecificationID
- type StartIntervalCommand
- type StartIntervalJSONRequestBody
- type StartIntervalResponse
- type StartWorkshiftCommand
- type StartWorkshiftJSONRequestBody
- type StartWorkshiftResponse
- type StdHTTPServerOptions
- type TooManyValuesForParamError
- type UnescapedCookieParamError
- type UnmarshalingParamError
- type WorkshiftFinishedEvent
- type WorkshiftID
- type WorkshiftName
- type WorkshiftStartedEvent
- type WorkshiftStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Handler ¶
func Handler(si ServerInterface) http.Handler
Handler creates http.Handler with routing matching OpenAPI spec.
func HandlerFromMux ¶
func HandlerFromMux(si ServerInterface, m *http.ServeMux) http.Handler
HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.
func HandlerWithOptions ¶
func HandlerWithOptions(si ServerInterface, options StdHTTPServerOptions) http.Handler
HandlerWithOptions creates http.Handler with additional options
func NewAddEquipmentToLineRequest ¶
func NewAddEquipmentToLineRequest(server string, body AddEquipmentToLineJSONRequestBody) (*http.Request, error)
NewAddEquipmentToLineRequest calls the generic AddEquipmentToLine builder with application/json body
func NewAddEquipmentToLineRequestWithBody ¶
func NewAddEquipmentToLineRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewAddEquipmentToLineRequestWithBody generates requests for AddEquipmentToLine with any type of body
func NewApexchartsTimelineRequest ¶
func NewApexchartsTimelineRequest(server string, params *ApexchartsTimelineParams) (*http.Request, error)
NewApexchartsTimelineRequest generates requests for ApexchartsTimeline
func NewCreateEquipmentRequest ¶
func NewCreateEquipmentRequest(server string, body CreateEquipmentJSONRequestBody) (*http.Request, error)
NewCreateEquipmentRequest calls the generic CreateEquipment builder with application/json body
func NewCreateEquipmentRequestWithBody ¶
func NewCreateEquipmentRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateEquipmentRequestWithBody generates requests for CreateEquipment with any type of body
func NewCreateLineRequest ¶
func NewCreateLineRequest(server string, body CreateLineJSONRequestBody) (*http.Request, error)
NewCreateLineRequest calls the generic CreateLine builder with application/json body
func NewCreateLineRequestWithBody ¶
func NewCreateLineRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateLineRequestWithBody generates requests for CreateLine with any type of body
func NewCreateQualificationRuleRequest ¶
func NewCreateQualificationRuleRequest(server string, body CreateQualificationRuleJSONRequestBody) (*http.Request, error)
NewCreateQualificationRuleRequest calls the generic CreateQualificationRule builder with application/json body
func NewCreateQualificationRuleRequestWithBody ¶
func NewCreateQualificationRuleRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateQualificationRuleRequestWithBody generates requests for CreateQualificationRule with any type of body
func NewCreateSpecificationRequest ¶
func NewCreateSpecificationRequest(server string, body CreateSpecificationJSONRequestBody) (*http.Request, error)
NewCreateSpecificationRequest calls the generic CreateSpecification builder with application/json body
func NewCreateSpecificationRequestWithBody ¶
func NewCreateSpecificationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateSpecificationRequestWithBody generates requests for CreateSpecification with any type of body
func NewCurrentIntervalRequestWithBody ¶
func NewCurrentIntervalRequestWithBody(server string, params *CurrentIntervalParams, contentType string, body io.Reader) (*http.Request, error)
NewCurrentIntervalRequestWithBody generates requests for CurrentInterval with any type of body
func NewCurrentIntervalsListRequest ¶
NewCurrentIntervalsListRequest generates requests for CurrentIntervalsList
func NewCurrentWorkshiftRequest ¶
NewCurrentWorkshiftRequest generates requests for CurrentWorkshift
func NewDeprecateSpecificationRequest ¶
func NewDeprecateSpecificationRequest(server string, body DeprecateSpecificationJSONRequestBody) (*http.Request, error)
NewDeprecateSpecificationRequest calls the generic DeprecateSpecification builder with application/json body
func NewDeprecateSpecificationRequestWithBody ¶
func NewDeprecateSpecificationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewDeprecateSpecificationRequestWithBody generates requests for DeprecateSpecification with any type of body
func NewEventsRequest ¶
NewEventsRequest generates requests for Events
func NewFinishIntervalRequest ¶
func NewFinishIntervalRequest(server string, body FinishIntervalJSONRequestBody) (*http.Request, error)
NewFinishIntervalRequest calls the generic FinishInterval builder with application/json body
func NewFinishIntervalRequestWithBody ¶
func NewFinishIntervalRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewFinishIntervalRequestWithBody generates requests for FinishInterval with any type of body
func NewFinishWorkshiftRequest ¶
func NewFinishWorkshiftRequest(server string, body FinishWorkshiftJSONRequestBody) (*http.Request, error)
NewFinishWorkshiftRequest calls the generic FinishWorkshift builder with application/json body
func NewFinishWorkshiftRequestWithBody ¶
func NewFinishWorkshiftRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewFinishWorkshiftRequestWithBody generates requests for FinishWorkshift with any type of body
func NewIncreaseProductionRequest ¶
func NewIncreaseProductionRequest(server string, body IncreaseProductionJSONRequestBody) (*http.Request, error)
NewIncreaseProductionRequest calls the generic IncreaseProduction builder with application/json body
func NewIncreaseProductionRequestWithBody ¶
func NewIncreaseProductionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewIncreaseProductionRequestWithBody generates requests for IncreaseProduction with any type of body
func NewLineTopologyRequest ¶
func NewLineTopologyRequest(server string, params *LineTopologyParams) (*http.Request, error)
NewLineTopologyRequest generates requests for LineTopology
func NewLinesListRequest ¶
NewLinesListRequest generates requests for LinesList
func NewMoveEquipmentInLineRequest ¶
func NewMoveEquipmentInLineRequest(server string, body MoveEquipmentInLineJSONRequestBody) (*http.Request, error)
NewMoveEquipmentInLineRequest calls the generic MoveEquipmentInLine builder with application/json body
func NewMoveEquipmentInLineRequestWithBody ¶
func NewMoveEquipmentInLineRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewMoveEquipmentInLineRequestWithBody generates requests for MoveEquipmentInLine with any type of body
func NewQualifyDowntimeRequest ¶
func NewQualifyDowntimeRequest(server string, body QualifyDowntimeJSONRequestBody) (*http.Request, error)
NewQualifyDowntimeRequest calls the generic QualifyDowntime builder with application/json body
func NewQualifyDowntimeRequestWithBody ¶
func NewQualifyDowntimeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewQualifyDowntimeRequestWithBody generates requests for QualifyDowntime with any type of body
func NewRemoveEquipmentFromLineRequest ¶
func NewRemoveEquipmentFromLineRequest(server string, body RemoveEquipmentFromLineJSONRequestBody) (*http.Request, error)
NewRemoveEquipmentFromLineRequest calls the generic RemoveEquipmentFromLine builder with application/json body
func NewRemoveEquipmentFromLineRequestWithBody ¶
func NewRemoveEquipmentFromLineRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewRemoveEquipmentFromLineRequestWithBody generates requests for RemoveEquipmentFromLine with any type of body
func NewRemoveQualificationRuleRequest ¶
func NewRemoveQualificationRuleRequest(server string, body RemoveQualificationRuleJSONRequestBody) (*http.Request, error)
NewRemoveQualificationRuleRequest calls the generic RemoveQualificationRule builder with application/json body
func NewRemoveQualificationRuleRequestWithBody ¶
func NewRemoveQualificationRuleRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewRemoveQualificationRuleRequestWithBody generates requests for RemoveQualificationRule with any type of body
func NewStartIntervalRequest ¶
func NewStartIntervalRequest(server string, body StartIntervalJSONRequestBody) (*http.Request, error)
NewStartIntervalRequest calls the generic StartInterval builder with application/json body
func NewStartIntervalRequestWithBody ¶
func NewStartIntervalRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewStartIntervalRequestWithBody generates requests for StartInterval with any type of body
func NewStartWorkshiftRequest ¶
func NewStartWorkshiftRequest(server string, body StartWorkshiftJSONRequestBody) (*http.Request, error)
NewStartWorkshiftRequest calls the generic StartWorkshift builder with application/json body
Types ¶
type AddEquipmentToLineCommand ¶
type AddEquipmentToLineCommand struct {
// EquipmentId Equipment id
EquipmentId EquipmentID `json:"equipment_id"`
// Id Line id
Id LineID `json:"id"`
}
AddEquipmentToLineCommand Command to add equipment to line
type AddEquipmentToLineJSONRequestBody ¶
type AddEquipmentToLineJSONRequestBody = AddEquipmentToLineCommand
AddEquipmentToLineJSONRequestBody defines body for AddEquipmentToLine for application/json ContentType.
type AddEquipmentToLineResponse ¶
func ParseAddEquipmentToLineResponse ¶
func ParseAddEquipmentToLineResponse(rsp *http.Response) (*AddEquipmentToLineResponse, error)
ParseAddEquipmentToLineResponse parses an HTTP response from a AddEquipmentToLineWithResponse call
func (AddEquipmentToLineResponse) Status ¶
func (r AddEquipmentToLineResponse) Status() string
Status returns HTTPResponse.Status
func (AddEquipmentToLineResponse) StatusCode ¶
func (r AddEquipmentToLineResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ApexchartsTimeline ¶
type ApexchartsTimeline struct {
// Data Timeline data
Data []ApexchartsTimelineBar `json:"data"`
// Name Interval category
Name IntervalCategory `json:"name"`
}
ApexchartsTimeline defines model for ApexchartsTimeline.
type ApexchartsTimelineBar ¶
type ApexchartsTimelineBar struct {
// Id Worktime id
Id IntervalID `json:"id"`
// X Equipment name
X EquipmentName `json:"x"`
// Y Bar interval
Y []int `json:"y"`
}
ApexchartsTimelineBar defines model for ApexchartsTimelineBar.
type ApexchartsTimelineParams ¶
type ApexchartsTimelineParams struct {
// WorkshiftId Workshift id
WorkshiftId WorkshiftID `form:"workshift_id" json:"workshift_id"`
// EquipmentId Equipment id
EquipmentId EquipmentID `form:"equipment_id" json:"equipment_id"`
}
ApexchartsTimelineParams defines parameters for ApexchartsTimeline.
type ApexchartsTimelineResponse ¶
type ApexchartsTimelineResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]ApexchartsTimeline
}
func ParseApexchartsTimelineResponse ¶
func ParseApexchartsTimelineResponse(rsp *http.Response) (*ApexchartsTimelineResponse, error)
ParseApexchartsTimelineResponse parses an HTTP response from a ApexchartsTimelineWithResponse call
func (ApexchartsTimelineResponse) Status ¶
func (r ApexchartsTimelineResponse) Status() string
Status returns HTTPResponse.Status
func (ApexchartsTimelineResponse) StatusCode ¶
func (r ApexchartsTimelineResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Client ¶
type Client struct {
// The endpoint of the server conforming to this interface, with scheme,
// https://api.deepmap.com for example. This can contain a path relative
// to the server, such as https://api.deepmap.com/dev-test, and all the
// paths in the swagger spec will be appended to the server.
Server string
// Doer for performing requests, typically a *http.Client with any
// customized settings, such as certificate chains.
Client HttpRequestDoer
// A list of callbacks for modifying requests which are generated before sending over
// the network.
RequestEditors []RequestEditorFn
}
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) AddEquipmentToLine ¶
func (c *Client) AddEquipmentToLine(ctx context.Context, body AddEquipmentToLineJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AddEquipmentToLineWithBody ¶
func (*Client) ApexchartsTimeline ¶
func (c *Client) ApexchartsTimeline(ctx context.Context, params *ApexchartsTimelineParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateEquipment ¶
func (c *Client) CreateEquipment(ctx context.Context, body CreateEquipmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateEquipmentWithBody ¶
func (*Client) CreateLine ¶
func (c *Client) CreateLine(ctx context.Context, body CreateLineJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateLineWithBody ¶
func (*Client) CreateQualificationRule ¶
func (c *Client) CreateQualificationRule(ctx context.Context, body CreateQualificationRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateQualificationRuleWithBody ¶
func (*Client) CreateSpecification ¶
func (c *Client) CreateSpecification(ctx context.Context, body CreateSpecificationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateSpecificationWithBody ¶
func (*Client) CurrentIntervalWithBody ¶
func (*Client) CurrentIntervalsList ¶
func (*Client) CurrentWorkshift ¶
func (*Client) DeprecateSpecification ¶
func (c *Client) DeprecateSpecification(ctx context.Context, body DeprecateSpecificationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeprecateSpecificationWithBody ¶
func (*Client) FinishInterval ¶
func (c *Client) FinishInterval(ctx context.Context, body FinishIntervalJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) FinishIntervalWithBody ¶
func (*Client) FinishWorkshift ¶
func (c *Client) FinishWorkshift(ctx context.Context, body FinishWorkshiftJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) FinishWorkshiftWithBody ¶
func (*Client) IncreaseProduction ¶
func (c *Client) IncreaseProduction(ctx context.Context, body IncreaseProductionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) IncreaseProductionWithBody ¶
func (*Client) LineTopology ¶
func (c *Client) LineTopology(ctx context.Context, params *LineTopologyParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) MoveEquipmentInLine ¶
func (c *Client) MoveEquipmentInLine(ctx context.Context, body MoveEquipmentInLineJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) MoveEquipmentInLineWithBody ¶
func (*Client) QualifyDowntime ¶
func (c *Client) QualifyDowntime(ctx context.Context, body QualifyDowntimeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) QualifyDowntimeWithBody ¶
func (*Client) RemoveEquipmentFromLine ¶
func (c *Client) RemoveEquipmentFromLine(ctx context.Context, body RemoveEquipmentFromLineJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) RemoveEquipmentFromLineWithBody ¶
func (*Client) RemoveQualificationRule ¶
func (c *Client) RemoveQualificationRule(ctx context.Context, body RemoveQualificationRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) RemoveQualificationRuleWithBody ¶
func (*Client) StartInterval ¶
func (c *Client) StartInterval(ctx context.Context, body StartIntervalJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) StartIntervalWithBody ¶
func (*Client) StartWorkshift ¶
func (c *Client) StartWorkshift(ctx context.Context, body StartWorkshiftJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
type ClientInterface ¶
type ClientInterface interface {
// ApexchartsTimeline request
ApexchartsTimeline(ctx context.Context, params *ApexchartsTimelineParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateEquipmentWithBody request with any body
CreateEquipmentWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateEquipment(ctx context.Context, body CreateEquipmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// Events request
Events(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// FinishIntervalWithBody request with any body
FinishIntervalWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
FinishInterval(ctx context.Context, body FinishIntervalJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// StartIntervalWithBody request with any body
StartIntervalWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
StartInterval(ctx context.Context, body StartIntervalJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// CurrentIntervalWithBody request with any body
CurrentIntervalWithBody(ctx context.Context, params *CurrentIntervalParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CurrentIntervalsList request
CurrentIntervalsList(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// AddEquipmentToLineWithBody request with any body
AddEquipmentToLineWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AddEquipmentToLine(ctx context.Context, body AddEquipmentToLineJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateLineWithBody request with any body
CreateLineWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateLine(ctx context.Context, body CreateLineJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// MoveEquipmentInLineWithBody request with any body
MoveEquipmentInLineWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
MoveEquipmentInLine(ctx context.Context, body MoveEquipmentInLineJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// RemoveEquipmentFromLineWithBody request with any body
RemoveEquipmentFromLineWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
RemoveEquipmentFromLine(ctx context.Context, body RemoveEquipmentFromLineJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// LinesList request
LinesList(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// LineTopology request
LineTopology(ctx context.Context, params *LineTopologyParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// IncreaseProductionWithBody request with any body
IncreaseProductionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
IncreaseProduction(ctx context.Context, body IncreaseProductionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateQualificationRuleWithBody request with any body
CreateQualificationRuleWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateQualificationRule(ctx context.Context, body CreateQualificationRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// QualifyDowntimeWithBody request with any body
QualifyDowntimeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
QualifyDowntime(ctx context.Context, body QualifyDowntimeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// RemoveQualificationRuleWithBody request with any body
RemoveQualificationRuleWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
RemoveQualificationRule(ctx context.Context, body RemoveQualificationRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateSpecificationWithBody request with any body
CreateSpecificationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateSpecification(ctx context.Context, body CreateSpecificationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeprecateSpecificationWithBody request with any body
DeprecateSpecificationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
DeprecateSpecification(ctx context.Context, body DeprecateSpecificationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// FinishWorkshiftWithBody request with any body
FinishWorkshiftWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
FinishWorkshift(ctx context.Context, body FinishWorkshiftJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// StartWorkshiftWithBody request with any body
StartWorkshiftWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
StartWorkshift(ctx context.Context, body StartWorkshiftJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// CurrentWorkshift request
CurrentWorkshift(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
}
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) AddEquipmentToLineWithBodyWithResponse ¶
func (c *ClientWithResponses) AddEquipmentToLineWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddEquipmentToLineResponse, error)
AddEquipmentToLineWithBodyWithResponse request with arbitrary body returning *AddEquipmentToLineResponse
func (*ClientWithResponses) AddEquipmentToLineWithResponse ¶
func (c *ClientWithResponses) AddEquipmentToLineWithResponse(ctx context.Context, body AddEquipmentToLineJSONRequestBody, reqEditors ...RequestEditorFn) (*AddEquipmentToLineResponse, error)
func (*ClientWithResponses) ApexchartsTimelineWithResponse ¶
func (c *ClientWithResponses) ApexchartsTimelineWithResponse(ctx context.Context, params *ApexchartsTimelineParams, reqEditors ...RequestEditorFn) (*ApexchartsTimelineResponse, error)
ApexchartsTimelineWithResponse request returning *ApexchartsTimelineResponse
func (*ClientWithResponses) CreateEquipmentWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateEquipmentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateEquipmentResponse, error)
CreateEquipmentWithBodyWithResponse request with arbitrary body returning *CreateEquipmentResponse
func (*ClientWithResponses) CreateEquipmentWithResponse ¶
func (c *ClientWithResponses) CreateEquipmentWithResponse(ctx context.Context, body CreateEquipmentJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateEquipmentResponse, error)
func (*ClientWithResponses) CreateLineWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateLineWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateLineResponse, error)
CreateLineWithBodyWithResponse request with arbitrary body returning *CreateLineResponse
func (*ClientWithResponses) CreateLineWithResponse ¶
func (c *ClientWithResponses) CreateLineWithResponse(ctx context.Context, body CreateLineJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateLineResponse, error)
func (*ClientWithResponses) CreateQualificationRuleWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateQualificationRuleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateQualificationRuleResponse, error)
CreateQualificationRuleWithBodyWithResponse request with arbitrary body returning *CreateQualificationRuleResponse
func (*ClientWithResponses) CreateQualificationRuleWithResponse ¶
func (c *ClientWithResponses) CreateQualificationRuleWithResponse(ctx context.Context, body CreateQualificationRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateQualificationRuleResponse, error)
func (*ClientWithResponses) CreateSpecificationWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateSpecificationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSpecificationResponse, error)
CreateSpecificationWithBodyWithResponse request with arbitrary body returning *CreateSpecificationResponse
func (*ClientWithResponses) CreateSpecificationWithResponse ¶
func (c *ClientWithResponses) CreateSpecificationWithResponse(ctx context.Context, body CreateSpecificationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSpecificationResponse, error)
func (*ClientWithResponses) CurrentIntervalWithBodyWithResponse ¶
func (c *ClientWithResponses) CurrentIntervalWithBodyWithResponse(ctx context.Context, params *CurrentIntervalParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CurrentIntervalResponse, error)
CurrentIntervalWithBodyWithResponse request with arbitrary body returning *CurrentIntervalResponse
func (*ClientWithResponses) CurrentIntervalsListWithResponse ¶
func (c *ClientWithResponses) CurrentIntervalsListWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*CurrentIntervalsListResponse, error)
CurrentIntervalsListWithResponse request returning *CurrentIntervalsListResponse
func (*ClientWithResponses) CurrentWorkshiftWithResponse ¶
func (c *ClientWithResponses) CurrentWorkshiftWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*CurrentWorkshiftResponse, error)
CurrentWorkshiftWithResponse request returning *CurrentWorkshiftResponse
func (*ClientWithResponses) DeprecateSpecificationWithBodyWithResponse ¶
func (c *ClientWithResponses) DeprecateSpecificationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeprecateSpecificationResponse, error)
DeprecateSpecificationWithBodyWithResponse request with arbitrary body returning *DeprecateSpecificationResponse
func (*ClientWithResponses) DeprecateSpecificationWithResponse ¶
func (c *ClientWithResponses) DeprecateSpecificationWithResponse(ctx context.Context, body DeprecateSpecificationJSONRequestBody, reqEditors ...RequestEditorFn) (*DeprecateSpecificationResponse, error)
func (*ClientWithResponses) EventsWithResponse ¶
func (c *ClientWithResponses) EventsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*EventsResponse, error)
EventsWithResponse request returning *EventsResponse
func (*ClientWithResponses) FinishIntervalWithBodyWithResponse ¶
func (c *ClientWithResponses) FinishIntervalWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FinishIntervalResponse, error)
FinishIntervalWithBodyWithResponse request with arbitrary body returning *FinishIntervalResponse
func (*ClientWithResponses) FinishIntervalWithResponse ¶
func (c *ClientWithResponses) FinishIntervalWithResponse(ctx context.Context, body FinishIntervalJSONRequestBody, reqEditors ...RequestEditorFn) (*FinishIntervalResponse, error)
func (*ClientWithResponses) FinishWorkshiftWithBodyWithResponse ¶
func (c *ClientWithResponses) FinishWorkshiftWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FinishWorkshiftResponse, error)
FinishWorkshiftWithBodyWithResponse request with arbitrary body returning *FinishWorkshiftResponse
func (*ClientWithResponses) FinishWorkshiftWithResponse ¶
func (c *ClientWithResponses) FinishWorkshiftWithResponse(ctx context.Context, body FinishWorkshiftJSONRequestBody, reqEditors ...RequestEditorFn) (*FinishWorkshiftResponse, error)
func (*ClientWithResponses) IncreaseProductionWithBodyWithResponse ¶
func (c *ClientWithResponses) IncreaseProductionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IncreaseProductionResponse, error)
IncreaseProductionWithBodyWithResponse request with arbitrary body returning *IncreaseProductionResponse
func (*ClientWithResponses) IncreaseProductionWithResponse ¶
func (c *ClientWithResponses) IncreaseProductionWithResponse(ctx context.Context, body IncreaseProductionJSONRequestBody, reqEditors ...RequestEditorFn) (*IncreaseProductionResponse, error)
func (*ClientWithResponses) LineTopologyWithResponse ¶
func (c *ClientWithResponses) LineTopologyWithResponse(ctx context.Context, params *LineTopologyParams, reqEditors ...RequestEditorFn) (*LineTopologyResponse, error)
LineTopologyWithResponse request returning *LineTopologyResponse
func (*ClientWithResponses) LinesListWithResponse ¶
func (c *ClientWithResponses) LinesListWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*LinesListResponse, error)
LinesListWithResponse request returning *LinesListResponse
func (*ClientWithResponses) MoveEquipmentInLineWithBodyWithResponse ¶
func (c *ClientWithResponses) MoveEquipmentInLineWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MoveEquipmentInLineResponse, error)
MoveEquipmentInLineWithBodyWithResponse request with arbitrary body returning *MoveEquipmentInLineResponse
func (*ClientWithResponses) MoveEquipmentInLineWithResponse ¶
func (c *ClientWithResponses) MoveEquipmentInLineWithResponse(ctx context.Context, body MoveEquipmentInLineJSONRequestBody, reqEditors ...RequestEditorFn) (*MoveEquipmentInLineResponse, error)
func (*ClientWithResponses) QualifyDowntimeWithBodyWithResponse ¶
func (c *ClientWithResponses) QualifyDowntimeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QualifyDowntimeResponse, error)
QualifyDowntimeWithBodyWithResponse request with arbitrary body returning *QualifyDowntimeResponse
func (*ClientWithResponses) QualifyDowntimeWithResponse ¶
func (c *ClientWithResponses) QualifyDowntimeWithResponse(ctx context.Context, body QualifyDowntimeJSONRequestBody, reqEditors ...RequestEditorFn) (*QualifyDowntimeResponse, error)
func (*ClientWithResponses) RemoveEquipmentFromLineWithBodyWithResponse ¶
func (c *ClientWithResponses) RemoveEquipmentFromLineWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemoveEquipmentFromLineResponse, error)
RemoveEquipmentFromLineWithBodyWithResponse request with arbitrary body returning *RemoveEquipmentFromLineResponse
func (*ClientWithResponses) RemoveEquipmentFromLineWithResponse ¶
func (c *ClientWithResponses) RemoveEquipmentFromLineWithResponse(ctx context.Context, body RemoveEquipmentFromLineJSONRequestBody, reqEditors ...RequestEditorFn) (*RemoveEquipmentFromLineResponse, error)
func (*ClientWithResponses) RemoveQualificationRuleWithBodyWithResponse ¶
func (c *ClientWithResponses) RemoveQualificationRuleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemoveQualificationRuleResponse, error)
RemoveQualificationRuleWithBodyWithResponse request with arbitrary body returning *RemoveQualificationRuleResponse
func (*ClientWithResponses) RemoveQualificationRuleWithResponse ¶
func (c *ClientWithResponses) RemoveQualificationRuleWithResponse(ctx context.Context, body RemoveQualificationRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*RemoveQualificationRuleResponse, error)
func (*ClientWithResponses) StartIntervalWithBodyWithResponse ¶
func (c *ClientWithResponses) StartIntervalWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartIntervalResponse, error)
StartIntervalWithBodyWithResponse request with arbitrary body returning *StartIntervalResponse
func (*ClientWithResponses) StartIntervalWithResponse ¶
func (c *ClientWithResponses) StartIntervalWithResponse(ctx context.Context, body StartIntervalJSONRequestBody, reqEditors ...RequestEditorFn) (*StartIntervalResponse, error)
func (*ClientWithResponses) StartWorkshiftWithBodyWithResponse ¶
func (c *ClientWithResponses) StartWorkshiftWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartWorkshiftResponse, error)
StartWorkshiftWithBodyWithResponse request with arbitrary body returning *StartWorkshiftResponse
func (*ClientWithResponses) StartWorkshiftWithResponse ¶
func (c *ClientWithResponses) StartWorkshiftWithResponse(ctx context.Context, body StartWorkshiftJSONRequestBody, reqEditors ...RequestEditorFn) (*StartWorkshiftResponse, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// ApexchartsTimelineWithResponse request
ApexchartsTimelineWithResponse(ctx context.Context, params *ApexchartsTimelineParams, reqEditors ...RequestEditorFn) (*ApexchartsTimelineResponse, error)
// CreateEquipmentWithBodyWithResponse request with any body
CreateEquipmentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateEquipmentResponse, error)
CreateEquipmentWithResponse(ctx context.Context, body CreateEquipmentJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateEquipmentResponse, error)
// EventsWithResponse request
EventsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*EventsResponse, error)
// FinishIntervalWithBodyWithResponse request with any body
FinishIntervalWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FinishIntervalResponse, error)
FinishIntervalWithResponse(ctx context.Context, body FinishIntervalJSONRequestBody, reqEditors ...RequestEditorFn) (*FinishIntervalResponse, error)
// StartIntervalWithBodyWithResponse request with any body
StartIntervalWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartIntervalResponse, error)
StartIntervalWithResponse(ctx context.Context, body StartIntervalJSONRequestBody, reqEditors ...RequestEditorFn) (*StartIntervalResponse, error)
// CurrentIntervalWithBodyWithResponse request with any body
CurrentIntervalWithBodyWithResponse(ctx context.Context, params *CurrentIntervalParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CurrentIntervalResponse, error)
// CurrentIntervalsListWithResponse request
CurrentIntervalsListWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*CurrentIntervalsListResponse, error)
// AddEquipmentToLineWithBodyWithResponse request with any body
AddEquipmentToLineWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddEquipmentToLineResponse, error)
AddEquipmentToLineWithResponse(ctx context.Context, body AddEquipmentToLineJSONRequestBody, reqEditors ...RequestEditorFn) (*AddEquipmentToLineResponse, error)
// CreateLineWithBodyWithResponse request with any body
CreateLineWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateLineResponse, error)
CreateLineWithResponse(ctx context.Context, body CreateLineJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateLineResponse, error)
// MoveEquipmentInLineWithBodyWithResponse request with any body
MoveEquipmentInLineWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MoveEquipmentInLineResponse, error)
MoveEquipmentInLineWithResponse(ctx context.Context, body MoveEquipmentInLineJSONRequestBody, reqEditors ...RequestEditorFn) (*MoveEquipmentInLineResponse, error)
// RemoveEquipmentFromLineWithBodyWithResponse request with any body
RemoveEquipmentFromLineWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemoveEquipmentFromLineResponse, error)
RemoveEquipmentFromLineWithResponse(ctx context.Context, body RemoveEquipmentFromLineJSONRequestBody, reqEditors ...RequestEditorFn) (*RemoveEquipmentFromLineResponse, error)
// LinesListWithResponse request
LinesListWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*LinesListResponse, error)
// LineTopologyWithResponse request
LineTopologyWithResponse(ctx context.Context, params *LineTopologyParams, reqEditors ...RequestEditorFn) (*LineTopologyResponse, error)
// IncreaseProductionWithBodyWithResponse request with any body
IncreaseProductionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IncreaseProductionResponse, error)
IncreaseProductionWithResponse(ctx context.Context, body IncreaseProductionJSONRequestBody, reqEditors ...RequestEditorFn) (*IncreaseProductionResponse, error)
// CreateQualificationRuleWithBodyWithResponse request with any body
CreateQualificationRuleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateQualificationRuleResponse, error)
CreateQualificationRuleWithResponse(ctx context.Context, body CreateQualificationRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateQualificationRuleResponse, error)
// QualifyDowntimeWithBodyWithResponse request with any body
QualifyDowntimeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QualifyDowntimeResponse, error)
QualifyDowntimeWithResponse(ctx context.Context, body QualifyDowntimeJSONRequestBody, reqEditors ...RequestEditorFn) (*QualifyDowntimeResponse, error)
// RemoveQualificationRuleWithBodyWithResponse request with any body
RemoveQualificationRuleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemoveQualificationRuleResponse, error)
RemoveQualificationRuleWithResponse(ctx context.Context, body RemoveQualificationRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*RemoveQualificationRuleResponse, error)
// CreateSpecificationWithBodyWithResponse request with any body
CreateSpecificationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSpecificationResponse, error)
CreateSpecificationWithResponse(ctx context.Context, body CreateSpecificationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSpecificationResponse, error)
// DeprecateSpecificationWithBodyWithResponse request with any body
DeprecateSpecificationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeprecateSpecificationResponse, error)
DeprecateSpecificationWithResponse(ctx context.Context, body DeprecateSpecificationJSONRequestBody, reqEditors ...RequestEditorFn) (*DeprecateSpecificationResponse, error)
// FinishWorkshiftWithBodyWithResponse request with any body
FinishWorkshiftWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FinishWorkshiftResponse, error)
FinishWorkshiftWithResponse(ctx context.Context, body FinishWorkshiftJSONRequestBody, reqEditors ...RequestEditorFn) (*FinishWorkshiftResponse, error)
// StartWorkshiftWithBodyWithResponse request with any body
StartWorkshiftWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartWorkshiftResponse, error)
StartWorkshiftWithResponse(ctx context.Context, body StartWorkshiftJSONRequestBody, reqEditors ...RequestEditorFn) (*StartWorkshiftResponse, error)
// CurrentWorkshiftWithResponse request
CurrentWorkshiftWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*CurrentWorkshiftResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type CreateEquipmentCommand ¶
type CreateEquipmentCommand struct {
// Category Equipment category
Category EquipmentCategory `json:"category"`
// Id Equipment id
Id EquipmentID `json:"id"`
// Name Equipment name
Name EquipmentName `json:"name"`
}
CreateEquipmentCommand Command to create equipment
type CreateEquipmentJSONRequestBody ¶
type CreateEquipmentJSONRequestBody = CreateEquipmentCommand
CreateEquipmentJSONRequestBody defines body for CreateEquipment for application/json ContentType.
type CreateEquipmentResponse ¶
func ParseCreateEquipmentResponse ¶
func ParseCreateEquipmentResponse(rsp *http.Response) (*CreateEquipmentResponse, error)
ParseCreateEquipmentResponse parses an HTTP response from a CreateEquipmentWithResponse call
func (CreateEquipmentResponse) Status ¶
func (r CreateEquipmentResponse) Status() string
Status returns HTTPResponse.Status
func (CreateEquipmentResponse) StatusCode ¶
func (r CreateEquipmentResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateLineCommand ¶
type CreateLineCommand struct {
// Id Line id
Id LineID `json:"id"`
// Name Line name
Name LineName `json:"name"`
}
CreateLineCommand Command to create line
type CreateLineJSONRequestBody ¶
type CreateLineJSONRequestBody = CreateLineCommand
CreateLineJSONRequestBody defines body for CreateLine for application/json ContentType.
type CreateLineResponse ¶
func ParseCreateLineResponse ¶
func ParseCreateLineResponse(rsp *http.Response) (*CreateLineResponse, error)
ParseCreateLineResponse parses an HTTP response from a CreateLineWithResponse call
func (CreateLineResponse) Status ¶
func (r CreateLineResponse) Status() string
Status returns HTTPResponse.Status
func (CreateLineResponse) StatusCode ¶
func (r CreateLineResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateQualificationRuleCommand ¶
type CreateQualificationRuleCommand struct {
// EquipmentId Equipment id
EquipmentId EquipmentID `json:"equipment_id"`
// SpecificationId Specification id
SpecificationId SpecificationID `json:"specification_id"`
}
CreateQualificationRuleCommand Command to create qualification rule
type CreateQualificationRuleJSONRequestBody ¶
type CreateQualificationRuleJSONRequestBody = CreateQualificationRuleCommand
CreateQualificationRuleJSONRequestBody defines body for CreateQualificationRule for application/json ContentType.
type CreateQualificationRuleResponse ¶
func ParseCreateQualificationRuleResponse ¶
func ParseCreateQualificationRuleResponse(rsp *http.Response) (*CreateQualificationRuleResponse, error)
ParseCreateQualificationRuleResponse parses an HTTP response from a CreateQualificationRuleWithResponse call
func (CreateQualificationRuleResponse) Status ¶
func (r CreateQualificationRuleResponse) Status() string
Status returns HTTPResponse.Status
func (CreateQualificationRuleResponse) StatusCode ¶
func (r CreateQualificationRuleResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateSpecificationCommand ¶
type CreateSpecificationCommand struct {
// Code Specification code
Code SpecificationCode `json:"code"`
// Description Specification description
Description SpecificationDescription `json:"description"`
// Id Specification id
Id SpecificationID `json:"id"`
}
CreateSpecificationCommand Command to create specification
type CreateSpecificationJSONRequestBody ¶
type CreateSpecificationJSONRequestBody = CreateSpecificationCommand
CreateSpecificationJSONRequestBody defines body for CreateSpecification for application/json ContentType.
type CreateSpecificationResponse ¶
func ParseCreateSpecificationResponse ¶
func ParseCreateSpecificationResponse(rsp *http.Response) (*CreateSpecificationResponse, error)
ParseCreateSpecificationResponse parses an HTTP response from a CreateSpecificationWithResponse call
func (CreateSpecificationResponse) Status ¶
func (r CreateSpecificationResponse) Status() string
Status returns HTTPResponse.Status
func (CreateSpecificationResponse) StatusCode ¶
func (r CreateSpecificationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CurrentInterval ¶
type CurrentInterval struct {
// Category Interval category
Category IntervalCategory `json:"category"`
// EquipmentId Equipment id
EquipmentId EquipmentID `json:"equipment_id"`
// Id Worktime id
Id IntervalID `json:"id"`
// StartedAt Current interval start time
StartedAt time.Time `json:"started_at"`
}
CurrentInterval Current interval
type CurrentIntervalMultipartBody ¶
type CurrentIntervalMultipartBody = map[string]interface{}
CurrentIntervalMultipartBody defines parameters for CurrentInterval.
type CurrentIntervalMultipartRequestBody ¶
type CurrentIntervalMultipartRequestBody = CurrentIntervalMultipartBody
CurrentIntervalMultipartRequestBody defines body for CurrentInterval for multipart/form-data ContentType.
type CurrentIntervalParams ¶
type CurrentIntervalParams struct {
// EquipmentId Equipment id
EquipmentId EquipmentID `form:"equipment_id" json:"equipment_id"`
}
CurrentIntervalParams defines parameters for CurrentInterval.
type CurrentIntervalResponse ¶
type CurrentIntervalResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CurrentInterval
}
func ParseCurrentIntervalResponse ¶
func ParseCurrentIntervalResponse(rsp *http.Response) (*CurrentIntervalResponse, error)
ParseCurrentIntervalResponse parses an HTTP response from a CurrentIntervalWithResponse call
func (CurrentIntervalResponse) Status ¶
func (r CurrentIntervalResponse) Status() string
Status returns HTTPResponse.Status
func (CurrentIntervalResponse) StatusCode ¶
func (r CurrentIntervalResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CurrentIntervalsList ¶
type CurrentIntervalsList = []CurrentInterval
CurrentIntervalsList Current intervals list
type CurrentIntervalsListResponse ¶
type CurrentIntervalsListResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CurrentIntervalsList
}
func ParseCurrentIntervalsListResponse ¶
func ParseCurrentIntervalsListResponse(rsp *http.Response) (*CurrentIntervalsListResponse, error)
ParseCurrentIntervalsListResponse parses an HTTP response from a CurrentIntervalsListWithResponse call
func (CurrentIntervalsListResponse) Status ¶
func (r CurrentIntervalsListResponse) Status() string
Status returns HTTPResponse.Status
func (CurrentIntervalsListResponse) StatusCode ¶
func (r CurrentIntervalsListResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CurrentWorkshift ¶
type CurrentWorkshift struct {
// Id Workshift id
Id WorkshiftID `json:"id"`
// Name Workshift name
Name WorkshiftName `json:"name"`
// StartedAt Current workshift start time
StartedAt time.Time `json:"started_at"`
}
CurrentWorkshift Current workshift
type CurrentWorkshiftResponse ¶
type CurrentWorkshiftResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CurrentWorkshift
}
func ParseCurrentWorkshiftResponse ¶
func ParseCurrentWorkshiftResponse(rsp *http.Response) (*CurrentWorkshiftResponse, error)
ParseCurrentWorkshiftResponse parses an HTTP response from a CurrentWorkshiftWithResponse call
func (CurrentWorkshiftResponse) Status ¶
func (r CurrentWorkshiftResponse) Status() string
Status returns HTTPResponse.Status
func (CurrentWorkshiftResponse) StatusCode ¶
func (r CurrentWorkshiftResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeprecateSpecificationCommand ¶
type DeprecateSpecificationCommand struct {
// Id Specification id
Id SpecificationID `json:"id"`
}
DeprecateSpecificationCommand Command to deprecate specification
type DeprecateSpecificationJSONRequestBody ¶
type DeprecateSpecificationJSONRequestBody = DeprecateSpecificationCommand
DeprecateSpecificationJSONRequestBody defines body for DeprecateSpecification for application/json ContentType.
type DeprecateSpecificationResponse ¶
func ParseDeprecateSpecificationResponse ¶
func ParseDeprecateSpecificationResponse(rsp *http.Response) (*DeprecateSpecificationResponse, error)
ParseDeprecateSpecificationResponse parses an HTTP response from a DeprecateSpecificationWithResponse call
func (DeprecateSpecificationResponse) Status ¶
func (r DeprecateSpecificationResponse) Status() string
Status returns HTTPResponse.Status
func (DeprecateSpecificationResponse) StatusCode ¶
func (r DeprecateSpecificationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DowntimeQualifiedEvent ¶
type DowntimeQualifiedEvent struct {
// Comment Qualification comment
Comment QualificationComment `json:"comment"`
// DowntimeId Qualified downtime id
DowntimeId interface{} `json:"downtime_id"`
// SpecificationId Specification id
SpecificationId SpecificationID `json:"specification_id"`
}
DowntimeQualifiedEvent Downtime qualified event
type EquipmentAddedToLineEvent ¶
type EquipmentAddedToLineEvent struct {
// EquipmentId Equipment id
EquipmentId EquipmentID `json:"equipment_id"`
// Id Line id
Id LineID `json:"id"`
// Position Added equipment position
Position int `json:"position"`
}
EquipmentAddedToLineEvent Equipment added to line command
type EquipmentCreatedEvent ¶
type EquipmentCreatedEvent struct {
// Category Equipment category
Category EquipmentCategory `json:"category"`
// Id Equipment id
Id EquipmentID `json:"id"`
// Name Equipment name
Name EquipmentName `json:"name"`
}
EquipmentCreatedEvent Equipment created event
type EquipmentMovedInLineEvent ¶
type EquipmentMovedInLineEvent struct {
// EquipmentId Equipment id
EquipmentId EquipmentID `json:"equipment_id"`
// Id Line id
Id LineID `json:"id"`
// Position Moved to position
Position int `json:"position"`
}
EquipmentMovedInLineEvent Equipment moved in line event
type EquipmentRemovedFromLineEvent ¶
type EquipmentRemovedFromLineEvent struct {
// EquipmentId Equipment id
EquipmentId EquipmentID `json:"equipment_id"`
// Id Line id
Id LineID `json:"id"`
}
EquipmentRemovedFromLineEvent Equipment removed from line event
type EventType ¶
type EventType string
EventType Event type
const ( DowntimeFinished EventType = "downtime_finished" DowntimeQualified EventType = "downtime_qualified" DowntimeStarted EventType = "downtime_started" EquipmentAddedToLine EventType = "equipment_added_to_line" EquipmentCreated EventType = "equipment_created" EquipmentMovedInLine EventType = "equipment_moved_in_line" EquipmentRemovedFromLine EventType = "equipment_removed_from_line" LineCreated EventType = "line_created" QualificationRuleCreated EventType = "qualification_rule_created" QualificationRuleRemoved EventType = "qualification_rule_removed" SpecificationCreated EventType = "specification_created" SpecificationDeprecated EventType = "specification_deprecated" WorkshiftFinished EventType = "workshift_finished" WorkshiftStarted EventType = "workshift_started" )
Defines values for EventType.
type EventsResponse ¶
type EventsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *MessageEvent
}
func ParseEventsResponse ¶
func ParseEventsResponse(rsp *http.Response) (*EventsResponse, error)
ParseEventsResponse parses an HTTP response from a EventsWithResponse call
func (EventsResponse) Status ¶
func (r EventsResponse) Status() string
Status returns HTTPResponse.Status
func (EventsResponse) StatusCode ¶
func (r EventsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type FinishIntervalCommand ¶
type FinishIntervalCommand struct {
// EquipmentId Equipment id
EquipmentId EquipmentID `json:"equipment_id"`
// FinishedAt Interval finished at
FinishedAt time.Time `json:"finished_at"`
}
FinishIntervalCommand Command to finish interval
type FinishIntervalJSONRequestBody ¶
type FinishIntervalJSONRequestBody = FinishIntervalCommand
FinishIntervalJSONRequestBody defines body for FinishInterval for application/json ContentType.
type FinishIntervalResponse ¶
func ParseFinishIntervalResponse ¶
func ParseFinishIntervalResponse(rsp *http.Response) (*FinishIntervalResponse, error)
ParseFinishIntervalResponse parses an HTTP response from a FinishIntervalWithResponse call
func (FinishIntervalResponse) Status ¶
func (r FinishIntervalResponse) Status() string
Status returns HTTPResponse.Status
func (FinishIntervalResponse) StatusCode ¶
func (r FinishIntervalResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type FinishWorkshiftCommand ¶
type FinishWorkshiftCommand struct {
// FinishedAt Workshift finish time
FinishedAt time.Time `json:"finished_at"`
}
FinishWorkshiftCommand Command to finish workshift
type FinishWorkshiftJSONRequestBody ¶
type FinishWorkshiftJSONRequestBody = FinishWorkshiftCommand
FinishWorkshiftJSONRequestBody defines body for FinishWorkshift for application/json ContentType.
type FinishWorkshiftResponse ¶
func ParseFinishWorkshiftResponse ¶
func ParseFinishWorkshiftResponse(rsp *http.Response) (*FinishWorkshiftResponse, error)
ParseFinishWorkshiftResponse parses an HTTP response from a FinishWorkshiftWithResponse call
func (FinishWorkshiftResponse) Status ¶
func (r FinishWorkshiftResponse) Status() string
Status returns HTTPResponse.Status
func (FinishWorkshiftResponse) StatusCode ¶
func (r FinishWorkshiftResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type IncreaseProductionCommand ¶
type IncreaseProductionCommand struct {
// Amount Production amount
Amount ProductionAmount `json:"amount"`
// Category Production category
Category ProductionCategory `json:"category"`
// EquipmentId Equipment id
EquipmentId EquipmentID `json:"equipment_id"`
}
IncreaseProductionCommand Command to increase production
type IncreaseProductionJSONRequestBody ¶
type IncreaseProductionJSONRequestBody = IncreaseProductionCommand
IncreaseProductionJSONRequestBody defines body for IncreaseProduction for application/json ContentType.
type IncreaseProductionResponse ¶
func ParseIncreaseProductionResponse ¶
func ParseIncreaseProductionResponse(rsp *http.Response) (*IncreaseProductionResponse, error)
ParseIncreaseProductionResponse parses an HTTP response from a IncreaseProductionWithResponse call
func (IncreaseProductionResponse) Status ¶
func (r IncreaseProductionResponse) Status() string
Status returns HTTPResponse.Status
func (IncreaseProductionResponse) StatusCode ¶
func (r IncreaseProductionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type IntervalCategory ¶
type IntervalCategory string
IntervalCategory Interval category
const ( Downtime IntervalCategory = "downtime" Worktime IntervalCategory = "worktime" )
Defines values for IntervalCategory.
type IntervalFinishedAt ¶
type IntervalFinishedAt struct {
// Category Interval category
Category IntervalCategory `json:"category"`
// Duration Finished interval duration
Duration int `json:"duration"`
// EquipmentId Equipment id
EquipmentId EquipmentID `json:"equipment_id"`
// FinishedAt Interval finished at
FinishedAt time.Time `json:"finished_at"`
// Id Worktime id
Id IntervalID `json:"id"`
// Status Worktime status
Status IntervalStatus `json:"status"`
}
IntervalFinishedAt Interval finished event
type IntervalStartedEvent ¶
type IntervalStartedEvent struct {
// Category Interval category
Category IntervalCategory `json:"category"`
// EquipmentId Equipment id
EquipmentId EquipmentID `json:"equipment_id"`
// Id Worktime id
Id IntervalID `json:"id"`
// StartedAt Interval started at
StartedAt time.Time `json:"started_at"`
// Status Worktime status
Status IntervalStatus `json:"status"`
}
IntervalStartedEvent Interval started event
type IntervalStatus ¶
type IntervalStatus string
IntervalStatus Worktime status
const ( IntervalStatusActive IntervalStatus = "active" IntervalStatusFinished IntervalStatus = "finished" )
Defines values for IntervalStatus.
type InvalidParamFormatError ¶
func (*InvalidParamFormatError) Error ¶
func (e *InvalidParamFormatError) Error() string
func (*InvalidParamFormatError) Unwrap ¶
func (e *InvalidParamFormatError) Unwrap() error
type LineCreatedEvent ¶
type LineCreatedEvent struct {
// Id Line id
Id LineID `json:"id"`
// Name Line name
Name LineName `json:"name"`
}
LineCreatedEvent Line created event
type LineTopologyItem ¶
type LineTopologyItem struct {
// Category Equipment category
Category EquipmentCategory `json:"category"`
// Id Equipment id
Id EquipmentID `json:"id"`
// Name Equipment name
Name EquipmentName `json:"name"`
}
LineTopologyItem LineTopologyItem
type LineTopologyParams ¶
type LineTopologyParams struct {
// Id Line id
Id *LineID `form:"id,omitempty" json:"id,omitempty"`
}
LineTopologyParams defines parameters for LineTopology.
type LineTopologyResponse ¶
type LineTopologyResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *LineTopology
}
func ParseLineTopologyResponse ¶
func ParseLineTopologyResponse(rsp *http.Response) (*LineTopologyResponse, error)
ParseLineTopologyResponse parses an HTTP response from a LineTopologyWithResponse call
func (LineTopologyResponse) Status ¶
func (r LineTopologyResponse) Status() string
Status returns HTTPResponse.Status
func (LineTopologyResponse) StatusCode ¶
func (r LineTopologyResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type LinesListItem ¶
type LinesListItem struct {
// Id Line id
Id LineID `json:"id"`
// Name Line name
Name LineName `json:"name"`
}
LinesListItem Lines list item
type LinesListResponse ¶
func ParseLinesListResponse ¶
func ParseLinesListResponse(rsp *http.Response) (*LinesListResponse, error)
ParseLinesListResponse parses an HTTP response from a LinesListWithResponse call
func (LinesListResponse) Status ¶
func (r LinesListResponse) Status() string
Status returns HTTPResponse.Status
func (LinesListResponse) StatusCode ¶
func (r LinesListResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type MessageEvent ¶
type MessageEvent struct {
// Data Event data
Data MessageEvent_Data `json:"data"`
// Event Event type
Event EventType `json:"event"`
// Id Event id
Id *string `json:"id,omitempty"`
}
MessageEvent Event Stream Message
type MessageEvent_Data ¶
type MessageEvent_Data struct {
// contains filtered or unexported fields
}
MessageEvent_Data Event data
func (MessageEvent_Data) AsDowntimeQualifiedEvent ¶
func (t MessageEvent_Data) AsDowntimeQualifiedEvent() (DowntimeQualifiedEvent, error)
AsDowntimeQualifiedEvent returns the union data inside the MessageEvent_Data as a DowntimeQualifiedEvent
func (MessageEvent_Data) AsEquipmentAddedToLineEvent ¶
func (t MessageEvent_Data) AsEquipmentAddedToLineEvent() (EquipmentAddedToLineEvent, error)
AsEquipmentAddedToLineEvent returns the union data inside the MessageEvent_Data as a EquipmentAddedToLineEvent
func (MessageEvent_Data) AsEquipmentCreatedEvent ¶
func (t MessageEvent_Data) AsEquipmentCreatedEvent() (EquipmentCreatedEvent, error)
AsEquipmentCreatedEvent returns the union data inside the MessageEvent_Data as a EquipmentCreatedEvent
func (MessageEvent_Data) AsEquipmentMovedInLineEvent ¶
func (t MessageEvent_Data) AsEquipmentMovedInLineEvent() (EquipmentMovedInLineEvent, error)
AsEquipmentMovedInLineEvent returns the union data inside the MessageEvent_Data as a EquipmentMovedInLineEvent
func (MessageEvent_Data) AsEquipmentRemovedFromLineEvent ¶
func (t MessageEvent_Data) AsEquipmentRemovedFromLineEvent() (EquipmentRemovedFromLineEvent, error)
AsEquipmentRemovedFromLineEvent returns the union data inside the MessageEvent_Data as a EquipmentRemovedFromLineEvent
func (MessageEvent_Data) AsIntervalFinishedAt ¶
func (t MessageEvent_Data) AsIntervalFinishedAt() (IntervalFinishedAt, error)
AsIntervalFinishedAt returns the union data inside the MessageEvent_Data as a IntervalFinishedAt
func (MessageEvent_Data) AsIntervalStartedEvent ¶
func (t MessageEvent_Data) AsIntervalStartedEvent() (IntervalStartedEvent, error)
AsIntervalStartedEvent returns the union data inside the MessageEvent_Data as a IntervalStartedEvent
func (MessageEvent_Data) AsLineCreatedEvent ¶
func (t MessageEvent_Data) AsLineCreatedEvent() (LineCreatedEvent, error)
AsLineCreatedEvent returns the union data inside the MessageEvent_Data as a LineCreatedEvent
func (MessageEvent_Data) AsQualificationRuleCreatedEvent ¶
func (t MessageEvent_Data) AsQualificationRuleCreatedEvent() (QualificationRuleCreatedEvent, error)
AsQualificationRuleCreatedEvent returns the union data inside the MessageEvent_Data as a QualificationRuleCreatedEvent
func (MessageEvent_Data) AsQualificationRuleRemovedEvent ¶
func (t MessageEvent_Data) AsQualificationRuleRemovedEvent() (QualificationRuleRemovedEvent, error)
AsQualificationRuleRemovedEvent returns the union data inside the MessageEvent_Data as a QualificationRuleRemovedEvent
func (MessageEvent_Data) AsSpecificationCreatedEvent ¶
func (t MessageEvent_Data) AsSpecificationCreatedEvent() (SpecificationCreatedEvent, error)
AsSpecificationCreatedEvent returns the union data inside the MessageEvent_Data as a SpecificationCreatedEvent
func (MessageEvent_Data) AsSpecificationDeprecatedEvent ¶
func (t MessageEvent_Data) AsSpecificationDeprecatedEvent() (SpecificationDeprecatedEvent, error)
AsSpecificationDeprecatedEvent returns the union data inside the MessageEvent_Data as a SpecificationDeprecatedEvent
func (MessageEvent_Data) AsWorkshiftFinishedEvent ¶
func (t MessageEvent_Data) AsWorkshiftFinishedEvent() (WorkshiftFinishedEvent, error)
AsWorkshiftFinishedEvent returns the union data inside the MessageEvent_Data as a WorkshiftFinishedEvent
func (MessageEvent_Data) AsWorkshiftStartedEvent ¶
func (t MessageEvent_Data) AsWorkshiftStartedEvent() (WorkshiftStartedEvent, error)
AsWorkshiftStartedEvent returns the union data inside the MessageEvent_Data as a WorkshiftStartedEvent
func (*MessageEvent_Data) FromDowntimeQualifiedEvent ¶
func (t *MessageEvent_Data) FromDowntimeQualifiedEvent(v DowntimeQualifiedEvent) error
FromDowntimeQualifiedEvent overwrites any union data inside the MessageEvent_Data as the provided DowntimeQualifiedEvent
func (*MessageEvent_Data) FromEquipmentAddedToLineEvent ¶
func (t *MessageEvent_Data) FromEquipmentAddedToLineEvent(v EquipmentAddedToLineEvent) error
FromEquipmentAddedToLineEvent overwrites any union data inside the MessageEvent_Data as the provided EquipmentAddedToLineEvent
func (*MessageEvent_Data) FromEquipmentCreatedEvent ¶
func (t *MessageEvent_Data) FromEquipmentCreatedEvent(v EquipmentCreatedEvent) error
FromEquipmentCreatedEvent overwrites any union data inside the MessageEvent_Data as the provided EquipmentCreatedEvent
func (*MessageEvent_Data) FromEquipmentMovedInLineEvent ¶
func (t *MessageEvent_Data) FromEquipmentMovedInLineEvent(v EquipmentMovedInLineEvent) error
FromEquipmentMovedInLineEvent overwrites any union data inside the MessageEvent_Data as the provided EquipmentMovedInLineEvent
func (*MessageEvent_Data) FromEquipmentRemovedFromLineEvent ¶
func (t *MessageEvent_Data) FromEquipmentRemovedFromLineEvent(v EquipmentRemovedFromLineEvent) error
FromEquipmentRemovedFromLineEvent overwrites any union data inside the MessageEvent_Data as the provided EquipmentRemovedFromLineEvent
func (*MessageEvent_Data) FromIntervalFinishedAt ¶
func (t *MessageEvent_Data) FromIntervalFinishedAt(v IntervalFinishedAt) error
FromIntervalFinishedAt overwrites any union data inside the MessageEvent_Data as the provided IntervalFinishedAt
func (*MessageEvent_Data) FromIntervalStartedEvent ¶
func (t *MessageEvent_Data) FromIntervalStartedEvent(v IntervalStartedEvent) error
FromIntervalStartedEvent overwrites any union data inside the MessageEvent_Data as the provided IntervalStartedEvent
func (*MessageEvent_Data) FromLineCreatedEvent ¶
func (t *MessageEvent_Data) FromLineCreatedEvent(v LineCreatedEvent) error
FromLineCreatedEvent overwrites any union data inside the MessageEvent_Data as the provided LineCreatedEvent
func (*MessageEvent_Data) FromQualificationRuleCreatedEvent ¶
func (t *MessageEvent_Data) FromQualificationRuleCreatedEvent(v QualificationRuleCreatedEvent) error
FromQualificationRuleCreatedEvent overwrites any union data inside the MessageEvent_Data as the provided QualificationRuleCreatedEvent
func (*MessageEvent_Data) FromQualificationRuleRemovedEvent ¶
func (t *MessageEvent_Data) FromQualificationRuleRemovedEvent(v QualificationRuleRemovedEvent) error
FromQualificationRuleRemovedEvent overwrites any union data inside the MessageEvent_Data as the provided QualificationRuleRemovedEvent
func (*MessageEvent_Data) FromSpecificationCreatedEvent ¶
func (t *MessageEvent_Data) FromSpecificationCreatedEvent(v SpecificationCreatedEvent) error
FromSpecificationCreatedEvent overwrites any union data inside the MessageEvent_Data as the provided SpecificationCreatedEvent
func (*MessageEvent_Data) FromSpecificationDeprecatedEvent ¶
func (t *MessageEvent_Data) FromSpecificationDeprecatedEvent(v SpecificationDeprecatedEvent) error
FromSpecificationDeprecatedEvent overwrites any union data inside the MessageEvent_Data as the provided SpecificationDeprecatedEvent
func (*MessageEvent_Data) FromWorkshiftFinishedEvent ¶
func (t *MessageEvent_Data) FromWorkshiftFinishedEvent(v WorkshiftFinishedEvent) error
FromWorkshiftFinishedEvent overwrites any union data inside the MessageEvent_Data as the provided WorkshiftFinishedEvent
func (*MessageEvent_Data) FromWorkshiftStartedEvent ¶
func (t *MessageEvent_Data) FromWorkshiftStartedEvent(v WorkshiftStartedEvent) error
FromWorkshiftStartedEvent overwrites any union data inside the MessageEvent_Data as the provided WorkshiftStartedEvent
func (MessageEvent_Data) MarshalJSON ¶
func (t MessageEvent_Data) MarshalJSON() ([]byte, error)
func (*MessageEvent_Data) MergeDowntimeQualifiedEvent ¶
func (t *MessageEvent_Data) MergeDowntimeQualifiedEvent(v DowntimeQualifiedEvent) error
MergeDowntimeQualifiedEvent performs a merge with any union data inside the MessageEvent_Data, using the provided DowntimeQualifiedEvent
func (*MessageEvent_Data) MergeEquipmentAddedToLineEvent ¶
func (t *MessageEvent_Data) MergeEquipmentAddedToLineEvent(v EquipmentAddedToLineEvent) error
MergeEquipmentAddedToLineEvent performs a merge with any union data inside the MessageEvent_Data, using the provided EquipmentAddedToLineEvent
func (*MessageEvent_Data) MergeEquipmentCreatedEvent ¶
func (t *MessageEvent_Data) MergeEquipmentCreatedEvent(v EquipmentCreatedEvent) error
MergeEquipmentCreatedEvent performs a merge with any union data inside the MessageEvent_Data, using the provided EquipmentCreatedEvent
func (*MessageEvent_Data) MergeEquipmentMovedInLineEvent ¶
func (t *MessageEvent_Data) MergeEquipmentMovedInLineEvent(v EquipmentMovedInLineEvent) error
MergeEquipmentMovedInLineEvent performs a merge with any union data inside the MessageEvent_Data, using the provided EquipmentMovedInLineEvent
func (*MessageEvent_Data) MergeEquipmentRemovedFromLineEvent ¶
func (t *MessageEvent_Data) MergeEquipmentRemovedFromLineEvent(v EquipmentRemovedFromLineEvent) error
MergeEquipmentRemovedFromLineEvent performs a merge with any union data inside the MessageEvent_Data, using the provided EquipmentRemovedFromLineEvent
func (*MessageEvent_Data) MergeIntervalFinishedAt ¶
func (t *MessageEvent_Data) MergeIntervalFinishedAt(v IntervalFinishedAt) error
MergeIntervalFinishedAt performs a merge with any union data inside the MessageEvent_Data, using the provided IntervalFinishedAt
func (*MessageEvent_Data) MergeIntervalStartedEvent ¶
func (t *MessageEvent_Data) MergeIntervalStartedEvent(v IntervalStartedEvent) error
MergeIntervalStartedEvent performs a merge with any union data inside the MessageEvent_Data, using the provided IntervalStartedEvent
func (*MessageEvent_Data) MergeLineCreatedEvent ¶
func (t *MessageEvent_Data) MergeLineCreatedEvent(v LineCreatedEvent) error
MergeLineCreatedEvent performs a merge with any union data inside the MessageEvent_Data, using the provided LineCreatedEvent
func (*MessageEvent_Data) MergeQualificationRuleCreatedEvent ¶
func (t *MessageEvent_Data) MergeQualificationRuleCreatedEvent(v QualificationRuleCreatedEvent) error
MergeQualificationRuleCreatedEvent performs a merge with any union data inside the MessageEvent_Data, using the provided QualificationRuleCreatedEvent
func (*MessageEvent_Data) MergeQualificationRuleRemovedEvent ¶
func (t *MessageEvent_Data) MergeQualificationRuleRemovedEvent(v QualificationRuleRemovedEvent) error
MergeQualificationRuleRemovedEvent performs a merge with any union data inside the MessageEvent_Data, using the provided QualificationRuleRemovedEvent
func (*MessageEvent_Data) MergeSpecificationCreatedEvent ¶
func (t *MessageEvent_Data) MergeSpecificationCreatedEvent(v SpecificationCreatedEvent) error
MergeSpecificationCreatedEvent performs a merge with any union data inside the MessageEvent_Data, using the provided SpecificationCreatedEvent
func (*MessageEvent_Data) MergeSpecificationDeprecatedEvent ¶
func (t *MessageEvent_Data) MergeSpecificationDeprecatedEvent(v SpecificationDeprecatedEvent) error
MergeSpecificationDeprecatedEvent performs a merge with any union data inside the MessageEvent_Data, using the provided SpecificationDeprecatedEvent
func (*MessageEvent_Data) MergeWorkshiftFinishedEvent ¶
func (t *MessageEvent_Data) MergeWorkshiftFinishedEvent(v WorkshiftFinishedEvent) error
MergeWorkshiftFinishedEvent performs a merge with any union data inside the MessageEvent_Data, using the provided WorkshiftFinishedEvent
func (*MessageEvent_Data) MergeWorkshiftStartedEvent ¶
func (t *MessageEvent_Data) MergeWorkshiftStartedEvent(v WorkshiftStartedEvent) error
MergeWorkshiftStartedEvent performs a merge with any union data inside the MessageEvent_Data, using the provided WorkshiftStartedEvent
func (*MessageEvent_Data) UnmarshalJSON ¶
func (t *MessageEvent_Data) UnmarshalJSON(b []byte) error
type MoveEquipmentInLineCommand ¶
type MoveEquipmentInLineCommand struct {
// Direction Move direction
Direction MoveEquipmentInLineCommandDirection `json:"direction"`
// EquipmentId Equipment id
EquipmentId EquipmentID `json:"equipment_id"`
// Id Line id
Id LineID `json:"id"`
}
MoveEquipmentInLineCommand Command to move equipment in line
type MoveEquipmentInLineCommandDirection ¶
type MoveEquipmentInLineCommandDirection string
MoveEquipmentInLineCommandDirection Move direction
const ( Left MoveEquipmentInLineCommandDirection = "left" Right MoveEquipmentInLineCommandDirection = "right" )
Defines values for MoveEquipmentInLineCommandDirection.
type MoveEquipmentInLineJSONRequestBody ¶
type MoveEquipmentInLineJSONRequestBody = MoveEquipmentInLineCommand
MoveEquipmentInLineJSONRequestBody defines body for MoveEquipmentInLine for application/json ContentType.
type MoveEquipmentInLineResponse ¶
func ParseMoveEquipmentInLineResponse ¶
func ParseMoveEquipmentInLineResponse(rsp *http.Response) (*MoveEquipmentInLineResponse, error)
ParseMoveEquipmentInLineResponse parses an HTTP response from a MoveEquipmentInLineWithResponse call
func (MoveEquipmentInLineResponse) Status ¶
func (r MoveEquipmentInLineResponse) Status() string
Status returns HTTPResponse.Status
func (MoveEquipmentInLineResponse) StatusCode ¶
func (r MoveEquipmentInLineResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ProductionCategory ¶
type ProductionCategory string
ProductionCategory Production category
const ( Defect ProductionCategory = "defect" Good ProductionCategory = "good" )
Defines values for ProductionCategory.
type QualificationComment ¶
type QualificationComment = string
QualificationComment Qualification comment
type QualificationRuleCreatedEvent ¶
type QualificationRuleCreatedEvent struct {
// EquipmentId Equipment id
EquipmentId EquipmentID `json:"equipment_id"`
// SpecificationId Specification id
SpecificationId SpecificationID `json:"specification_id"`
}
QualificationRuleCreatedEvent Qualification rule created event
type QualificationRuleRemovedEvent ¶
type QualificationRuleRemovedEvent struct {
// EquipmentId Equipment id
EquipmentId EquipmentID `json:"equipment_id"`
// SpecificationId Specification id
SpecificationId SpecificationID `json:"specification_id"`
}
QualificationRuleRemovedEvent Qualification rule removed event
type QualifyDowntimeCommand ¶
type QualifyDowntimeCommand struct {
// Comment Qualification comment
Comment QualificationComment `json:"comment"`
// DowntimeId Worktime id
DowntimeId IntervalID `json:"downtime_id"`
// SpecificationId Specification id
SpecificationId SpecificationID `json:"specification_id"`
}
QualifyDowntimeCommand Command to qualify downtime
type QualifyDowntimeJSONRequestBody ¶
type QualifyDowntimeJSONRequestBody = QualifyDowntimeCommand
QualifyDowntimeJSONRequestBody defines body for QualifyDowntime for application/json ContentType.
type QualifyDowntimeResponse ¶
func ParseQualifyDowntimeResponse ¶
func ParseQualifyDowntimeResponse(rsp *http.Response) (*QualifyDowntimeResponse, error)
ParseQualifyDowntimeResponse parses an HTTP response from a QualifyDowntimeWithResponse call
func (QualifyDowntimeResponse) Status ¶
func (r QualifyDowntimeResponse) Status() string
Status returns HTTPResponse.Status
func (QualifyDowntimeResponse) StatusCode ¶
func (r QualifyDowntimeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RemoveEquipmentFromLineCommand ¶
type RemoveEquipmentFromLineCommand struct {
// EquipmentId Equipment id
EquipmentId EquipmentID `json:"equipment_id"`
// Id Line id
Id LineID `json:"id"`
}
RemoveEquipmentFromLineCommand Command to remove equipment from line
type RemoveEquipmentFromLineJSONRequestBody ¶
type RemoveEquipmentFromLineJSONRequestBody = RemoveEquipmentFromLineCommand
RemoveEquipmentFromLineJSONRequestBody defines body for RemoveEquipmentFromLine for application/json ContentType.
type RemoveEquipmentFromLineResponse ¶
func ParseRemoveEquipmentFromLineResponse ¶
func ParseRemoveEquipmentFromLineResponse(rsp *http.Response) (*RemoveEquipmentFromLineResponse, error)
ParseRemoveEquipmentFromLineResponse parses an HTTP response from a RemoveEquipmentFromLineWithResponse call
func (RemoveEquipmentFromLineResponse) Status ¶
func (r RemoveEquipmentFromLineResponse) Status() string
Status returns HTTPResponse.Status
func (RemoveEquipmentFromLineResponse) StatusCode ¶
func (r RemoveEquipmentFromLineResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RemoveQualificationRuleCommand ¶
type RemoveQualificationRuleCommand struct {
// EquipmentId Equipment id
EquipmentId EquipmentID `json:"equipment_id"`
// SpecificationId Specification id
SpecificationId SpecificationID `json:"specification_id"`
}
RemoveQualificationRuleCommand Command to remove qualification rule
type RemoveQualificationRuleJSONRequestBody ¶
type RemoveQualificationRuleJSONRequestBody = RemoveQualificationRuleCommand
RemoveQualificationRuleJSONRequestBody defines body for RemoveQualificationRule for application/json ContentType.
type RemoveQualificationRuleResponse ¶
func ParseRemoveQualificationRuleResponse ¶
func ParseRemoveQualificationRuleResponse(rsp *http.Response) (*RemoveQualificationRuleResponse, error)
ParseRemoveQualificationRuleResponse parses an HTTP response from a RemoveQualificationRuleWithResponse call
func (RemoveQualificationRuleResponse) Status ¶
func (r RemoveQualificationRuleResponse) Status() string
Status returns HTTPResponse.Status
func (RemoveQualificationRuleResponse) StatusCode ¶
func (r RemoveQualificationRuleResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type RequiredHeaderError ¶
func (*RequiredHeaderError) Error ¶
func (e *RequiredHeaderError) Error() string
func (*RequiredHeaderError) Unwrap ¶
func (e *RequiredHeaderError) Unwrap() error
type RequiredParamError ¶
type RequiredParamError struct {
ParamName string
}
func (*RequiredParamError) Error ¶
func (e *RequiredParamError) Error() string
type ServerInterface ¶
type ServerInterface interface {
// ApexchartsEquipmentTimeline
// (GET /api/intervals/queries/apexcharts_timeline)
ApexchartsTimeline(w http.ResponseWriter, r *http.Request, params ApexchartsTimelineParams)
// CreateEquipment
// (POST /equipment/commands/create)
CreateEquipment(w http.ResponseWriter, r *http.Request)
// EventStream
// (GET /events)
Events(w http.ResponseWriter, r *http.Request)
// FinishInterval
// (POST /intervals/commands/finish)
FinishInterval(w http.ResponseWriter, r *http.Request)
// StartInterval
// (POST /intervals/commands/start)
StartInterval(w http.ResponseWriter, r *http.Request)
// CurrentInterval
// (GET /intervals/queries/current)
CurrentInterval(w http.ResponseWriter, r *http.Request, params CurrentIntervalParams)
// CurrentIntervalsList
// (GET /intervals/queries/current_list)
CurrentIntervalsList(w http.ResponseWriter, r *http.Request)
// AddEquipmentToLine
// (POST /lines/commands/add_equipment)
AddEquipmentToLine(w http.ResponseWriter, r *http.Request)
// CreateLine
// (POST /lines/commands/create)
CreateLine(w http.ResponseWriter, r *http.Request)
// MoveEquipmentInLine
// (POST /lines/commands/move_equipment)
MoveEquipmentInLine(w http.ResponseWriter, r *http.Request)
// RemoveEquipmentFromLine
// (POST /lines/commands/remove_equipment)
RemoveEquipmentFromLine(w http.ResponseWriter, r *http.Request)
// LinesList
// (GET /lines/queries/list)
LinesList(w http.ResponseWriter, r *http.Request)
// LineTopology
// (GET /lines/queries/topology)
LineTopology(w http.ResponseWriter, r *http.Request, params LineTopologyParams)
// IncreaseProduction
// (POST /production/commands/increase)
IncreaseProduction(w http.ResponseWriter, r *http.Request)
// CreateQualificationRule
// (POST /qualification/commands/create_rule)
CreateQualificationRule(w http.ResponseWriter, r *http.Request)
// QualifyDowntime
// (POST /qualification/commands/qualify)
QualifyDowntime(w http.ResponseWriter, r *http.Request)
// RemoveQualificationRule
// (POST /qualification/commands/remove_rule)
RemoveQualificationRule(w http.ResponseWriter, r *http.Request)
// CreateSpecification
// (POST /specifications/commands/create)
CreateSpecification(w http.ResponseWriter, r *http.Request)
// DeprecateSpecification
// (POST /specifications/commands/deprecate)
DeprecateSpecification(w http.ResponseWriter, r *http.Request)
// FinishWorkshift
// (POST /workshifts/commands/finish)
FinishWorkshift(w http.ResponseWriter, r *http.Request)
// StartWorkshift
// (POST /workshifts/commands/start)
StartWorkshift(w http.ResponseWriter, r *http.Request)
// CurrentWorkshift
// (GET /workshifts/queries/current)
CurrentWorkshift(w http.ResponseWriter, r *http.Request)
}
ServerInterface represents all server handlers.
type ServerInterfaceWrapper ¶
type ServerInterfaceWrapper struct {
Handler ServerInterface
HandlerMiddlewares []MiddlewareFunc
ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}
ServerInterfaceWrapper converts contexts to parameters.
func (*ServerInterfaceWrapper) AddEquipmentToLine ¶
func (siw *ServerInterfaceWrapper) AddEquipmentToLine(w http.ResponseWriter, r *http.Request)
AddEquipmentToLine operation middleware
func (*ServerInterfaceWrapper) ApexchartsTimeline ¶
func (siw *ServerInterfaceWrapper) ApexchartsTimeline(w http.ResponseWriter, r *http.Request)
ApexchartsTimeline operation middleware
func (*ServerInterfaceWrapper) CreateEquipment ¶
func (siw *ServerInterfaceWrapper) CreateEquipment(w http.ResponseWriter, r *http.Request)
CreateEquipment operation middleware
func (*ServerInterfaceWrapper) CreateLine ¶
func (siw *ServerInterfaceWrapper) CreateLine(w http.ResponseWriter, r *http.Request)
CreateLine operation middleware
func (*ServerInterfaceWrapper) CreateQualificationRule ¶
func (siw *ServerInterfaceWrapper) CreateQualificationRule(w http.ResponseWriter, r *http.Request)
CreateQualificationRule operation middleware
func (*ServerInterfaceWrapper) CreateSpecification ¶
func (siw *ServerInterfaceWrapper) CreateSpecification(w http.ResponseWriter, r *http.Request)
CreateSpecification operation middleware
func (*ServerInterfaceWrapper) CurrentInterval ¶
func (siw *ServerInterfaceWrapper) CurrentInterval(w http.ResponseWriter, r *http.Request)
CurrentInterval operation middleware
func (*ServerInterfaceWrapper) CurrentIntervalsList ¶
func (siw *ServerInterfaceWrapper) CurrentIntervalsList(w http.ResponseWriter, r *http.Request)
CurrentIntervalsList operation middleware
func (*ServerInterfaceWrapper) CurrentWorkshift ¶
func (siw *ServerInterfaceWrapper) CurrentWorkshift(w http.ResponseWriter, r *http.Request)
CurrentWorkshift operation middleware
func (*ServerInterfaceWrapper) DeprecateSpecification ¶
func (siw *ServerInterfaceWrapper) DeprecateSpecification(w http.ResponseWriter, r *http.Request)
DeprecateSpecification operation middleware
func (*ServerInterfaceWrapper) Events ¶
func (siw *ServerInterfaceWrapper) Events(w http.ResponseWriter, r *http.Request)
Events operation middleware
func (*ServerInterfaceWrapper) FinishInterval ¶
func (siw *ServerInterfaceWrapper) FinishInterval(w http.ResponseWriter, r *http.Request)
FinishInterval operation middleware
func (*ServerInterfaceWrapper) FinishWorkshift ¶
func (siw *ServerInterfaceWrapper) FinishWorkshift(w http.ResponseWriter, r *http.Request)
FinishWorkshift operation middleware
func (*ServerInterfaceWrapper) IncreaseProduction ¶
func (siw *ServerInterfaceWrapper) IncreaseProduction(w http.ResponseWriter, r *http.Request)
IncreaseProduction operation middleware
func (*ServerInterfaceWrapper) LineTopology ¶
func (siw *ServerInterfaceWrapper) LineTopology(w http.ResponseWriter, r *http.Request)
LineTopology operation middleware
func (*ServerInterfaceWrapper) LinesList ¶
func (siw *ServerInterfaceWrapper) LinesList(w http.ResponseWriter, r *http.Request)
LinesList operation middleware
func (*ServerInterfaceWrapper) MoveEquipmentInLine ¶
func (siw *ServerInterfaceWrapper) MoveEquipmentInLine(w http.ResponseWriter, r *http.Request)
MoveEquipmentInLine operation middleware
func (*ServerInterfaceWrapper) QualifyDowntime ¶
func (siw *ServerInterfaceWrapper) QualifyDowntime(w http.ResponseWriter, r *http.Request)
QualifyDowntime operation middleware
func (*ServerInterfaceWrapper) RemoveEquipmentFromLine ¶
func (siw *ServerInterfaceWrapper) RemoveEquipmentFromLine(w http.ResponseWriter, r *http.Request)
RemoveEquipmentFromLine operation middleware
func (*ServerInterfaceWrapper) RemoveQualificationRule ¶
func (siw *ServerInterfaceWrapper) RemoveQualificationRule(w http.ResponseWriter, r *http.Request)
RemoveQualificationRule operation middleware
func (*ServerInterfaceWrapper) StartInterval ¶
func (siw *ServerInterfaceWrapper) StartInterval(w http.ResponseWriter, r *http.Request)
StartInterval operation middleware
func (*ServerInterfaceWrapper) StartWorkshift ¶
func (siw *ServerInterfaceWrapper) StartWorkshift(w http.ResponseWriter, r *http.Request)
StartWorkshift operation middleware
type SpecificationCreatedEvent ¶
type SpecificationCreatedEvent struct {
// Code Specification code
Code SpecificationCode `json:"code"`
// Deprecated Created specification deprecated
Deprecated bool `json:"deprecated"`
// Description Specification description
Description SpecificationDescription `json:"description"`
// Id Specification id
Id SpecificationID `json:"id"`
}
SpecificationCreatedEvent Specification created event
type SpecificationDeprecatedEvent ¶
type SpecificationDeprecatedEvent struct {
// Deprecated Specification deprecated field
Deprecated bool `json:"deprecated"`
// Id Specification id
Id SpecificationID `json:"id"`
}
SpecificationDeprecatedEvent Specification deprecated event
type SpecificationDescription ¶
type SpecificationDescription = string
SpecificationDescription Specification description
type StartIntervalCommand ¶
type StartIntervalCommand struct {
// Category Interval category
Category IntervalCategory `json:"category"`
// EquipmentId Equipment id
EquipmentId EquipmentID `json:"equipment_id"`
// Id Worktime id
Id IntervalID `json:"id"`
// StartedAt Worktime start time
StartedAt time.Time `json:"started_at"`
}
StartIntervalCommand Command to start worktime
type StartIntervalJSONRequestBody ¶
type StartIntervalJSONRequestBody = StartIntervalCommand
StartIntervalJSONRequestBody defines body for StartInterval for application/json ContentType.
type StartIntervalResponse ¶
func ParseStartIntervalResponse ¶
func ParseStartIntervalResponse(rsp *http.Response) (*StartIntervalResponse, error)
ParseStartIntervalResponse parses an HTTP response from a StartIntervalWithResponse call
func (StartIntervalResponse) Status ¶
func (r StartIntervalResponse) Status() string
Status returns HTTPResponse.Status
func (StartIntervalResponse) StatusCode ¶
func (r StartIntervalResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type StartWorkshiftCommand ¶
type StartWorkshiftCommand struct {
// Id Workshift id
Id WorkshiftID `json:"id"`
// Name Workshift name
Name WorkshiftName `json:"name"`
// StartedAt Workshift start time
StartedAt time.Time `json:"started_at"`
}
StartWorkshiftCommand Command to start workshift
type StartWorkshiftJSONRequestBody ¶
type StartWorkshiftJSONRequestBody = StartWorkshiftCommand
StartWorkshiftJSONRequestBody defines body for StartWorkshift for application/json ContentType.
type StartWorkshiftResponse ¶
func ParseStartWorkshiftResponse ¶
func ParseStartWorkshiftResponse(rsp *http.Response) (*StartWorkshiftResponse, error)
ParseStartWorkshiftResponse parses an HTTP response from a StartWorkshiftWithResponse call
func (StartWorkshiftResponse) Status ¶
func (r StartWorkshiftResponse) Status() string
Status returns HTTPResponse.Status
func (StartWorkshiftResponse) StatusCode ¶
func (r StartWorkshiftResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type StdHTTPServerOptions ¶
type StdHTTPServerOptions struct {
BaseURL string
BaseRouter *http.ServeMux
Middlewares []MiddlewareFunc
ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}
type TooManyValuesForParamError ¶
func (*TooManyValuesForParamError) Error ¶
func (e *TooManyValuesForParamError) Error() string
type UnescapedCookieParamError ¶
func (*UnescapedCookieParamError) Error ¶
func (e *UnescapedCookieParamError) Error() string
func (*UnescapedCookieParamError) Unwrap ¶
func (e *UnescapedCookieParamError) Unwrap() error
type UnmarshalingParamError ¶
func (*UnmarshalingParamError) Error ¶
func (e *UnmarshalingParamError) Error() string
func (*UnmarshalingParamError) Unwrap ¶
func (e *UnmarshalingParamError) Unwrap() error
type WorkshiftFinishedEvent ¶
type WorkshiftFinishedEvent struct {
// Duration Finished workshift duration (ns)
Duration int `json:"duration"`
// FinishedAt Workshift finished at
FinishedAt time.Time `json:"finished_at"`
// Id Workshift id
Id WorkshiftID `json:"id"`
Status WorkshiftStatus `json:"status"`
}
WorkshiftFinishedEvent Workshift finished event
type WorkshiftStartedEvent ¶
type WorkshiftStartedEvent struct {
// Id Workshift id
Id WorkshiftID `json:"id"`
// Name Workshift name
Name WorkshiftName `json:"name"`
// StartedAt Workshift started at
StartedAt time.Time `json:"started_at"`
Status WorkshiftStatus `json:"status"`
}
WorkshiftStartedEvent Workshift started event
type WorkshiftStatus ¶
type WorkshiftStatus string
WorkshiftStatus defines model for WorkshiftStatus.
const ( WorkshiftStatusActive WorkshiftStatus = "active" WorkshiftStatusFinished WorkshiftStatus = "finished" )
Defines values for WorkshiftStatus.