models

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// DataConnectionEventMessageEventOPEN captures enum value "OPEN"
	DataConnectionEventMessageEventOPEN string = "OPEN"

	// DataConnectionEventMessageEventCLOSE captures enum value "CLOSE"
	DataConnectionEventMessageEventCLOSE string = "CLOSE"

	// DataConnectionEventMessageEventERROR captures enum value "ERROR"
	DataConnectionEventMessageEventERROR string = "ERROR"
)
View Source
const (

	// MediaConnectionEventMessageEventREADY captures enum value "READY"
	MediaConnectionEventMessageEventREADY string = "READY"

	// MediaConnectionEventMessageEventSTREAM captures enum value "STREAM"
	MediaConnectionEventMessageEventSTREAM string = "STREAM"

	// MediaConnectionEventMessageEventCLOSE captures enum value "CLOSE"
	MediaConnectionEventMessageEventCLOSE string = "CLOSE"

	// MediaConnectionEventMessageEventERROR captures enum value "ERROR"
	MediaConnectionEventMessageEventERROR string = "ERROR"
)
View Source
const (

	// PeerEventMessageErrorMessageBROWSERINCOMPATIBLE captures enum value "BROWSER_INCOMPATIBLE"
	PeerEventMessageErrorMessageBROWSERINCOMPATIBLE string = "BROWSER_INCOMPATIBLE"

	// PeerEventMessageErrorMessageINVALIDID captures enum value "INVALID_ID"
	PeerEventMessageErrorMessageINVALIDID string = "INVALID_ID"

	// PeerEventMessageErrorMessageINVALIDKEY captures enum value "INVALID_KEY"
	PeerEventMessageErrorMessageINVALIDKEY string = "INVALID_KEY"

	// PeerEventMessageErrorMessageUNAVAILABLEID captures enum value "UNAVAILABLE_ID"
	PeerEventMessageErrorMessageUNAVAILABLEID string = "UNAVAILABLE_ID"

	// PeerEventMessageErrorMessageSSLUNAVAILABLE captures enum value "SSL_UNAVAILABLE"
	PeerEventMessageErrorMessageSSLUNAVAILABLE string = "SSL_UNAVAILABLE"

	// PeerEventMessageErrorMessageSERVERDISCONNECTED captures enum value "SERVER_DISCONNECTED"
	PeerEventMessageErrorMessageSERVERDISCONNECTED string = "SERVER_DISCONNECTED"

	// PeerEventMessageErrorMessageSERVERERROR captures enum value "SERVER_ERROR"
	PeerEventMessageErrorMessageSERVERERROR string = "SERVER_ERROR"

	// PeerEventMessageErrorMessageSOCKETERROR captures enum value "SOCKET_ERROR"
	PeerEventMessageErrorMessageSOCKETERROR string = "SOCKET_ERROR"

	// PeerEventMessageErrorMessageSOCKETCLOSED captures enum value "SOCKET_CLOSED"
	PeerEventMessageErrorMessageSOCKETCLOSED string = "SOCKET_CLOSED"
)
View Source
const (

	// PeerEventMessageEventOPEN captures enum value "OPEN"
	PeerEventMessageEventOPEN string = "OPEN"

	// PeerEventMessageEventCONNECTION captures enum value "CONNECTION"
	PeerEventMessageEventCONNECTION string = "CONNECTION"

	// PeerEventMessageEventCALL captures enum value "CALL"
	PeerEventMessageEventCALL string = "CALL"

	// PeerEventMessageEventCLOSE captures enum value "CLOSE"
	PeerEventMessageEventCLOSE string = "CLOSE"

	// PeerEventMessageEventEXPIRESIN captures enum value "EXPIRESIN"
	PeerEventMessageEventEXPIRESIN string = "EXPIRESIN"

	// PeerEventMessageEventERROR captures enum value "ERROR"
	PeerEventMessageEventERROR string = "ERROR"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CallParametsers

type CallParametsers struct {

	// 相手側からのCallに応答するのに必要なIDです
	// Required: true
	MediaConnectionID *string `json:"media_connection_id"`
}

CallParametsers call及びstreamイベントのときのみ含まれます swagger:model CallParametsers

func (*CallParametsers) MarshalBinary

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

MarshalBinary interface implementation

func (*CallParametsers) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CallParametsers) Validate

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

Validate validates this call parametsers

type DataConnectionEventMessage

type DataConnectionEventMessage struct {

	// エラーの内容を示します
	ErrorMessage string `json:"error_message,omitempty"`

	// イベントの種別を示します
	// Required: true
	// Enum: [OPEN CLOSE ERROR]
	Event *string `json:"event"`
}

DataConnectionEventMessage data connection event message swagger:model DataConnectionEventMessage

func (*DataConnectionEventMessage) MarshalBinary

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

MarshalBinary interface implementation

func (*DataConnectionEventMessage) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*DataConnectionEventMessage) Validate

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

Validate validates this data connection event message

type DataConnectionFeedOptions

type DataConnectionFeedOptions struct {

	// Dataを特定するためのIDです
	DataID string `json:"data_id,omitempty"`
}

DataConnectionFeedOptions data connection feed options swagger:model DataConnectionFeedOptions

func (*DataConnectionFeedOptions) MarshalBinary

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

MarshalBinary interface implementation

func (*DataConnectionFeedOptions) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*DataConnectionFeedOptions) Validate

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

Validate validates this data connection feed options

type DataConnectionPutOptions

type DataConnectionPutOptions struct {

	// feed params
	FeedParams *DataConnectionFeedOptions `json:"feed_params,omitempty"`

	// redirect params
	RedirectParams *DataConnectionRedirectOptions `json:"redirect_params,omitempty"`
}

