MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / NewFactory

Function NewFactory

module/application-authorization/auth-driver/auth.go:47–49  ·  view source on GitHub ↗
(driver string)

Source from the content-addressed store, hash-verified

45}
46
47func NewFactory[T any](driver string) *Factory[T] {
48 return &Factory[T]{driver: driver}
49}
50
51func (f *Factory[T]) Create(config interface{}) (IAuth, error) {
52 cfg, err := generateStruct[T](config)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected