Documentation
¶
Index ¶
- type VideoInfo
- type VideoModel
- func (v *VideoModel) Close(ctx context.Context) error
- func (v *VideoModel) Create(ctx context.Context, video *VideoInfo) error
- func (v *VideoModel) Delete(ctx context.Context, video *VideoInfo) error
- func (v *VideoModel) Get(ctx context.Context, id int64) (*VideoInfo, error)
- func (v *VideoModel) ListByAuthor(ctx context.Context, author uint32) ([]*VideoInfo, error)
- func (v *VideoModel) ListByLastesTime(ctx context.Context, lastest_time int64) ([]*VideoInfo, error)
- func (v *VideoModel) Update(ctx context.Context, video *VideoInfo) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VideoModel ¶
type VideoModel struct {
// contains filtered or unexported fields
}
func NewVideoModel ¶
func NewVideoModel(uri, user, password, realm string, node int64) (*VideoModel, error)
func (*VideoModel) Create ¶
func (v *VideoModel) Create(ctx context.Context, video *VideoInfo) error
func (*VideoModel) Delete ¶
func (v *VideoModel) Delete(ctx context.Context, video *VideoInfo) error
func (*VideoModel) ListByAuthor ¶
func (*VideoModel) ListByLastesTime ¶
Click to show internal directories.
Click to hide internal directories.