DataConnectionPutOptions data connection put options swagger:model DataConnectionPutOptions

func (*DataConnectionPutOptions) MarshalBinary

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

MarshalBinary interface implementation

func (*DataConnectionPutOptions) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*DataConnectionPutOptions) Validate

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

Validate validates this data connection put options

type DataConnectionRedirectOptions

type DataConnectionRedirectOptions struct {

	// Dataの転送先IPv4アドレスを指定します。ip_v4またはip_v6アドレスのいずれかの情報は必須です。両方が指定された場合はip_v4が優先されます
	IPV4 string `json:"ip_v4,omitempty"`

	// Dataの転送先IPv6アドレスを指定します。ip_v4またはip_v6アドレスのいずれかの情報は必須です。両方が指定された場合はip_v4が優先されます
	IPV6 string `json:"ip_v6,omitempty"`

	// port
	// Required: true
	Port *uint16 `json:"port"`
}

DataConnectionRedirectOptions data connection redirect options swagger:model DataConnectionRedirectOptions

func (*DataConnectionRedirectOptions) MarshalBinary

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

MarshalBinary interface implementation

func (*DataConnectionRedirectOptions) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*DataConnectionRedirectOptions) Validate

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

Validate validates this data connection redirect options

type DataConnectionStatusMessage

type DataConnectionStatusMessage struct {

	// ブラウザのバッファが一杯になった場合に、キューされるメッセージのサイズです
	// Required: true
	Buffersize *int64 `json:"buffersize"`

	// コネクションが開始されたときにPeerJSからアサインされる、または指定されるオプションのラベルです
	// Required: true
	Label *string `json:"label"`

	// コネクションが開始されたときに、コネクションと関連付けされるメタデータです
	// Required: true
	Metadata interface{} `json:"metadata"`

	// コネクションがopenであり、読み込み/書き込みの準備ができている場合にtrueになります
	// Required: true
	Open *bool `json:"open"`

	// 信頼性のあるdata channelの場合にtrueです。コネクションの開始時に定義されます
	// Required: true
	Reliable *bool `json:"reliable"`

	// コネクションの相手側のpeer_idです
	RemoteID string `json:"remote_id,omitempty"`

	// コネクションを通じて送信されるデータのserializeフォーマットです。BINARY (デフォルト値)、 BINARY_UTF8、 JSON、 または NONE となります
	// Required: true
	Serialization *string `json:"serialization"`

	// 常に'DATA'が設定されます
	// Required: true
	Type *string `json:"type"`
}

DataConnectionStatusMessage data connection status message swagger:model DataConnectionStatusMessage

func (*DataConnectionStatusMessage) MarshalBinary

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

MarshalBinary interface implementation

func (*DataConnectionStatusMessage) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*DataConnectionStatusMessage) Validate

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

Validate validates this data connection status message

type DataParametsers

type DataParametsers struct {

	// 相手側からのConnectに応答するのに必要なIDです
	// Required: true
	DataConnectionID *string `json:"data_connection_id"`
}

DataParametsers OnDataConnectionイベントのときのみ含まれます swagger:model DataParametsers

func (*DataParametsers) MarshalBinary

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

MarshalBinary interface implementation

func (*DataParametsers) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*DataParametsers) Validate

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

Validate validates this data parametsers

type DataSockParameters

type DataSockParameters struct {

	// Dataを特定するためのIDです
	// Required: true
	DataID *string `json:"data_id"`

	// Dataを待ち受けるIPv4アドレスです
	IPV4 string `json:"ip_v4,omitempty"`

	// Dataを待ち受けるIPv6アドレスです
	IPV6 string `json:"ip_v6,omitempty"`

	// Dataを待ち受けるポート番号です
	// Required: true
	Port *uint16 `json:"port"`
}

DataSockParameters data sock parameters swagger:model DataSockParameters

func (*DataSockParameters) MarshalBinary

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

MarshalBinary interface implementation

func (*DataSockParameters) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*DataSockParameters) Validate

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

Validate validates this data sock parameters

type DcInit

type DcInit struct {

	// id
	ID int64 `json:"id,omitempty"`

	// max packet life time
	MaxPacketLifeTime int64 `json:"maxPacketLifeTime,omitempty"`

	// max retransmits
	MaxRetransmits int64 `json:"maxRetransmits,omitempty"`

	// negotiated
	Negotiated bool `json:"negotiated,omitempty"`

	// ordered
	Ordered bool `json:"ordered,omitempty"`

	// priority
	Priority string `json:"priority,omitempty"`

	// protocol
	Protocol string `json:"protocol,omitempty"`
}

DcInit dc init swagger:model DcInit

func (*DcInit) MarshalBinary

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

MarshalBinary interface implementation

func (*DcInit) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*DcInit) Validate

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

Validate validates this dc init

type MediaAnswerRedirectOptions added in v0.2.1

type MediaAnswerRedirectOptions struct {

	// audio
	Audio *MediaAnswerRedirectOptionsAudio `json:"audio,omitempty"`

	// audio rtcp
	AudioRtcp *MediaAnswerRedirectOptionsAudioRtcp `json:"audio_rtcp,omitempty"`

	// video
	Video *MediaAnswerRedirectOptionsVideo `json:"video,omitempty"`

	// video rtcp
	VideoRtcp *MediaAnswerRedirectOptionsVideoRtcp `json:"video_rtcp,omitempty"`
}

MediaAnswerRedirectOptions media answer redirect options swagger:model MediaAnswerRedirectOptions

func (*MediaAnswerRedirectOptions) MarshalBinary added in v0.2.1

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

MarshalBinary interface implementation

func (*MediaAnswerRedirectOptions) UnmarshalBinary added in v0.2.1

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

