MCPcopy Create free account
hub / github.com/netlify/gotrue / NewAPI

Function NewAPI

api/api.go:75–77  ·  view source on GitHub ↗

NewAPI instantiates a new REST API

(globalConfig *conf.GlobalConfiguration, db *storage.Connection)

Source from the content-addressed store, hash-verified

73
74// NewAPI instantiates a new REST API
75func NewAPI(globalConfig *conf.GlobalConfiguration, db *storage.Connection) *API {
76 return NewAPIWithVersion(context.Background(), globalConfig, db, defaultVersion)
77}
78
79// NewAPIWithVersion creates a new REST API using the specified version
80func NewAPIWithVersion(ctx context.Context, globalConfig *conf.GlobalConfiguration, db *storage.Connection, version string) *API {

Callers

nothing calls this directly

Calls 1

NewAPIWithVersionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…