googlechronicle

package
v0.0.0-...-54549a1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 9, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	URL     string `json:"url" validate:"required,url" required:"true"`
	AuthKey string `json:"auth_header"`
}

type GoogleChronicle

type GoogleChronicle struct {
	Config           Config                  `json:"config"`
	IntegrationType  string                  `json:"integration_type"`
	NotificationType string                  `json:"notification_type"`
	Filters          reporters.FieldsFilters `json:"filters"`
	Message          string                  `json:"message"`
}

func New

func New(ctx context.Context, b []byte) (*GoogleChronicle, error)

func (GoogleChronicle) IsValidCredential

func (g GoogleChronicle) IsValidCredential(ctx context.Context) (bool, error)

todo

func (GoogleChronicle) SendNotification

func (g GoogleChronicle) SendNotification(ctx context.Context, message string, extras map[string]interface{}) error

func (GoogleChronicle) ValidateConfig

func (g GoogleChronicle) ValidateConfig(validate *validator.Validate) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL