service

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSlotService

func NewSlotService(
	config *config.SlotConfig,
	userService interfaces.IUserService,
	slotRepository interfaces.ISlotRepository,
) interfaces.ISlotService

NewSlotService creates and returns a new instance of slotService.

Parameters:

  • config: SlotConfig containing slot game settings.
  • userService: UserService for managing user-related operations.
  • slotRepository: SlotRepository for handling spin records.

Returns:

  • An instance of slotService implementing ISlotService.

func NewUserService

func NewUserService(userRepository interfaces.IUserRepository) interfaces.IUserService

NewUserService creates and returns a new instance of userService with the given user repository.

Parameters:

  • userRepository: An implementation of IUserRepository for managing user data.

Returns:

  • A new instance of userService implementing IUserService.

Types

This section is empty.

Jump to

Keyboard shortcuts

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