services

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 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 Setup

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

func NewSetup

func NewSetup(
	setupStore repositories.SetupStorage,
	trackLayoutRepo repositories.TrackLayout,
) *Setup

func (*Setup) CanUserUpdate

func (s *Setup) CanUserUpdate(setup *entities.Setup, user *entities.User) bool

func (*Setup) DefaultTrackLayoutFallback

func (s *Setup) DefaultTrackLayoutFallback(ctx context.Context, setup *entities.Setup) error

func (*Setup) SetFilenameForUpdate

func (s *Setup) SetFilenameForUpdate(reqSetup, savedSetup *entities.Setup)

SetFilenameForUpdate sets the filename from the saved setup to the request data if it is not set there in order to allow updates with empty filename.

func (*Setup) SetUser

func (s *Setup) SetUser(setup *entities.Setup, user *entities.User)

func (*Setup) ShouldUpdateFileContent

func (s *Setup) ShouldUpdateFileContent(setup *entities.Setup) bool

func (*Setup) StoreSetupFile

func (s *Setup) StoreSetupFile(ctx context.Context, setup *entities.Setup, opts ...postgresdb.ExecOption) error

Jump to

Keyboard shortcuts

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