Help us shape the future of Go! Take the 2026 Go Developer Survey

plugin

package
v2.0.30 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("file not found")

Functions

This section is empty.

Types

type FS

type FS interface {
	CreateDir(path string) error
	ReadDir(path string) (dirList []FileInfo, err error)

	CreateFile(path string, data []byte) error
	ReadFile(path string) (data []byte, err error)

	Exists(path string) (exists bool, err error)
}

type FileInfo

type FileInfo interface {
	Name() string
	IsDir() bool
}

type GraphQLFn

type GraphQLFn func(query string, vars map[string]interface{}, opt map[string]string) map[string]interface{}

type ScriptCompiler

type ScriptCompiler interface {
	CompileScript(name, source string) (ScriptExecuter, error)
}

type ScriptExecuter

type ScriptExecuter interface {
	HasRequestFn() bool
	RequestFn(c context.Context,
		vars map[string]interface{},
		role string,
		userID interface{},
		gfn GraphQLFn) map[string]interface{}

	HasResponseFn() bool
	ReponseFn(c context.Context,
		vars map[string]interface{},
		role string,
		userID interface{},
		gfn GraphQLFn) map[string]interface{}
}

type ValidationCompiler

type ValidationCompiler interface {
	CompileValidation(source string) (ValidationExecuter, error)
}

type ValidationExecuter

type ValidationExecuter interface {
	Validate(vars []byte) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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