service

package
v0.0.0-...-6402029 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Segment

type Segment interface {
	CreateSegment(title string) error
	DeleteSegment(title string) error
}

type SegmentService

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

func NewSegmentService

func NewSegmentService(repo repository.Segment) *SegmentService

func (*SegmentService) CreateSegment

func (s *SegmentService) CreateSegment(title string) error

func (*SegmentService) DeleteSegment

func (s *SegmentService) DeleteSegment(title string) error

type Service

type Service struct {
	User
	Segment
}

func NewService

func NewService(repo *repository.Repository) *Service

type User

type User interface {
	Update(update dynamicsegmentation.UserUpdate) error
	GetUsersCurrentSegments(userId int) ([]string, error)
	GetUsersSegmentsHistory(string, string) (string, error)
	GetReportsPath() string
}

type UserService

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

func NewUserService

func NewUserService(repo repository.User) *UserService

func (*UserService) GetReportsPath

func (s *UserService) GetReportsPath() string

func (*UserService) GetUsersCurrentSegments

func (s *UserService) GetUsersCurrentSegments(userId int) ([]string, error)

func (*UserService) GetUsersSegmentsHistory

func (s *UserService) GetUsersSegmentsHistory(dateFrom string, dateTo string) (string, error)

func (*UserService) Update

func (s *UserService) Update(update dynamicsegmentation.UserUpdate) error

Jump to

Keyboard shortcuts

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