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

Method Get

stores/setting/store.go:31–33  ·  view source on GitHub ↗
(ctx context.Context, name string)

Source from the content-addressed store, hash-verified

29}
30
31func (i *imlSettingStore) Get(ctx context.Context, name string) (*Setting, error) {
32 return i.Store.First(ctx, map[string]interface{}{"name": name})
33}
34
35func (i *imlSettingStore) Set(ctx context.Context, name string, value string, operator string) error {
36 return i.Store.Transaction(ctx, func(ctx context.Context) error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected