Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UpdateConfig ¶
func UpdateConfig(arg UpdateConfigParams) error
Types ¶
type App ¶
type App struct {
CP ConfigProvider
}
type Config ¶
type ConfigProvider ¶
type ConfigProvider struct {
// contains filtered or unexported fields
}
func NewConfigProvider ¶
func NewConfigProvider(filePath string) (ConfigProvider, error)
func (ConfigProvider) GetConfig ¶
func (p ConfigProvider) GetConfig() (Config, error)
func (ConfigProvider) UpdateConfig ¶
func (p ConfigProvider) UpdateConfig(fn func(cfg Config) (Config, error)) error
type EventBuilder ¶
type EventBuilder[T any] struct { // contains filtered or unexported fields }
func NewEventBuilder ¶
func NewEventBuilder[T any](action string) EventBuilder[T]
func (EventBuilder[T]) Create ¶
func (e EventBuilder[T]) Create(data T) Event
type UpdateConfigParams ¶
Click to show internal directories.
Click to hide internal directories.