openapi

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: MIT Imports: 10 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

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 HandlerFromMuxWithBaseURL

func HandlerFromMuxWithBaseURL(si ServerInterface, m *http.ServeMux, baseURL string) http.Handler

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

func NewCurrentIntervalsListRequest(server string) (*http.Request, error)

NewCurrentIntervalsListRequest generates requests for CurrentIntervalsList

func NewCurrentWorkshiftRequest

func NewCurrentWorkshiftRequest(server string) (*http.Request, error)

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

func NewEventsRequest(server string) (*http.Request, error)

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

func NewLinesListRequest(server string) (*http.Request, error)

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

func NewStartWorkshiftRequestWithBody

func NewStartWorkshiftRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewStartWorkshiftRequestWithBody generates requests for StartWorkshift with any type of 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

type AddEquipmentToLineResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseAddEquipmentToLineResponse

func ParseAddEquipmentToLineResponse(rsp *http.Response) (*AddEquipmentToLineResponse, error)

ParseAddEquipmentToLineResponse parses an HTTP response from a AddEquipmentToLineWithResponse call

func (AddEquipmentToLineResponse) Status

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

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 (c *Client) AddEquipmentToLineWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

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 (c *Client) CreateEquipmentWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateLine

func (c *Client) CreateLine(ctx context.Context, body CreateLineJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateLineWithBody

func (c *Client) CreateLineWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateQualificationRule

func (c *Client) CreateQualificationRule(ctx context.Context, body CreateQualificationRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateQualificationRuleWithBody

func (c *Client) CreateQualificationRuleWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateSpecification

func (c *Client) CreateSpecification(ctx context.Context, body CreateSpecificationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateSpecificationWithBody

func (c *Client) CreateSpecificationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CurrentIntervalWithBody

func (c *Client) CurrentIntervalWithBody(ctx context.Context, params *CurrentIntervalParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CurrentIntervalsList

func (c *Client) CurrentIntervalsList(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CurrentWorkshift

func (c *Client) CurrentWorkshift(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeprecateSpecification

func (c *Client) DeprecateSpecification(ctx context.Context, body DeprecateSpecificationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeprecateSpecificationWithBody

func (c *Client) DeprecateSpecificationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) Events

func (c *Client) Events(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) FinishInterval

func (c *Client) FinishInterval(ctx context.Context, body FinishIntervalJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) FinishIntervalWithBody

func (c *Client) FinishIntervalWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) FinishWorkshift

func (c *Client) FinishWorkshift(ctx context.Context, body FinishWorkshiftJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) FinishWorkshiftWithBody

func (c *Client) FinishWorkshiftWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) IncreaseProduction

func (c *Client) IncreaseProduction(ctx context.Context, body IncreaseProductionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) IncreaseProductionWithBody

func (c *Client) IncreaseProductionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) LineTopology

func (c *Client) LineTopology(ctx context.Context, params *LineTopologyParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) LinesList

func (c *Client) LinesList(ctx context.Context, 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 (c *Client) MoveEquipmentInLineWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) QualifyDowntime

func (c *Client) QualifyDowntime(ctx context.Context, body QualifyDowntimeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) QualifyDowntimeWithBody

func (c *Client) QualifyDowntimeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RemoveEquipmentFromLine

func (c *Client) RemoveEquipmentFromLine(ctx context.Context, body RemoveEquipmentFromLineJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RemoveEquipmentFromLineWithBody

func (c *Client) RemoveEquipmentFromLineWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RemoveQualificationRule

func (c *Client) RemoveQualificationRule(ctx context.Context, body RemoveQualificationRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RemoveQualificationRuleWithBody

func (c *Client) RemoveQualificationRuleWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) StartInterval

func (c *Client) StartInterval(ctx context.Context, body StartIntervalJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) StartIntervalWithBody

func (c *Client) StartIntervalWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) StartWorkshift

func (c *Client) StartWorkshift(ctx context.Context, body StartWorkshiftJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) StartWorkshiftWithBody

func (c *Client) StartWorkshiftWithBody(ctx context.Context, contentType string, body io.Reader, 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

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

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

type CreateEquipmentResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

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

type CreateLineResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

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

type CreateQualificationRuleResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseCreateQualificationRuleResponse

func ParseCreateQualificationRuleResponse(rsp *http.Response) (*CreateQualificationRuleResponse, error)

ParseCreateQualificationRuleResponse parses an HTTP response from a CreateQualificationRuleWithResponse call

func (CreateQualificationRuleResponse) Status

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

type CreateSpecificationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseCreateSpecificationResponse

func ParseCreateSpecificationResponse(rsp *http.Response) (*CreateSpecificationResponse, error)

ParseCreateSpecificationResponse parses an HTTP response from a CreateSpecificationWithResponse call

func (CreateSpecificationResponse) Status

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

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

type DeprecateSpecificationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseDeprecateSpecificationResponse

func ParseDeprecateSpecificationResponse(rsp *http.Response) (*DeprecateSpecificationResponse, error)

ParseDeprecateSpecificationResponse parses an HTTP response from a DeprecateSpecificationWithResponse call

func (DeprecateSpecificationResponse) Status

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 EquipmentCategory

type EquipmentCategory = string

EquipmentCategory Equipment category

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 EquipmentID

type EquipmentID = string

EquipmentID Equipment id

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 EquipmentName

type EquipmentName = string

EquipmentName Equipment name

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

type FinishIntervalResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

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

type FinishWorkshiftResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

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

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

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

type IncreaseProductionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseIncreaseProductionResponse

func ParseIncreaseProductionResponse(rsp *http.Response) (*IncreaseProductionResponse, error)

ParseIncreaseProductionResponse parses an HTTP response from a IncreaseProductionWithResponse call

func (IncreaseProductionResponse) Status

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 IntervalID

type IntervalID = string

IntervalID Worktime id

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

type InvalidParamFormatError struct {
	ParamName string
	Err       error
}

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 LineID

type LineID = string

LineID Line id

type LineName

type LineName = string

LineName Line name

type LineTopology

type LineTopology = []LineTopologyItem

LineTopology Line topology

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 LinesList

type LinesList = []LinesListItem

LinesList Lines list

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

type LinesListResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *LinesList
}

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 MiddlewareFunc

type MiddlewareFunc func(http.Handler) http.Handler

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

Defines values for MoveEquipmentInLineCommandDirection.

type MoveEquipmentInLineJSONRequestBody

type MoveEquipmentInLineJSONRequestBody = MoveEquipmentInLineCommand

MoveEquipmentInLineJSONRequestBody defines body for MoveEquipmentInLine for application/json ContentType.

type MoveEquipmentInLineResponse

type MoveEquipmentInLineResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseMoveEquipmentInLineResponse

func ParseMoveEquipmentInLineResponse(rsp *http.Response) (*MoveEquipmentInLineResponse, error)

ParseMoveEquipmentInLineResponse parses an HTTP response from a MoveEquipmentInLineWithResponse call

func (MoveEquipmentInLineResponse) Status

Status returns HTTPResponse.Status

func (MoveEquipmentInLineResponse) StatusCode

func (r MoveEquipmentInLineResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ProductionAmount

type ProductionAmount = int

ProductionAmount Production amount

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

type QualifyDowntimeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

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

type RemoveEquipmentFromLineResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseRemoveEquipmentFromLineResponse

func ParseRemoveEquipmentFromLineResponse(rsp *http.Response) (*RemoveEquipmentFromLineResponse, error)

ParseRemoveEquipmentFromLineResponse parses an HTTP response from a RemoveEquipmentFromLineWithResponse call

func (RemoveEquipmentFromLineResponse) Status

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

type RemoveQualificationRuleResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseRemoveQualificationRuleResponse

func ParseRemoveQualificationRuleResponse(rsp *http.Response) (*RemoveQualificationRuleResponse, error)

ParseRemoveQualificationRuleResponse parses an HTTP response from a RemoveQualificationRuleWithResponse call

func (RemoveQualificationRuleResponse) Status

Status returns HTTPResponse.Status

func (RemoveQualificationRuleResponse) StatusCode

func (r RemoveQualificationRuleResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type RequiredHeaderError

type RequiredHeaderError struct {
	ParamName string
	Err       error
}

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

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 SpecificationCode

type SpecificationCode = string

SpecificationCode Specification code

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 SpecificationID

type SpecificationID = string

SpecificationID Specification id

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

type StartIntervalResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

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

type StartWorkshiftResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

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

type TooManyValuesForParamError struct {
	ParamName string
	Count     int
}

func (*TooManyValuesForParamError) Error

type UnescapedCookieParamError

type UnescapedCookieParamError struct {
	ParamName string
	Err       error
}

func (*UnescapedCookieParamError) Error

func (e *UnescapedCookieParamError) Error() string

func (*UnescapedCookieParamError) Unwrap

func (e *UnescapedCookieParamError) Unwrap() error

type UnmarshalingParamError

type UnmarshalingParamError struct {
	ParamName string
	Err       error
}

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 WorkshiftID

type WorkshiftID = string

WorkshiftID Workshift id

type WorkshiftName

type WorkshiftName = string

WorkshiftName Workshift name

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.

Jump to

Keyboard shortcuts

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