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

Method All

service/setting/iml.go:24–32  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

22}
23
24func (i *imlSettingService) All(ctx context.Context) (map[string]string, error) {
25 list, err := i.store.All(ctx)
26 if err != nil {
27 return nil, err
28 }
29 return utils.SliceToMapO(list, func(v *setting.Setting) (string, string) {
30 return v.Name, v.Value
31 }), nil
32}
33
34func (i *imlSettingService) Get(ctx context.Context, name string) (string, bool) {
35 ev, err := i.store.Get(ctx, name)

Callers

nothing calls this directly

Calls 1

AllMethod · 0.65

Tested by

no test coverage detected