Documentation
¶
Index ¶
- type BaseSetup
- type MemcachedSetup
- type RedisSetup
- type SessionsExtension
- func (e *SessionsExtension) Compile(ctx *extensions.Context, installer *extensions.Installer) error
- func (e *SessionsExtension) Configure(ctx *extensions.Context) error
- func (e *SessionsExtension) Name() string
- func (e *SessionsExtension) PreprocessCommands(ctx *extensions.Context) ([]string, error)
- func (e *SessionsExtension) ServiceCommands(ctx *extensions.Context) (map[string]string, error)
- func (e *SessionsExtension) ServiceEnvironment(ctx *extensions.Context) (map[string]string, error)
- func (e *SessionsExtension) ShouldCompile(ctx *extensions.Context) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseSetup ¶
type BaseSetup interface {
SessionStoreKey() string
SessionSavePath() string
ExtensionName() string
CustomConfigPHPIni(phpIni *extensions.ConfigFileEditor)
}
BaseSetup is the interface for session store configurations
type MemcachedSetup ¶
type MemcachedSetup struct {
// contains filtered or unexported fields
}
MemcachedSetup configures Memcached for session storage
func NewMemcachedSetup ¶
func NewMemcachedSetup(ctx *extensions.Context, credentials map[string]interface{}) *MemcachedSetup
NewMemcachedSetup creates a new Memcached setup
func (*MemcachedSetup) CustomConfigPHPIni ¶
func (m *MemcachedSetup) CustomConfigPHPIni(phpIni *extensions.ConfigFileEditor)
CustomConfigPHPIni adds custom PHP ini configuration for Memcached
func (*MemcachedSetup) ExtensionName ¶
func (m *MemcachedSetup) ExtensionName() string
ExtensionName returns the PHP extension name
func (*MemcachedSetup) SessionSavePath ¶
func (m *MemcachedSetup) SessionSavePath() string
SessionSavePath returns the Memcached session save path
func (*MemcachedSetup) SessionStoreKey ¶
func (m *MemcachedSetup) SessionStoreKey() string
SessionStoreKey returns the service name key to look for
type RedisSetup ¶
type RedisSetup struct {
// contains filtered or unexported fields
}
RedisSetup configures Redis for session storage
func NewRedisSetup ¶
func NewRedisSetup(ctx *extensions.Context, credentials map[string]interface{}) *RedisSetup
NewRedisSetup creates a new Redis setup
func (*RedisSetup) CustomConfigPHPIni ¶
func (r *RedisSetup) CustomConfigPHPIni(phpIni *extensions.ConfigFileEditor)
CustomConfigPHPIni adds custom PHP ini configuration (no-op for Redis)
func (*RedisSetup) ExtensionName ¶
func (r *RedisSetup) ExtensionName() string
ExtensionName returns the PHP extension name
func (*RedisSetup) SessionSavePath ¶
func (r *RedisSetup) SessionSavePath() string
SessionSavePath returns the Redis session save path
func (*RedisSetup) SessionStoreKey ¶
func (r *RedisSetup) SessionStoreKey() string
SessionStoreKey returns the service name key to look for
type SessionsExtension ¶
type SessionsExtension struct{}
SessionsExtension configures Redis or Memcached for session sharing
func (*SessionsExtension) Compile ¶
func (e *SessionsExtension) Compile(ctx *extensions.Context, installer *extensions.Installer) error
Compile installs/compiles the extension payload
func (*SessionsExtension) Configure ¶
func (e *SessionsExtension) Configure(ctx *extensions.Context) error
Configure configures the extension
func (*SessionsExtension) Name ¶
func (e *SessionsExtension) Name() string
Name returns the extension name
func (*SessionsExtension) PreprocessCommands ¶
func (e *SessionsExtension) PreprocessCommands(ctx *extensions.Context) ([]string, error)
PreprocessCommands returns commands to run before app starts
func (*SessionsExtension) ServiceCommands ¶
func (e *SessionsExtension) ServiceCommands(ctx *extensions.Context) (map[string]string, error)
ServiceCommands returns long-running service commands
func (*SessionsExtension) ServiceEnvironment ¶
func (e *SessionsExtension) ServiceEnvironment(ctx *extensions.Context) (map[string]string, error)
ServiceEnvironment returns environment variables for services
func (*SessionsExtension) ShouldCompile ¶
func (e *SessionsExtension) ShouldCompile(ctx *extensions.Context) bool
ShouldCompile checks if the extension should be compiled