video

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CRUD

type CRUD interface {
	Get(reqDTO dto.GetVideoRequest) (*agg.Video, error)
	List(reqDTO dto.ListVideoRequest) (list []*agg.Video, total int64, err error)
	Create(reqDTO dto.CreateVideoRequest) (*agg.Video, error)
	Update(reqDTO dto.UpdateVideoRequest) (*agg.Video, error)
	Delete(reqDTO dto.DeleteVideoRequest) error
}

type CRUDService

type CRUDService struct {
	// contains filtered or unexported fields
}

func NewCRUDService

func NewCRUDService(
	ctx context.Context,
	logger logger.Logger,
	builder builder.Video,
	validator validator.Video,
	repository repository.Video,
	resourceService resource.CRUD,
) *CRUDService

func (*CRUDService) Create

func (s *CRUDService) Create(reqDTO dto.CreateVideoRequest) (*agg.Video, error)

func (*CRUDService) Delete

func (s *CRUDService) Delete(reqDTO dto.DeleteVideoRequest) (err error)

func (*CRUDService) Get

func (s *CRUDService) Get(reqDTO dto.GetVideoRequest) (*agg.Video, error)

func (*CRUDService) List

func (s *CRUDService) List(reqDTO dto.ListVideoRequest) (list []*agg.Video, total int64, err error)

func (*CRUDService) Update

func (s *CRUDService) Update(reqDTO dto.UpdateVideoRequest) (*agg.Video, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL