models

package
v0.0.0-...-18cb8d9 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {

	// code
	// Required: true
	Code *string `json:"code"`

	// message
	// Required: true
	Message *string `json:"message"`
}

Error error

swagger:model Error

func (*Error) ContextValidate

func (m *Error) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this error based on context it is used

func (*Error) MarshalBinary

func (m *Error) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Error) UnmarshalBinary

func (m *Error) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Error) Validate

func (m *Error) Validate(formats strfmt.Registry) error

Validate validates this error

type ExperimentStatus

type ExperimentStatus struct {

	// data
	// Required: true
	Data *StreamStatus `json:"data"`

	// name of the experiment
	// Example: spin30
	// Required: true
	Name *string `json:"name"`

	// test
	// Required: true
	Test *TestStatus `json:"test"`

	// video
	// Required: true
	Video *StreamStatus `json:"video"`
}

ExperimentStatus Status of an experiment

swagger:model ExperimentStatus

func (*ExperimentStatus) ContextValidate

func (m *ExperimentStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this experiment status based on the context it is used

func (*ExperimentStatus) MarshalBinary

func (m *ExperimentStatus) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ExperimentStatus) UnmarshalBinary

func (m *ExperimentStatus) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ExperimentStatus) Validate

func (m *ExperimentStatus) Validate(formats strfmt.Registry) error

Validate validates this experiment status

type ExperimentStatuses

type ExperimentStatuses []*ExperimentStatus

ExperimentStatuses List of experiment statuses

swagger:model ExperimentStatuses

func (ExperimentStatuses) ContextValidate

func (m ExperimentStatuses) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this experiment statuses based on the context it is used

func (ExperimentStatuses) Validate

func (m ExperimentStatuses) Validate(formats strfmt.Registry) error

Validate validates this experiment statuses

type JumpStatus

type JumpStatus struct {

	// is the experiment currently actively sending?
	// Required: true
	Active *bool `json:"active"`

	// number of clients connected (0 if just the experiment)
	// Required: true
	Clients *int64 `json:"clients"`

	// is the experiment currently connected to jump?
	// Required: true
	Connected *bool `json:"connected"`

	// duration since last send by experiment
	// Required: true
	Last *string `json:"last"`

	// name of the experiment
	// Example: spin30
	// Required: true
	Name *string `json:"name"`
}

JumpStatus Status of the jump connection for an experiment

swagger:model JumpStatus

func (*JumpStatus) ContextValidate

func (m *JumpStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this jump status based on context it is used

func (*JumpStatus) MarshalBinary

func (m *JumpStatus) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*JumpStatus) UnmarshalBinary

func (m *JumpStatus) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*JumpStatus) Validate

func (m *JumpStatus) Validate(formats strfmt.Registry) error

Validate validates this jump status

type JumpStatuses

type JumpStatuses []*JumpStatus

JumpStatuses List of jump statuses

swagger:model JumpStatuses

func (JumpStatuses) ContextValidate

func (m JumpStatuses) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this jump statuses based on the context it is used

func (JumpStatuses) Validate

func (m JumpStatuses) Validate(formats strfmt.Registry) error

Validate validates this jump statuses

type StreamStatus

type StreamStatus struct {

	// is the experiment currently actively sending?
	// Required: true
	Active *bool `json:"active"`

	// number of clients connected (0 if just the experiment)
	// Required: true
	Clients *int64 `json:"clients"`

	// is the experiment currently connected to relay?
	// Required: true
	Connected *bool `json:"connected"`

	// duration since last send by experiment
	// Required: true
	Last *string `json:"last"`

	// does the experiment require this stream?
	// Required: true
	Required *bool `json:"required"`
}

StreamStatus Status of a stream

swagger:model StreamStatus

func (*StreamStatus) ContextValidate

func (m *StreamStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this stream status based on context it is used

func (*StreamStatus) MarshalBinary

func (m *StreamStatus) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*StreamStatus) UnmarshalBinary

func (m *StreamStatus) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*StreamStatus) Validate

func (m *StreamStatus) Validate(formats strfmt.Registry) error

Validate validates this stream status

type TestStatus

type TestStatus struct {

	// number of tests attempted to date
	Attempts int64 `json:"attempts,omitempty"`

	// RFC3339 datetime of last test
	// Required: true
	Last *string `json:"last"`

	// did the experiment pass the test last time?
	// Required: true
	Passed *bool `json:"passed"`

	// number of tests passed to date
	Score int64 `json:"score,omitempty"`
}

TestStatus Status of a test

swagger:model TestStatus

func (*TestStatus) ContextValidate

func (m *TestStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this test status based on context it is used

func (*TestStatus) MarshalBinary

func (m *TestStatus) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TestStatus) UnmarshalBinary

func (m *TestStatus) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TestStatus) Validate

func (m *TestStatus) Validate(formats strfmt.Registry) error

Validate validates this test status

Jump to

Keyboard shortcuts

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