UnmarshalBinary interface implementation

func (*MediaAnswerRedirectOptions) Validate added in v0.2.1

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

Validate validates this media answer redirect options

type MediaAnswerRedirectOptionsAudio added in v0.2.1

type MediaAnswerRedirectOptionsAudio struct {

	// Mediaの転送先IPv4アドレスを指定します。ip_v4またはip_v6アドレスのいずれかの情報は必須です。両方が指定された場合はip_v4が優先されます
	IPV4 string `json:"ip_v4,omitempty"`

	// Mediaの転送先IPv6アドレスを指定します。ip_v4またはip_v6アドレスのいずれかの情報は必須です。両方が指定された場合はip_v4が優先されます
	IPV6 string `json:"ip_v6,omitempty"`

	// port
	Port uint16 `json:"port,omitempty"`
}

MediaAnswerRedirectOptionsAudio media answer redirect options audio swagger:model MediaAnswerRedirectOptionsAudio

func (*MediaAnswerRedirectOptionsAudio) MarshalBinary added in v0.2.1

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

MarshalBinary interface implementation

func (*MediaAnswerRedirectOptionsAudio) UnmarshalBinary added in v0.2.1

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

UnmarshalBinary interface implementation

func (*MediaAnswerRedirectOptionsAudio) Validate added in v0.2.1

Validate validates this media answer redirect options audio

type MediaAnswerRedirectOptionsAudioRtcp added in v0.2.1

type MediaAnswerRedirectOptionsAudioRtcp struct {

	// Audioに対応するRTCP情報の転送先IPv4アドレスを指定します。ip_v4またはip_v6アドレスのいずれかの情報は必須です。両方が指定された場合はip_v4が優先されます
	IPV4 string `json:"ip_v4,omitempty"`

	// Audioに対応するRTCP情報の転送先IPv6アドレスを指定します。ip_v4またはip_v6アドレスのいずれかの情報は必須です。両方が指定された場合はip_v4が優先されます
	IPV6 string `json:"ip_v6,omitempty"`

	// port
	Port uint16 `json:"port,omitempty"`
}

MediaAnswerRedirectOptionsAudioRtcp media answer redirect options audio rtcp swagger:model MediaAnswerRedirectOptionsAudioRtcp

func (*MediaAnswerRedirectOptionsAudioRtcp) MarshalBinary added in v0.2.1

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

MarshalBinary interface implementation

func (*MediaAnswerRedirectOptionsAudioRtcp) UnmarshalBinary added in v0.2.1

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

UnmarshalBinary interface implementation

func (*MediaAnswerRedirectOptionsAudioRtcp) Validate added in v0.2.1

Validate validates this media answer redirect options audio rtcp

type MediaAnswerRedirectOptionsVideo added in v0.2.1

type MediaAnswerRedirectOptionsVideo struct {

	// Mediaの転送先IPv4アドレスを指定します。ip_v4またはip_v6アドレスのいずれかの情報は必須です。両方が指定された場合はip_v4が優先されます
	IPV4 string `json:"ip_v4,omitempty"`

	// Mediaの転送先IPv6アドレスを指定します。ip_v4またはip_v6アドレスのいずれかの情報は必須です。両方が指定された場合はip_v4が優先されます
	IPV6 string `json:"ip_v6,omitempty"`

	// port
	Port uint16 `json:"port,omitempty"`
}

MediaAnswerRedirectOptionsVideo media answer redirect options video swagger:model MediaAnswerRedirectOptionsVideo

func (*MediaAnswerRedirectOptionsVideo) MarshalBinary added in v0.2.1

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

MarshalBinary interface implementation

func (*MediaAnswerRedirectOptionsVideo) UnmarshalBinary added in v0.2.1

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

UnmarshalBinary interface implementation

func (*MediaAnswerRedirectOptionsVideo) Validate added in v0.2.1

Validate validates this media answer redirect options video

type MediaAnswerRedirectOptionsVideoRtcp added in v0.2.1

type MediaAnswerRedirectOptionsVideoRtcp struct {

	// Videoに対応するRTCP情報の転送先IPv4アドレスを指定します。ip_v4またはip_v6アドレスのいずれかの情報は必須です。両方が指定された場合はip_v4が優先されます
	IPV4 string `json:"ip_v4,omitempty"`

	// Videoに対応するRTCP情報の転送先IPv6アドレスを指定します。ip_v4またはip_v6アドレスのいずれかの情報は必須です。両方が指定された場合はip_v4が優先されます
	IPV6 string `json:"ip_v6,omitempty"`

	// port
	Port uint16 `json:"port,omitempty"`
}

MediaAnswerRedirectOptionsVideoRtcp media answer redirect options video rtcp swagger:model MediaAnswerRedirectOptionsVideoRtcp

func (*MediaAnswerRedirectOptionsVideoRtcp) MarshalBinary added in v0.2.1

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

MarshalBinary interface implementation

func (*MediaAnswerRedirectOptionsVideoRtcp) UnmarshalBinary added in v0.2.1

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

UnmarshalBinary interface implementation

func (*MediaAnswerRedirectOptionsVideoRtcp) Validate added in v0.2.1

Validate validates this media answer redirect options video rtcp

type MediaConnectionAnswerOptions

type MediaConnectionAnswerOptions struct {

	// constraints
	// Required: true
	Constraints *PeerCallConstraints `json:"constraints"`

	// redirect params
	RedirectParams *MediaAnswerRedirectOptions `json:"redirect_params,omitempty"`
}

MediaConnectionAnswerOptions media connection answer options swagger:model MediaConnectionAnswerOptions

func (*MediaConnectionAnswerOptions) MarshalBinary

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

