trailer

package
v0.0.0-...-20e6d49 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2025 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func NewService

func NewService(p ServiceParams) *Service

func (*Service) Create

func (s *Service) Create(ctx context.Context, lc *trailer.Trailer, userID pulid.ID) (*trailer.Trailer, error)

func (*Service) Get

func (*Service) List

func (*Service) SelectOptions

func (s *Service) SelectOptions(ctx context.Context, opts *repositories.ListTrailerOptions) ([]*types.SelectOption, error)

func (*Service) Update

func (s *Service) Update(ctx context.Context, t *trailer.Trailer, userID pulid.ID) (*trailer.Trailer, error)

type ServiceParams

type ServiceParams struct {
	fx.In

	Logger        *logger.Logger
	Repo          repositories.TrailerRepository
	PermService   services.PermissionService
	AuditService  services.AuditService
	SearchService *search.Service
	Validator     *trailervalidator.Validator
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