check

package
v1.5.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReferenceRender

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

type Service

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

func NewService

func NewService(
	specAssembler SpecAssembler,
	specChecker SpecChecker,
	referenceRender ReferenceRender,
	highlightCodePreview bool,
) *Service

func (*Service) Behave

func (s *Service) Behave(maxWarnings int) (models.Check, error)

type SpecAssembler

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

type SpecChecker

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

Jump to

Keyboard shortcuts

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