MarshalBinary interface implementation

func (*MediaConnectionAnswerOptions) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*MediaConnectionAnswerOptions) Validate

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

Validate validates this media connection answer options

type MediaConnectionAnswerResponse

type MediaConnectionAnswerResponse struct {

	// command type
	// Required: true
	CommandType *string `json:"command_type"`

	// params
	// Required: true
	Params *MediaConnectionAnswerResponseParams `json:"params"`
}

MediaConnectionAnswerResponse media connection answer response swagger:model MediaConnectionAnswerResponse

func (*MediaConnectionAnswerResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*MediaConnectionAnswerResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*MediaConnectionAnswerResponse) Validate

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

Validate validates this media connection answer response

type MediaConnectionAnswerResponseParams

type MediaConnectionAnswerResponseParams struct {

	// Audioを特定するためのIDです
	AudioID string `json:"audio_id,omitempty"`

	// Videoを特定するためのIDです
	VideoID string `json:"video_id,omitempty"`
}

MediaConnectionAnswerResponseParams media connection answer response params swagger:model MediaConnectionAnswerResponseParams

func (*MediaConnectionAnswerResponseParams) MarshalBinary

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

MarshalBinary interface implementation

func (*MediaConnectionAnswerResponseParams) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*MediaConnectionAnswerResponseParams) Validate

Validate validates this media connection answer response params

type MediaConnectionEventMessage

type MediaConnectionEventMessage struct {

	// close options
	CloseOptions interface{} `json:"close_options,omitempty"`

	// エラーの内容を示します
	ErrorMessage string `json:"error_message,omitempty"`

	// イベントの種別を示します
	// Required: true
	// Enum: [READY STREAM CLOSE ERROR]
	Event *string `json:"event"`

	// stream options
	StreamOptions *MediaConnectionEventMessageStreamOptions `json:"stream_options,omitempty"`
}

MediaConnectionEventMessage media connection event message swagger:model MediaConnectionEventMessage

func (*MediaConnectionEventMessage) MarshalBinary

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

MarshalBinary interface implementation

func (*MediaConnectionEventMessage) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*MediaConnectionEventMessage) Validate

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

Validate validates this media connection event message

type MediaConnectionEventMessageStreamOptions

type MediaConnectionEventMessageStreamOptions struct {

	// videoの場合にtrue, audioの場合にfalseを指定します
	// Required: true
	IsVideo *bool `json:"is_video"`

	// stream params
	StreamParams *MediaParameters `json:"stream_params,omitempty"`
}

MediaConnectionEventMessageStreamOptions streamの内容を示します。streamイベントのときのみ含まれます swagger:model MediaConnectionEventMessageStreamOptions

func (*MediaConnectionEventMessageStreamOptions) MarshalBinary

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

MarshalBinary interface implementation

func (*MediaConnectionEventMessageStreamOptions) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*MediaConnectionEventMessageStreamOptions) Validate

Validate validates this media connection event message stream options

type MediaConnectionPliRequestOptions added in v0.2.1

type MediaConnectionPliRequestOptions struct {

	// Mediaを待ち受けるIPv4アドレスです。ip_v4もしくはip_v6のいずれかは必須です
	IPV4 string `json:"ip_v4,omitempty"`

	// Mediaを待ち受けるIPv6アドレスです。ip_v4もしくはip_v6のいずれかは必須です
	IPV6 string `json:"ip_v6,omitempty"`

	// Mediaを待ち受けるポート番号です
	// Required: true
	Port *uint16 `json:"port"`
}

MediaConnectionPliRequestOptions どのMediaに対するRTCP情報をRedirectするのか特定するために、Mediaの受信に利用しているIPアドレスとポート番号を指定します swagger:model MediaConnectionPliRequestOptions

func (*MediaConnectionPliRequestOptions) MarshalBinary added in v0.2.1

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

MarshalBinary interface implementation

func (*MediaConnectionPliRequestOptions) UnmarshalBinary added in v0.2.1

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

UnmarshalBinary interface implementation

func (*MediaConnectionPliRequestOptions) Validate added in v0.2.1

Validate validates this media connection pli request options

type MediaConnectionStatusMessage

type MediaConnectionStatusMessage struct {

	// コネクションが開始されたときに、コネクションと関連付けされるメタデータです
	// Required: true
	Metadata interface{} `json:"metadata"`

	// MediaConnectionがアクティブなときtrueになります
	// Required: true
	Open *bool `json:"open"`

	// 接続相手のPeerのpeer_idです
	// Required: true
	RemoteID *string `json:"remote_id"`
}

MediaConnectionStatusMessage media connection status message swagger:model MediaConnectionStatusMessage

func (*MediaConnectionStatusMessage) MarshalBinary

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

MarshalBinary interface implementation

func (*MediaConnectionStatusMessage) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*MediaConnectionStatusMessage) Validate

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

Validate validates this media connection status message

type MediaOptions

type MediaOptions struct {

	// MediaがVideoかどうかを指定します。falseの場合はAudioとして扱われます
	// Required: true
	IsVideo *bool `json:"is_video"`
}

MediaOptions media options swagger:model MediaOptions

func (*MediaOptions) MarshalBinary

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

MarshalBinary interface implementation

func (*MediaOptions) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*MediaOptions) Validate

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

Validate validates this media options

type MediaParameters

type MediaParameters struct {

	// Mediaを待ち受けるIPv4アドレスです
	IPV4 string `json:"ip_v4,omitempty"`

	// Mediaを待ち受けるIPv6アドレスです
	IPV6 string `json:"ip_v6,omitempty"`

	// Mediaを特定するためのIDです
	// Required: true
	MediaID *string `json:"media_id"`

	// Mediaを待ち受けるポート番号です
	// Required: true
	Port *uint16 `json:"port"`
}

