streamengine-core/stream/stream.go

33 lines
441 B
Go
Raw Permalink Normal View History

2024-07-11 03:12:19 +00:00
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
}