MCPcopy Create free account
hub / github.com/apache/answer / NewAPIKeyRepo

Function NewAPIKeyRepo

internal/repo/api_key/api_key_repo.go:37–41  ·  view source on GitHub ↗

NewAPIKeyRepo creates a new apiKey repository

(data *data.Data)

Source from the content-addressed store, hash-verified

35
36// NewAPIKeyRepo creates a new apiKey repository
37func NewAPIKeyRepo(data *data.Data) apikey.APIKeyRepo {
38 return &apiKeyRepo{
39 data: data,
40 }
41}
42
43func (ar *apiKeyRepo) GetAPIKeyList(ctx context.Context) (keys []*entity.APIKey, err error) {
44 keys = make([]*entity.APIKey, 0)

Callers 2

ResetPasswordFunction · 0.92
initApplicationFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected