Documentation ¶
Index ¶
- Variables
- func InitDeps(ctx context.Context, logger saltlog.Logger, cfg config.Config, ...) (*api.Deps, *newrelic.Application, *pgc.Client, ...)
- func New() *cobra.Command
- func StartNotificationDLQHandlerWorker(ctx context.Context, cfg config.Config, cancelWorkerChan chan struct{}) error
- func StartNotificationHandlerWorker(ctx context.Context, cfg config.Config, cancelWorkerChan chan struct{}) error
- func StartServer(ctx context.Context, cfg config.Config) error
- func UploadRules(client sirenv1beta1.SirenServiceClient, yamlFile []byte) ([]uint64, error)
- func UploadTemplate(client sirenv1beta1.SirenServiceClient, yamlFile []byte) (uint64, error)
- type ClientConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrClientConfigNotFound = errors.New(heredoc.Doc(`
Siren client config not found.
Run "siren config init" to initialize a new client config or
Run "siren help environment" for more information.
`))
)
Functions ¶
func InitDeps ¶
func InitDeps( ctx context.Context, logger saltlog.Logger, cfg config.Config, queue notification.Queuer, ) (*api.Deps, *newrelic.Application, *pgc.Client, map[string]notification.Notifier, *providers.PluginManager, error)
func UploadRules ¶
func UploadRules(client sirenv1beta1.SirenServiceClient, yamlFile []byte) ([]uint64, error)
func UploadTemplate ¶
func UploadTemplate(client sirenv1beta1.SirenServiceClient, yamlFile []byte) (uint64, error)
Types ¶
type ClientConfig ¶
type ClientConfig struct {
Host string `yaml:"host" cmdx:"host" default:"localhost:8080"`
}
Click to show internal directories.
Click to hide internal directories.