service

package
v0.0.0-...-cab7180 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2022 License: GPL-3.0 Imports: 4 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 {
	Repo repo.RepoInterface
}

func NewService

func NewService(repo repo.RepoInterface) *Service

func (*Service) AddTag

func (s *Service) AddTag(ctx context.Context, scoreID *string, tagID *string) error

func (*Service) CreateGuest

func (s *Service) CreateGuest(ctx context.Context, name, doc *string) (*string, error)

func (*Service) CreateScore

func (s *Service) CreateScore(ctx context.Context, date *time.Time, guestID, description *string) (*string, error)

func (*Service) CreateTag

func (s *Service) CreateTag(ctx context.Context, name *string) (*string, error)

func (*Service) FindGuest

func (s *Service) FindGuest(ctx context.Context, guestID *string) (*entity.Guest, error)

func (*Service) FindScore

func (s *Service) FindScore(ctx context.Context, scoreID *string) (*entity.Score, error)

func (*Service) FindTag

func (s *Service) FindTag(ctx context.Context, tagID *string) (*entity.Tag, error)

func (*Service) SearchTags

func (s *Service) SearchTags(ctx context.Context, name *string) ([]*entity.Tag, error)

func (*Service) UseScore

func (s *Service) UseScore(ctx context.Context, scoreID *string) error

Jump to

Keyboard shortcuts

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