Documentation
¶
Index ¶
- func PopulateExternalChannelID()
- type Channel
- type Service
- func (s *Service) CheckChannelExists(cName string) bool
- func (s *Service) CheckChannelExistsNoContext(cName string) bool
- func (s *Service) CreateChannel(channelDto Channel) (*ent.Channel, error)
- func (s *Service) DeleteChannel(channelID uuid.UUID) error
- func (s *Service) GetChannel(channelID uuid.UUID) (*ent.Channel, error)
- func (s *Service) GetChannelByName(cName string) (*ent.Channel, error)
- func (s *Service) GetChannels() ([]*ent.Channel, error)
- func (s *Service) UpdateChannel(cId uuid.UUID, channelDto Channel) (*ent.Channel, error)
- func (s *Service) UpdateChannelImage(c echo.Context, channelID uuid.UUID) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PopulateExternalChannelID ¶ added in v1.1.0
func PopulateExternalChannelID()
Types ¶
type Channel ¶
type Channel struct { ID uuid.UUID `json:"id"` ExtID string `json:"ext_id"` Name string `json:"name"` DisplayName string `json:"display_name"` ImagePath string `json:"image_path"` Retention bool `json:"retention"` RetentionDays int64 `json:"retention_days"` UpdatedAt time.Time `json:"updated_at"` CreatedAt time.Time `json:"created_at"` }
type Service ¶
func NewService ¶
func (*Service) CheckChannelExists ¶
func (*Service) CheckChannelExistsNoContext ¶
func (*Service) CreateChannel ¶
func (*Service) GetChannel ¶
func (*Service) GetChannelByName ¶
func (*Service) UpdateChannel ¶
Click to show internal directories.
Click to hide internal directories.