stream

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2022 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bind

func Bind(r *gin.Engine, ws *web.Service)

Bind to webservice

Types

type Stream

type Stream struct {
	ID       uuid.UUID `json:"id" example:"dffe2c0e-3713-4399-8ee2-279becbbb06e"`
	ListenAt time.Time `json:"listen_at" example:"2020-12-10T00:00:00.000000+01:00"`
	StartAt  time.Time `json:"start_at" example:"2020-12-10T19:00:00.000000+01:00"`
	EndAt    time.Time `json:"end_at" example:"2020-12-10T22:00:00.000000+01:00"`
	Chat     bool      `json:"chat"`
	Running  bool      `json:"running"`
	// attributes
	CommonName string      `json:"common_name" example:"2020-12-polizeigewalt"`
	Poster     string      `` /* 139-byte string literal not displayed */
	Preview    string      `` /* 142-byte string literal not displayed */
	EventID    *uuid.UUID  `json:"event_id" gorm:"type:uuid"`
	Tags       []uuid.UUID `json:"tags,omitempty" example:"df1555f5-7046-4f7a-adcc-195b73949723,0bca0cf4-a9b9-46d7-821f-18c59c08fc1d"`
	Speakers   []uuid.UUID `json:"speakers,omitempty" example:"b778369e-d44f-4d15-bf79-a9e8faec022d,09120c00-acb6-4865-b1b5-6bf39963e47f"`
}

Stream struct

func (*Stream) Model

func (s *Stream) Model() *models.Stream

Jump to

Keyboard shortcuts

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