check

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Operation

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

func NewOperation

func NewOperation(
	specAssembler SpecAssembler,
	specChecker SpecChecker,
	referenceRender ReferenceRender,
	highlightCodePreview bool,
) *Operation

func (*Operation) Behave

func (s *Operation) Behave(ctx context.Context, maxWarnings int) (models.Check, error)

type ReferenceRender

type ReferenceRender interface {
	SourceCode(ref models.CodeReference, highlight bool) []byte
}

type SpecAssembler

type SpecAssembler interface {
	Assemble() (speca.Spec, error)
}

type SpecChecker

type SpecChecker interface {
	Check(ctx context.Context, spec speca.Spec) (models.CheckResult, error)
}

Jump to

Keyboard shortcuts

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