Documentation ¶
Index ¶
- type ChannelRepo
- func (this *ChannelRepo) Create(ctx context.Context, data *domain.Channel) (err error)
- func (this *ChannelRepo) GetByDeviceId(ctx context.Context, deviceId string, channelId string) (data *domain.Channel, err error)
- func (this *ChannelRepo) List(ctx context.Context, deviceId string) (list []domain.Channel, total int64, err error)
- func (this *ChannelRepo) Save(ctx context.Context, data *domain.Channel) (err error)
- type DeviceRepo
- func (this *DeviceRepo) Create(ctx context.Context, data *domain.Device) (err error)
- func (this *DeviceRepo) GetByDeviceId(ctx context.Context, deviceId string) (data *domain.Device, err error)
- func (this *DeviceRepo) List(ctx context.Context) (list []domain.Device, total int64, err error)
- func (this *DeviceRepo) Save(ctx context.Context, data *domain.Device) (err error)
- type Repo
- type StreamRepo
- func (this *StreamRepo) Create(ctx context.Context, data *domain.Stream) (err error)
- func (this *StreamRepo) GetByDeviceId(ctx context.Context, req *domain.ChannelQuery) (data *domain.Stream, err error)
- func (this *StreamRepo) List(ctx context.Context) (list []domain.Stream, total int64, err error)
- func (this *StreamRepo) Update(ctx context.Context, data *domain.Stream) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChannelRepo ¶
func (*ChannelRepo) GetByDeviceId ¶
func (this *ChannelRepo) GetByDeviceId(ctx context.Context, deviceId string, channelId string) (data *domain.Channel, err error)
获取详情
type DeviceRepo ¶
func (*DeviceRepo) GetByDeviceId ¶
func (this *DeviceRepo) GetByDeviceId(ctx context.Context, deviceId string) (data *domain.Device, err error)
获取详情
type Repo ¶
type Repo struct { Device domain2.IDeviceRepo Channel domain2.IChannelRepo Stream domain2.IStreamsRepo }
type StreamRepo ¶
func (*StreamRepo) GetByDeviceId ¶
func (this *StreamRepo) GetByDeviceId(ctx context.Context, req *domain.ChannelQuery) (data *domain.Stream, err error)
获取详情
Click to show internal directories.
Click to hide internal directories.