MediaParameters media parameters swagger:model MediaParameters

func (*MediaParameters) MarshalBinary

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

MarshalBinary interface implementation

func (*MediaParameters) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*MediaParameters) Validate

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

Validate validates this media parameters

type MediaRedirectOptions

type MediaRedirectOptions struct {

	// audio
	Audio *MediaRedirectOptionsAudio `json:"audio,omitempty"`

	// video
	Video *MediaRedirectOptionsVideo `json:"video,omitempty"`
}

MediaRedirectOptions media redirect options swagger:model MediaRedirectOptions

func (*MediaRedirectOptions) MarshalBinary

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

MarshalBinary interface implementation

func (*MediaRedirectOptions) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*MediaRedirectOptions) Validate

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

Validate validates this media redirect options

type MediaRedirectOptionsAudio

type MediaRedirectOptionsAudio struct {

	// Mediaの転送先IPv4アドレスを指定します。ip_v4またはip_v6アドレスのいずれかの情報は必須です。両方が指定された場合はip_v4が優先されます
	IPV4 string `json:"ip_v4,omitempty"`

	// Mediaの転送先IPv6アドレスを指定します。ip_v4またはip_v6アドレスのいずれかの情報は必須です。両方が指定された場合はip_v4が優先されます
	IPV6 string `json:"ip_v6,omitempty"`

	// port
	Port uint16 `json:"port,omitempty"`
}

MediaRedirectOptionsAudio media redirect options audio swagger:model MediaRedirectOptionsAudio

func (*MediaRedirectOptionsAudio) MarshalBinary

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

MarshalBinary interface implementation

func (*MediaRedirectOptionsAudio) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*MediaRedirectOptionsAudio) Validate

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

Validate validates this media redirect options audio

type MediaRedirectOptionsVideo

type MediaRedirectOptionsVideo struct {

	// Mediaの転送先IPv4アドレスを指定します。ip_v4またはip_v6アドレスのいずれかの情報は必須です。両方が指定された場合はip_v4が優先されます
	IPV4 string `json:"ip_v4,omitempty"`

	// Mediaの転送先IPv6アドレスを指定します。ip_v4またはip_v6アドレスのいずれかの情報は必須です。両方が指定された場合はip_v4が優先されます
	IPV6 string `json:"ip_v6,omitempty"`

	// port
	Port uint16 `json:"port,omitempty"`
}

MediaRedirectOptionsVideo media redirect options video swagger:model MediaRedirectOptionsVideo

func (*MediaRedirectOptionsVideo) MarshalBinary

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

MarshalBinary interface implementation

func (*MediaRedirectOptionsVideo) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*MediaRedirectOptionsVideo) Validate

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

Validate validates this media redirect options video

type MediaRtcpParameters added in v0.2.1

type MediaRtcpParameters struct {

	// RTCPを待ち受けるIPv4アドレスです。ip_v4もしくはip_v6のいずれかは必須です
	IPV4 string `json:"ip_v4,omitempty"`

	// RTCPを待ち受けるIPv6アドレスです。ip_v4もしくはip_v6のいずれかは必須です
	IPV6 string `json:"ip_v6,omitempty"`

	// RTCPを待ち受けるポート番号です
	// Required: true
	Port *uint16 `json:"port"`

	// RTCP送信先を特定するためのIDです
	// Required: true
	RtcpID *string `json:"rtcp_id"`
}

MediaRtcpParameters media rtcp parameters swagger:model MediaRtcpParameters

func (*MediaRtcpParameters) MarshalBinary added in v0.2.1

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

MarshalBinary interface implementation

func (*MediaRtcpParameters) UnmarshalBinary added in v0.2.1

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

UnmarshalBinary interface implementation

func (*MediaRtcpParameters) Validate added in v0.2.1

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

Validate validates this media rtcp parameters

type PeerAudioParameters

type PeerAudioParameters struct {

	// band width
	// Required: true
	BandWidth *int64 `json:"band_width"`

	// codec
	// Required: true
	Codec *string `json:"codec"`

	// Mediaを特定するためのIDです
	// Required: true
	MediaID *string `json:"media_id"`

	// SDP内部でdynamic assignされるメディアのペイロード番号を指定します
	PayloadType int64 `json:"payload_type,omitempty"`

	// RTCP転送ポートを特定するためのIDです
	RtcpID string `json:"rtcp_id,omitempty"`

	// sampling rate
	SamplingRate int64 `json:"sampling_rate,omitempty"`
}

PeerAudioParameters peer audio parameters swagger:model PeerAudioParameters

func (*PeerAudioParameters) MarshalBinary

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

MarshalBinary interface implementation

func (*PeerAudioParameters) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PeerAudioParameters) Validate

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

Validate validates this peer audio parameters

type PeerCallConstraints

type PeerCallConstraints struct {

	// Audioを転送するかどうか指定します
	// Required: true
	Audio *bool `json:"audio"`

	// audio receive enabled
	AudioReceiveEnabled bool `json:"audioReceiveEnabled,omitempty"`

	// audio params
	AudioParams *PeerAudioParameters `json:"audio_params,omitempty"`

	// Videoを転送するかどうか指定します
	// Required: true
	Video *bool `json:"video"`

	// video receive enabled
	VideoReceiveEnabled bool `json:"videoReceiveEnabled,omitempty"`

	// video params
	VideoParams *PeerVideoParameters `json:"video_params,omitempty"`
}

PeerCallConstraints peer call constraints swagger:model PeerCallConstraints

func (*PeerCallConstraints) MarshalBinary

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

MarshalBinary interface implementation

