package stream type Stream struct { ID int `json:"id"` Path string `json:"path"` } func NewStream(id int, path string) *Stream { return &Stream{ ID: id, Path: path, } } func (s *Stream) GetID() int { return s.ID } func (s *Stream) GetPath() string { return s.Path } func (s *Stream) SetID(id int) { s.ID = id } func (s *Stream) SetPath(path string) { s.Path = path } func (s *Stream) GetStream() *Stream { return s }