Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ConfigLocation = "/perm/icof/start-config.json"
ConfigLocation is used to load the config required for icof to start. gokrazy stores the permanent data under the /perm directory
View Source
var StateLocation = "/perm/icof/state.json"
StateLocation where the state will be stored
Functions ¶
This section is empty.
Types ¶
type EmailAddress ¶
type EmailClientConfig ¶
type EmailReceiver ¶
type EmailReceiver struct { Name string `json:"name"` AlertTemplateMessage string `json:"alert_template_message"` ResolveTemplateMessage string `json:"resolve_template_message"` Addresses []EmailAddress `json:"addresses"` }
type EmailReceiverConfig ¶
type EmailReceiverConfig struct { AlertSubject string `json:"alert_subject"` ResolveSubject string `json:"resolve_subject"` Receivers []EmailReceiver `json:"receivers"` }
type SavedState ¶
type SavedState struct {
State icof.ObserverState `json:"state"`
}
SavedState content for state file
type StartUpConfig ¶
type StartUpConfig struct { EmailClientConfig EmailClientConfig `json:"email_config"` EmailReceiverConfig EmailReceiverConfig `json:"email_receiver_config"` }
StartUpConfig holds all required properties for icof to start
func (StartUpConfig) GetEmailReceivers ¶
func (c StartUpConfig) GetEmailReceivers(ctx context.Context) ([]notifier.EmailReceiver, error)
GetEmailReceivers implements the notifier.EmailReceiverRepository
type State ¶
type State struct {
// contains filtered or unexported fields
}
State implements the icof.StateRepository
func NewStateRepository ¶
func NewStateRepository() *State
NewStateRepository init a new State repository
Click to show internal directories.
Click to hide internal directories.