func (*PeerCallConstraints) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PeerCallConstraints) Validate

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

Validate validates this peer call constraints

type PeerCallOptions

type PeerCallOptions struct {

	// constraints
	// Required: true
	Constraints *PeerCallConstraints `json:"constraints"`

	// 自身のPeerのidを指定します
	// Required: true
	PeerID *string `json:"peer_id"`

	// redirect params
	RedirectParams *PeerCallRedirectOptions `json:"redirect_params,omitempty"`

	// 接続対象のpeer_idを指定します
	// Required: true
	TargetID *string `json:"target_id"`

	// Peerオブジェクトを利用するために必要なトークンです。他のユーザのリソースに対する誤操作防止のために指定します
	// Required: true
	Token *string `json:"token"`
}

PeerCallOptions peer call options swagger:model PeerCallOptions

func (*PeerCallOptions) MarshalBinary

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

MarshalBinary interface implementation

func (*PeerCallOptions) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PeerCallOptions) Validate

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

Validate validates this peer call options

type PeerCallRedirectOptions added in v0.2.1

type PeerCallRedirectOptions struct {

	// audio
	Audio *PeerCallRedirectOptionsAudio `json:"audio,omitempty"`

	// audio rtcp
	AudioRtcp *PeerCallRedirectOptionsAudioRtcp `json:"audio_rtcp,omitempty"`

	// video
	Video *PeerCallRedirectOptionsVideo `json:"video,omitempty"`

	// video rtcp
	VideoRtcp *PeerCallRedirectOptionsVideoRtcp `json:"video_rtcp,omitempty"`
}

PeerCallRedirectOptions peer call redirect options swagger:model PeerCallRedirectOptions

func (*PeerCallRedirectOptions) MarshalBinary added in v0.2.1

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

MarshalBinary interface implementation

func (*PeerCallRedirectOptions) UnmarshalBinary added in v0.2.1

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

UnmarshalBinary interface implementation

func (*PeerCallRedirectOptions) Validate added in v0.2.1

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

Validate validates this peer call redirect options

type PeerCallRedirectOptionsAudio added in v0.2.1

type PeerCallRedirectOptionsAudio struct {

	// Mediaの転送先IPv4アドレスを指定します。ip_v4またはip_v6アドレスのいずれかの情報は必須です。両方が指定された場合はip_v4が優先されます
	IPV4 string `json:"ip_v4,omitempty"`

	// Mediaの転送先IPv6アドレスを指定します。ip_v4またはip_v6アドレスのいずれかの情報は必須です。両方が指定された場合はip_v4が優先されます
	IPV6 string `json:"ip_v6,omitempty"`

	// port
	Port uint16 `json:"port,omitempty"`
}

PeerCallRedirectOptionsAudio peer call redirect options audio swagger:model PeerCallRedirectOptionsAudio

func (*PeerCallRedirectOptionsAudio) MarshalBinary added in v0.2.1

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

MarshalBinary interface implementation

func (*PeerCallRedirectOptionsAudio) UnmarshalBinary added in v0.2.1

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

UnmarshalBinary interface implementation

func (*PeerCallRedirectOptionsAudio) Validate added in v0.2.1

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

Validate validates this peer call redirect options audio

type PeerCallRedirectOptionsAudioRtcp added in v0.2.1

type PeerCallRedirectOptionsAudioRtcp struct {

	// Audioに対応するRTCP情報の転送先IPv4アドレスを指定します。ip_v4またはip_v6アドレスのいずれかの情報は必須です。両方が指定された場合はip_v4が優先されます
	IPV4 string `json:"ip_v4,omitempty"`

	// Audioに対応するRTCP情報の転送先IPv6アドレスを指定します。ip_v4またはip_v6アドレスのいずれかの情報は必須です。両方が指定された場合はip_v4が優先されます
	IPV6 string `json:"ip_v6,omitempty"`

	// port
	Port uint16 `json:"port,omitempty"`
}

PeerCallRedirectOptionsAudioRtcp peer call redirect options audio rtcp swagger:model PeerCallRedirectOptionsAudioRtcp

func (*PeerCallRedirectOptionsAudioRtcp) MarshalBinary added in v0.2.1

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

MarshalBinary interface implementation

func (*PeerCallRedirectOptionsAudioRtcp) UnmarshalBinary added in v0.2.1

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

UnmarshalBinary interface implementation

func (*PeerCallRedirectOptionsAudioRtcp) Validate added in v0.2.1

Validate validates this peer call redirect options audio rtcp

type PeerCallRedirectOptionsVideo added in v0.2.1

type PeerCallRedirectOptionsVideo struct {

	// Mediaの転送先IPv4アドレスを指定します。ip_v4またはip_v6アドレスのいずれかの情報は必須です。両方が指定された場合はip_v4が優先されます
	IPV4 string `json:"ip_v4,omitempty"`

	// Mediaの転送先IPv6アドレスを指定します。ip_v4またはip_v6アドレスのいずれかの情報は必須です。両方が指定された場合はip_v4が優先されます
	IPV6 string `json:"ip_v6,omitempty"`

	// port
	Port uint16 `json:"port,omitempty"`
}

PeerCallRedirectOptionsVideo peer call redirect options video swagger:model PeerCallRedirectOptionsVideo

func (*PeerCallRedirectOptionsVideo) MarshalBinary added in v0.2.1

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

MarshalBinary interface implementation

func (*PeerCallRedirectOptionsVideo) UnmarshalBinary added in v0.2.1

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

UnmarshalBinary interface implementation

func (*PeerCallRedirectOptionsVideo) Validate added in v0.2.1

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

Validate validates this peer call redirect options video

type PeerCallRedirectOptionsVideoRtcp added in v0.2.1

