moss

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MossUserID = config.GenFlag("integrations.moss.user_id", -1, "User ID for MOSS Plagiarism Checker")

	ErrUnauthed        = errors.New("unauthenticated to MOSS")
	ErrUnsupportedLang = errors.New("unsupported language")
)

Functions

This section is empty.

Types

type Conn

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

func New

func New(ctx context.Context) (*Conn, error)

func (*Conn) AddFile

func (m *Conn) AddFile(lang eval.Language, filename string, data []byte)

func (*Conn) Close

func (m *Conn) Close() error

func (*Conn) Process

func (m *Conn) Process(conf *Options) (string, error)

type File

type File struct {
	Lang     eval.Language
	Filename string
	Data     []byte
}

type Options

type Options struct {
	// "l" - default C++
	Language eval.Language
	// "m" - default 10
	Sensitivity int
	// "c" - default empty
	Comment string
	// "x" - default false
	ExperimentalServer bool
	// "n" - default 250
	MatchingFileLimit int
}

Jump to

Keyboard shortcuts

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