review

package
v1.25.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeError = "Error"
	TypeInfo  = "Info"
	TypeWarn  = "Warn"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Config config.Config
	Logger hclog.Logger
}

func DefaultConfig

func DefaultConfig() *Config

type Format added in v0.5.0

type Format struct {
	File    string
	Line    int
	Type    string
	Details string
}

type Review

type Review interface {
	Init(context.Context) error
	Deinit(context.Context) error
	Clean(context.Context, string) error
	Diff(context.Context, int, string) (map[string]interface{}, error)
	Fetch(context.Context, string, string) (string, string, []string, error)
	Query(context.Context, string, int) ([]interface{}, error)
	Vote(context.Context, string, []Format) error
}

func New

func New(_ context.Context, cfg *Config) Review

Jump to

Keyboard shortcuts

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