Documentation
¶
Index ¶
- type Setup
- func (s *Setup) CanUserUpdate(setup *entities.Setup, user *entities.User) bool
- func (s *Setup) DefaultTrackLayoutFallback(ctx context.Context, setup *entities.Setup) error
- func (s *Setup) SetFilenameForUpdate(reqSetup, savedSetup *entities.Setup)
- func (s *Setup) SetUser(setup *entities.Setup, user *entities.User)
- func (s *Setup) ShouldUpdateFileContent(setup *entities.Setup) bool
- func (s *Setup) StoreSetupFile(ctx context.Context, setup *entities.Setup, opts ...postgresdb.ExecOption) error
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 (*Setup) DefaultTrackLayoutFallback ¶
func (*Setup) SetFilenameForUpdate ¶
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) ShouldUpdateFileContent ¶
func (*Setup) StoreSetupFile ¶
func (s *Setup) StoreSetupFile(ctx context.Context, setup *entities.Setup, opts ...postgresdb.ExecOption) error
Click to show internal directories.
Click to hide internal directories.