stream.go 638 B

12345678910111213141516171819202122232425
  1. package model
  2. type Stream struct {
  3. Model
  4. Path string `json:"path" gorm:"uniqueIndex"`
  5. Advanced bool `json:"advanced"`
  6. EnvGroupID uint64 `json:"env_group_id"`
  7. EnvGroup *EnvGroup `json:"env_group,omitempty"`
  8. SyncNodeIDs []uint64 `json:"sync_node_ids" gorm:"serializer:json"`
  9. }
  10. // GetPath implements ConfigEntity interface
  11. func (s *Stream) GetPath() string {
  12. return s.Path
  13. }
  14. // GetEnvGroupID implements ConfigEntity interface
  15. func (s *Stream) GetEnvGroupID() uint64 {
  16. return s.EnvGroupID
  17. }
  18. // GetEnvGroup implements ConfigEntity interface
  19. func (s *Stream) GetEnvGroup() *EnvGroup {
  20. return s.EnvGroup
  21. }