MCPcopy Index your code
hub / github.com/APIParkLab/APIPark / NewDriver

Function NewDriver

module/dynamic-module/driver/driver.go:56–65  ·  view source on GitHub ↗
(cfg *PluginCfg)

Source from the content-addressed store, hash-verified

54}
55
56func NewDriver(cfg *PluginCfg) IDriver {
57 return &Driver{
58 id: cfg.Id,
59 name: cfg.Name,
60 title: cfg.Cname,
61 group: cfg.GroupId,
62 front: cfg.Front,
63 define: NewDefine(cfg.Define),
64 }
65}
66
67var defaultFields = []*Field{
68 {

Callers 1

LoadPluginsFunction · 0.70

Calls 1

NewDefineFunction · 0.85

Tested by

no test coverage detected