type PeerCallRedirectOptionsVideoRtcp struct {

	// Videoに対応するRTCP情報の転送先IPv4アドレスを指定します。ip_v4またはip_v6アドレスのいずれかの情報は必須です。両方が指定された場合はip_v4が優先されます
	IPV4 string `json:"ip_v4,omitempty"`

	// Videoに対応するRTCP情報の転送先IPv6アドレスを指定します。ip_v4またはip_v6アドレスのいずれかの情報は必須です。両方が指定された場合はip_v4が優先されます
	IPV6 string `json:"ip_v6,omitempty"`

	// port
	Port uint16 `json:"port,omitempty"`
}

PeerCallRedirectOptionsVideoRtcp peer call redirect options video rtcp swagger:model PeerCallRedirectOptionsVideoRtcp

func (*PeerCallRedirectOptionsVideoRtcp) MarshalBinary added in v0.2.1

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

MarshalBinary interface implementation

func (*PeerCallRedirectOptionsVideoRtcp) UnmarshalBinary added in v0.2.1

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

UnmarshalBinary interface implementation

func (*PeerCallRedirectOptionsVideoRtcp) Validate added in v0.2.1

Validate validates this peer call redirect options video rtcp

type PeerCallResponse

type PeerCallResponse struct {

	// command type
	// Required: true
	CommandType *string `json:"command_type"`

	// params
	// Required: true
	Params *PeerCallResponseParams `json:"params"`
}

PeerCallResponse peer call response swagger:model PeerCallResponse

func (*PeerCallResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*PeerCallResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PeerCallResponse) Validate

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

Validate validates this peer call response

type PeerCallResponseParams

type PeerCallResponseParams struct {

	// MediaConnectionを特定するためのIDです
	MediaConnectionID string `json:"media_connection_id,omitempty"`
}

PeerCallResponseParams peer call response params swagger:model PeerCallResponseParams

func (*PeerCallResponseParams) MarshalBinary

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

MarshalBinary interface implementation

func (*PeerCallResponseParams) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PeerCallResponseParams) Validate

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

Validate validates this peer call response params

type PeerConnectOptions

type PeerConnectOptions struct {

	// options
	Options *PeerConnectOptionsOptions `json:"options,omitempty"`

	// params
	// Required: true
	Params *PeerConnectOptionsParams `json:"params"`

	// 接続元のPeerのidを指定します
	// Required: true
	PeerID *string `json:"peer_id"`

	// redirect params
	RedirectParams *DataConnectionRedirectOptions `json:"redirect_params,omitempty"`

	// 接続対象のpeer_idを指定します
	// Required: true
	TargetID *string `json:"target_id"`

	// Peerオブジェクトを利用するために必要なトークンです。他のユーザのリソースに対する誤操作防止のために指定します
	// Required: true
	Token *string `json:"token"`
}

PeerConnectOptions peer connect options swagger:model PeerConnectOptions

func (*PeerConnectOptions) MarshalBinary

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

MarshalBinary interface implementation

func (*PeerConnectOptions) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PeerConnectOptions) Validate

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

Validate validates this peer connect options

type PeerConnectOptionsOptions

type PeerConnectOptionsOptions struct {

	// dc init
	DcInit *DcInit `json:"dcInit,omitempty"`

	// 接続相手に渡される任意の文字列です
	Metadata string `json:"metadata,omitempty"`

	// 送信時のシリアライズ方法を指定します。'BINARY', 'JSON', 'NONE'のいずれかが選択可能です
	Serialization string `json:"serialization,omitempty"`
}

PeerConnectOptionsOptions peer connect options options swagger:model PeerConnectOptionsOptions

func (*PeerConnectOptionsOptions) MarshalBinary

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

MarshalBinary interface implementation

func (*PeerConnectOptionsOptions) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PeerConnectOptionsOptions) Validate

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

Validate validates this peer connect options options

type PeerConnectOptionsParams

type PeerConnectOptionsParams struct {

	// data id
	DataID string `json:"data_id,omitempty"`
}

PeerConnectOptionsParams peer connect options params swagger:model PeerConnectOptionsParams

func (*PeerConnectOptionsParams) MarshalBinary

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

MarshalBinary interface implementation

func (*PeerConnectOptionsParams) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PeerConnectOptionsParams) Validate

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

Validate validates this peer connect options params

type PeerConnectResponse

type PeerConnectResponse struct {

	// command type
	// Required: true
	CommandType *string `json:"command_type"`

	// params
	// Required: true
	Params *PeerConnectResponseParams `json:"params"`
}

PeerConnectResponse peer connect response swagger:model PeerConnectResponse

func (*PeerConnectResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*PeerConnectResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PeerConnectResponse) Validate

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

Validate validates this peer connect response

type PeerConnectResponseParams

type PeerConnectResponseParams struct {

	// DataConnectionを特定するためのIDです
	// Required: true
	DataConnectionID *string `json:"data_connection_id"`
}

PeerConnectResponseParams peer connect response params swagger:model PeerConnectResponseParams

func (*PeerConnectResponseParams) MarshalBinary

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

MarshalBinary interface implementation

func (*PeerConnectResponseParams) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PeerConnectResponseParams) Validate

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

Validate validates this peer connect response params

type PeerCredential added in v0.3.2

type PeerCredential struct {

	// HMACを利用して生成する認証用トークンです
	// Required: true
	// Format: byte
	AuthToken *strfmt.Base64 `json:"authToken"`

	// 現在のUNIXタイムスタンプです
	// Required: true
	Timestamp *int64 `json:"timestamp"`

	// クレデンシャルの生存期間です。timestampからttl秒経過したとき、クレデンシャルが失効します。
	// Required: true
	// Maximum: 90000
	// Minimum: 600
	TTL *int64 `json:"ttl"`
}

