Versions in this module Expand all Collapse all v1 v1.0.0 Feb 23, 2022 Changes in this version + var ConfigLocation = "/perm/icof/start-config.json" + var StateLocation = "/perm/icof/state.json" + type EmailAddress struct + Email string + Name string + Surname string + type EmailClientConfig struct + FromEmailAddress string + Host string + Password string + Port int + Username string + type EmailReceiver struct + Addresses []EmailAddress + AlertTemplateMessage string + Name string + ResolveTemplateMessage string + type EmailReceiverConfig struct + AlertSubject string + Receivers []EmailReceiver + ResolveSubject string + type SavedState struct + State icof.ObserverState + type StartUpConfig struct + EmailClientConfig EmailClientConfig + EmailReceiverConfig EmailReceiverConfig + func New() (StartUpConfig, error) + func (c StartUpConfig) GetEmailReceivers(ctx context.Context) ([]notifier.EmailReceiver, error) + type State struct + func NewStateRepository() *State + func (s *State) GetLatest(ctx context.Context) (icof.ObserverState, error) + func (s *State) Save(ctx context.Context, state icof.ObserverState) error