1 Star 0 Fork 0

idsutong/gqlgen

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
plugin.go 742 Bytes
Copy Edit Raw Blame History
Adam authored 2020-02-17 07:27 +08:00 . bump to gqlparser v2
// plugin package interfaces are EXPERIMENTAL.
package plugin
import (
"github.com/99designs/gqlgen/codegen"
"github.com/99designs/gqlgen/codegen/config"
"github.com/vektah/gqlparser/v2/ast"
)
type Plugin interface {
Name() string
}
type ConfigMutator interface {
MutateConfig(cfg *config.Config) error
}
type CodeGenerator interface {
GenerateCode(cfg *codegen.Data) error
}
// EarlySourceInjector is used to inject things that are required for user schema files to compile.
type EarlySourceInjector interface {
InjectSourceEarly() *ast.Source
}
// LateSourceInjector is used to inject more sources, after we have loaded the users schema.
type LateSourceInjector interface {
InjectSourceLate(schema *ast.Schema) *ast.Source
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/idsutong/gqlgen.git
git@gitee.com:idsutong/gqlgen.git
idsutong
gqlgen
gqlgen
master

Search