notifiers

package
v0.0.0-...-c1f6c63 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2022 License: MPL-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 DiagnosticsNotifier

type DiagnosticsNotifier struct {
	// contains filtered or unexported fields
}

Notifier is a type responsible for queueing diagnostics to be converted and sent to the client

func NewDiagnosticsNotifier

func NewDiagnosticsNotifier(logger *log.Logger) *DiagnosticsNotifier

func (*DiagnosticsNotifier) PublishDiagnostics

func (n *DiagnosticsNotifier) PublishDiagnostics(ctx context.Context, dirPath string, diags diagnostics.Diagnostics)

PublishHCLDiags accepts a map of HCL diagnostics per file and queues them for publishing. A dir path is passed which is joined with the filename keys of the map, to form a file URI.

Jump to

Keyboard shortcuts

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