service

package
v0.0.0-...-247c3a5 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: MIT Imports: 6 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 NewSubscribeService

func NewSubscribeService(storage storage) *Service

func (*Service) Get

func (s *Service) Get(ctx context.Context, userID userPkg.ID, wishlistID wishlist.ID) (*subscribePkg.Subscribe, error)

func (*Service) GetByUser

func (s *Service) GetByUser(ctx context.Context, userID userPkg.ID) ([]*subscribePkg.Subscribe, error)

func (*Service) Subscribe

func (s *Service) Subscribe(ctx context.Context, userID userPkg.ID, wishlistID wishlist.ID) error

func (*Service) Unsubscribe

func (s *Service) Unsubscribe(ctx context.Context, userID userPkg.ID, wishlistID wishlist.ID) error

Jump to

Keyboard shortcuts

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