PeerCredential peer credential swagger:model PeerCredential

func (*PeerCredential) MarshalBinary added in v0.3.2

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

MarshalBinary interface implementation

func (*PeerCredential) UnmarshalBinary added in v0.3.2

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

UnmarshalBinary interface implementation

func (*PeerCredential) Validate added in v0.3.2

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

Validate validates this peer credential

type PeerEventMessage

type PeerEventMessage struct {

	// call params
	CallParams *CallParametsers `json:"call_params,omitempty"`

	// data params
	DataParams *DataParametsers `json:"data_params,omitempty"`

	// エラーの内容を示します
	// Enum: [BROWSER_INCOMPATIBLE INVALID_ID INVALID_KEY UNAVAILABLE_ID SSL_UNAVAILABLE SERVER_DISCONNECTED SERVER_ERROR SOCKET_ERROR SOCKET_CLOSED]
	ErrorMessage string `json:"error_message,omitempty"`

	// イベントの種別を示します
	// Required: true
	// Enum: [OPEN CONNECTION CALL CLOSE EXPIRESIN ERROR]
	Event *string `json:"event"`

	// params
	Params *PeerParametsers `json:"params,omitempty"`

	// expiresinイベントのときのみ含まれます。クレデンシャルが失効するまでの時間(秒)です
	RemainingSec int64 `json:"remainingSec,omitempty"`
}

PeerEventMessage peer event message swagger:model PeerEventMessage

func (*PeerEventMessage) MarshalBinary

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

MarshalBinary interface implementation

func (*PeerEventMessage) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PeerEventMessage) Validate

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

Validate validates this peer event message

type PeerOptions

type PeerOptions struct {

	// credential
	Credential *PeerCredential `json:"credential,omitempty"`

	// SkyWayでの開発者登録時に指定したWebサーバのドメイン文字列を指定します
	// Required: true
	Domain *string `json:"domain"`

	// クラウド上のPeerServerを利用するためのAPIキーです
	// Required: true
	Key *string `json:"key"`

	// 他のピアがこのピアへ接続するときに使われるIDです。もしIDが指定されない場合、ブローカサーバがIDを生成します
	PeerID string `json:"peer_id,omitempty"`

	// SkyWayのTURNサーバを利用する場合はtrueにします。デフォルトはtrueです
	Turn bool `json:"turn,omitempty"`
}

PeerOptions peer options swagger:model PeerOptions

func (*PeerOptions) MarshalBinary

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

MarshalBinary interface implementation

func (*PeerOptions) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PeerOptions) Validate

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

Validate validates this peer options

type PeerParametsers

type PeerParametsers struct {

	// Peerを特定するためのIDです
	// Required: true
	PeerID *string `json:"peer_id"`

	// Peerを利用するために必要なtokenです
	Token string `json:"token,omitempty"`
}

PeerParametsers openイベントのときのみ含まれます swagger:model PeerParametsers

func (*PeerParametsers) MarshalBinary

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

MarshalBinary interface implementation

func (*PeerParametsers) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PeerParametsers) Validate

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

Validate validates this peer parametsers

type PeerResponse

type PeerResponse struct {

	// command type
	// Required: true
	CommandType *string `json:"command_type"`

	// params
	// Required: true
	Params *PeerResponseParams `json:"params"`
}

PeerResponse peer response swagger:model PeerResponse

func (*PeerResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*PeerResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PeerResponse) Validate

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

Validate validates this peer response

type PeerResponseParams

type PeerResponseParams struct {

	// 他のピアがこのピアへ接続するときに使われるIDです。Peerオブジェクトの特定にも利用します
	// Required: true
	PeerID *string `json:"peer_id"`

	// Peerオブジェクトを利用するために必要なトークンです。他のユーザのリソースに対する誤操作防止のために指定します
	// Required: true
	Token *string `json:"token"`
}

PeerResponseParams peer response params swagger:model PeerResponseParams

func (*PeerResponseParams) MarshalBinary

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

MarshalBinary interface implementation

func (*PeerResponseParams) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PeerResponseParams) Validate

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

Validate validates this peer response params

type PeerStatusMessage

type PeerStatusMessage struct {

	// disconnected
	// Required: true
	Disconnected *bool `json:"disconnected"`

	// Peerオブジェクトを特定するためのIDです
	// Required: true
	PeerID *string `json:"peer_id"`
}

PeerStatusMessage peer status message swagger:model PeerStatusMessage

func (*PeerStatusMessage) MarshalBinary

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

MarshalBinary interface implementation

func (*PeerStatusMessage) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PeerStatusMessage) Validate

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

Validate validates this peer status message

type PeerVideoParameters

type PeerVideoParameters struct {

	// band width
	// Required: true
	BandWidth *int64 `json:"band_width"`

	// codec
	// Required: true
	Codec *string `json:"codec"`

	// Mediaを特定するためのIDです
	// Required: true
	MediaID *string `json:"media_id"`

	// SDP内部でdynamic assignされるメディアのペイロード番号を指定します
	PayloadType int64 `json:"payload_type,omitempty"`

	// RTCP転送ポートを特定するためのIDです
	RtcpID string `json:"rtcp_id,omitempty"`

	// sampling rate
	SamplingRate int64 `json:"sampling_rate,omitempty"`
}

PeerVideoParameters peer video parameters swagger:model PeerVideoParameters

func (*PeerVideoParameters) MarshalBinary

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

MarshalBinary interface implementation

func (*PeerVideoParameters) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PeerVideoParameters) Validate

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

Validate validates this peer video parameters

Jump to

Keyboard shortcuts

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