From 822402c38fd908e074e3c5d14f2fc8195e1c1964 Mon Sep 17 00:00:00 2001 From: Eric Wollesen Date: Thu, 2 Nov 2023 13:19:44 -0600 Subject: [PATCH] use the alerts client provided by platform It made more sense for the alerts client to live in platform, where its API endpoints are implemented. Now we use that version of the client instead of this hand-rolled version. BACK-2500 --- go.mod | 4 +- go.sum | 2 - hydrophone.go | 87 ++- logger.go | 125 +++++ .../tidepool-org/platform/alerts/client.go | 136 +++++ .../tidepool-org/platform/alerts/cover.out | 35 ++ .../tidepool-org/platform/alerts/repo.go | 1 - .../platform/auth/auth.coverprofile | 146 +++++ .../tidepool-org/platform/auth/auth.go | 2 +- .../platform/auth/client/client.coverprofile | 247 +++++++++ .../platform/auth/client/client.go | 340 ++++++++++++ .../platform/auth/client/cover.out | 247 +++++++++ .../platform/auth/client/external.go | 421 +++++++++++++++ .../tidepool-org/platform/auth/cover.out | 146 +++++ .../platform/auth/provider_session.go | 4 +- .../platform/auth/restricted_token.go | 4 +- .../platform/client/client.coverprofile | 95 ++++ .../tidepool-org/platform/client/client.go | 234 +++++++++ .../tidepool-org/platform/client/config.go | 84 +++ .../tidepool-org/platform/client/cover.out | 95 ++++ .../platform/config/config.coverprofile | 6 + .../tidepool-org/platform/config/cover.out | 6 + .../tidepool-org/platform/crypto/cover.out | 48 ++ .../platform/crypto/crypto.coverprofile | 48 ++ .../platform/data/blood/glucose/cover.out | 58 ++ .../data/blood/glucose/glucose.coverprofile | 58 ++ .../tidepool-org/platform/data/cover.out | 103 ++++ .../platform/data/data.coverprofile | 103 ++++ .../tidepool-org/platform/errors/cover.out | 236 +++++++++ .../platform/errors/errors.coverprofile | 236 +++++++++ .../tidepool-org/platform/id/cover.out | 11 + .../tidepool-org/platform/id/id.coverprofile | 11 + .../tidepool-org/platform/log/cover.out | 62 +++ .../platform/log/log.coverprofile | 62 +++ .../tidepool-org/platform/log/null/cover.out | 6 + .../tidepool-org/platform/log/null/logger.go | 10 + .../platform/log/null/null.coverprofile | 6 + .../platform/log/null/serializer.go | 22 + .../tidepool-org/platform/metadata/cover.out | 33 ++ .../platform/metadata/metadata.coverprofile | 33 ++ .../tidepool-org/platform/net/cover.out | 46 ++ .../platform/net/net.coverprofile | 46 ++ .../tidepool-org/platform/origin/cover.out | 10 + .../platform/origin/origin.coverprofile | 10 + .../tidepool-org/platform/page/cover.out | 12 + .../platform/page/page.coverprofile | 12 + .../platform/permission/cover.out | 7 + .../permission/permission.coverprofile | 7 + .../platform/permission/permission.go | 32 ++ .../tidepool-org/platform/platform/client.go | 110 ++++ .../tidepool-org/platform/platform/config.go | 76 +++ .../tidepool-org/platform/platform/cover.out | 56 ++ .../tidepool-org/platform/platform/mutator.go | 88 ++++ .../platform/platform/platform.coverprofile | 56 ++ .../tidepool-org/platform/pointer/cover.out | 115 ++++ .../platform/pointer/pointer.coverprofile | 115 ++++ .../tidepool-org/platform/request/cover.out | 380 +++++++++++++ .../platform/request/request.coverprofile | 375 +++++++++++++ .../tidepool-org/platform/request/request.go | 36 +- .../platform/request/responder.go | 4 +- .../tidepool-org/platform/service/cover.out | 80 +++ .../tidepool-org/platform/service/request.go | 6 +- .../platform/service/service.coverprofile | 80 +++ .../platform/structure/base/base.coverprofile | 17 + .../platform/structure/base/cover.out | 17 + .../tidepool-org/platform/structure/cover.out | 19 + .../platform/structure/normalizer/cover.out | 16 + .../normalizer/normalizer.coverprofile | 16 + .../platform/structure/parser/cover.out | 214 ++++++++ .../structure/parser/parser.coverprofile | 214 ++++++++ .../platform/structure/structure.coverprofile | 19 + .../platform/structure/validator/cover.out | 497 ++++++++++++++++++ .../validator/validator.coverprofile | 497 ++++++++++++++++++ .../tidepool-org/platform/time/zone/cover.out | 34 ++ .../platform/time/zone/zone.coverprofile | 34 ++ .../tidepool-org/platform/user/cover.out | 28 + .../platform/user/user.coverprofile | 28 + .../tidepool-org/platform/user/user.go | 4 +- .../tidepool-org/platform/version/cover.out | 13 + .../platform/version/version.coverprofile | 13 + vendor/modules.txt | 8 +- 81 files changed, 6971 insertions(+), 89 deletions(-) create mode 100644 logger.go create mode 100644 vendor/github.com/tidepool-org/platform/alerts/client.go create mode 100644 vendor/github.com/tidepool-org/platform/alerts/cover.out delete mode 100644 vendor/github.com/tidepool-org/platform/alerts/repo.go create mode 100644 vendor/github.com/tidepool-org/platform/auth/auth.coverprofile create mode 100644 vendor/github.com/tidepool-org/platform/auth/client/client.coverprofile create mode 100644 vendor/github.com/tidepool-org/platform/auth/client/client.go create mode 100644 vendor/github.com/tidepool-org/platform/auth/client/cover.out create mode 100644 vendor/github.com/tidepool-org/platform/auth/client/external.go create mode 100644 vendor/github.com/tidepool-org/platform/auth/cover.out create mode 100644 vendor/github.com/tidepool-org/platform/client/client.coverprofile create mode 100644 vendor/github.com/tidepool-org/platform/client/client.go create mode 100644 vendor/github.com/tidepool-org/platform/client/config.go create mode 100644 vendor/github.com/tidepool-org/platform/client/cover.out create mode 100644 vendor/github.com/tidepool-org/platform/config/config.coverprofile create mode 100644 vendor/github.com/tidepool-org/platform/config/cover.out create mode 100644 vendor/github.com/tidepool-org/platform/crypto/cover.out create mode 100644 vendor/github.com/tidepool-org/platform/crypto/crypto.coverprofile create mode 100644 vendor/github.com/tidepool-org/platform/data/blood/glucose/cover.out create mode 100644 vendor/github.com/tidepool-org/platform/data/blood/glucose/glucose.coverprofile create mode 100644 vendor/github.com/tidepool-org/platform/data/cover.out create mode 100644 vendor/github.com/tidepool-org/platform/data/data.coverprofile create mode 100644 vendor/github.com/tidepool-org/platform/errors/cover.out create mode 100644 vendor/github.com/tidepool-org/platform/errors/errors.coverprofile create mode 100644 vendor/github.com/tidepool-org/platform/id/cover.out create mode 100644 vendor/github.com/tidepool-org/platform/id/id.coverprofile create mode 100644 vendor/github.com/tidepool-org/platform/log/cover.out create mode 100644 vendor/github.com/tidepool-org/platform/log/log.coverprofile create mode 100644 vendor/github.com/tidepool-org/platform/log/null/cover.out create mode 100644 vendor/github.com/tidepool-org/platform/log/null/logger.go create mode 100644 vendor/github.com/tidepool-org/platform/log/null/null.coverprofile create mode 100644 vendor/github.com/tidepool-org/platform/log/null/serializer.go create mode 100644 vendor/github.com/tidepool-org/platform/metadata/cover.out create mode 100644 vendor/github.com/tidepool-org/platform/metadata/metadata.coverprofile create mode 100644 vendor/github.com/tidepool-org/platform/net/cover.out create mode 100644 vendor/github.com/tidepool-org/platform/net/net.coverprofile create mode 100644 vendor/github.com/tidepool-org/platform/origin/cover.out create mode 100644 vendor/github.com/tidepool-org/platform/origin/origin.coverprofile create mode 100644 vendor/github.com/tidepool-org/platform/page/cover.out create mode 100644 vendor/github.com/tidepool-org/platform/page/page.coverprofile create mode 100644 vendor/github.com/tidepool-org/platform/permission/cover.out create mode 100644 vendor/github.com/tidepool-org/platform/permission/permission.coverprofile create mode 100644 vendor/github.com/tidepool-org/platform/permission/permission.go create mode 100644 vendor/github.com/tidepool-org/platform/platform/client.go create mode 100644 vendor/github.com/tidepool-org/platform/platform/config.go create mode 100644 vendor/github.com/tidepool-org/platform/platform/cover.out create mode 100644 vendor/github.com/tidepool-org/platform/platform/mutator.go create mode 100644 vendor/github.com/tidepool-org/platform/platform/platform.coverprofile create mode 100644 vendor/github.com/tidepool-org/platform/pointer/cover.out create mode 100644 vendor/github.com/tidepool-org/platform/pointer/pointer.coverprofile create mode 100644 vendor/github.com/tidepool-org/platform/request/cover.out create mode 100644 vendor/github.com/tidepool-org/platform/request/request.coverprofile create mode 100644 vendor/github.com/tidepool-org/platform/service/cover.out create mode 100644 vendor/github.com/tidepool-org/platform/service/service.coverprofile create mode 100644 vendor/github.com/tidepool-org/platform/structure/base/base.coverprofile create mode 100644 vendor/github.com/tidepool-org/platform/structure/base/cover.out create mode 100644 vendor/github.com/tidepool-org/platform/structure/cover.out create mode 100644 vendor/github.com/tidepool-org/platform/structure/normalizer/cover.out create mode 100644 vendor/github.com/tidepool-org/platform/structure/normalizer/normalizer.coverprofile create mode 100644 vendor/github.com/tidepool-org/platform/structure/parser/cover.out create mode 100644 vendor/github.com/tidepool-org/platform/structure/parser/parser.coverprofile create mode 100644 vendor/github.com/tidepool-org/platform/structure/structure.coverprofile create mode 100644 vendor/github.com/tidepool-org/platform/structure/validator/cover.out create mode 100644 vendor/github.com/tidepool-org/platform/structure/validator/validator.coverprofile create mode 100644 vendor/github.com/tidepool-org/platform/time/zone/cover.out create mode 100644 vendor/github.com/tidepool-org/platform/time/zone/zone.coverprofile create mode 100644 vendor/github.com/tidepool-org/platform/user/cover.out create mode 100644 vendor/github.com/tidepool-org/platform/user/user.coverprofile create mode 100644 vendor/github.com/tidepool-org/platform/version/cover.out create mode 100644 vendor/github.com/tidepool-org/platform/version/version.coverprofile diff --git a/go.mod b/go.mod index 8283cc7fd..63069342a 100644 --- a/go.mod +++ b/go.mod @@ -12,7 +12,7 @@ require ( github.com/pkg/errors v0.9.1 github.com/tidepool-org/clinic/client v0.0.0-20230815132146-bd6c2982ff6d github.com/tidepool-org/go-common v0.10.1-0.20230508194719-72b56b95a79a - github.com/tidepool-org/platform v1.33.1-0.20231013005639-3b2d96d57243 + github.com/tidepool-org/platform v1.33.1-0.20231102192306-a5ca88faae46 go.mongodb.org/mongo-driver v1.11.1 go.uber.org/fx v1.13.1 go.uber.org/zap v1.22.0 @@ -65,3 +65,5 @@ require ( gopkg.in/jcmturner/gokrb5.v7 v7.5.0 // indirect gopkg.in/jcmturner/rpc.v1 v1.1.0 // indirect ) + +replace github.com/tidepool-org/platform => ../platform diff --git a/go.sum b/go.sum index a559b7847..a77765466 100644 --- a/go.sum +++ b/go.sum @@ -216,8 +216,6 @@ github.com/tidepool-org/clinic/client v0.0.0-20230815132146-bd6c2982ff6d h1:tlkq github.com/tidepool-org/clinic/client v0.0.0-20230815132146-bd6c2982ff6d/go.mod h1:eduhUZw6oOhrtt2C57RGn4rYq9CoCX8ucwDV0PmxSF4= github.com/tidepool-org/go-common v0.10.1-0.20230508194719-72b56b95a79a h1:pTkq6PU/+YbW40UgRh9tI0kRGmwxsAwOnzb2nvFG4eg= github.com/tidepool-org/go-common v0.10.1-0.20230508194719-72b56b95a79a/go.mod h1:hJ7gk9U6QhIJsVspA8EHN8YuKZuCd/HCP25II+D63w0= -github.com/tidepool-org/platform v1.33.1-0.20231013005639-3b2d96d57243 h1:SzVkolzTYAN9wthEst1OJna6xQDszubD5XRkalNeWH4= -github.com/tidepool-org/platform v1.33.1-0.20231013005639-3b2d96d57243/go.mod h1:MmUL8WfxdJtmRPHxh4byfEFrbdOvYIB9BriUaosQkLk= github.com/tidwall/pretty v1.0.0 h1:HsD+QiTn7sK6flMKIvNmpqz1qrpP3Ps6jOKIKMooyg4= github.com/tidwall/pretty v1.0.0/go.mod h1:XNkn88O1ChpSDQmQeStsy+sBenx6DDtFZJxhVysOjyk= github.com/ugorji/go v1.1.7/go.mod h1:kZn38zHttfInRq0xu/PH0az30d+z6vm202qpg1oXVMw= diff --git a/hydrophone.go b/hydrophone.go index d6e493342..ecd522a60 100644 --- a/hydrophone.go +++ b/hydrophone.go @@ -1,13 +1,9 @@ package main import ( - "bytes" "context" "crypto/tls" - "encoding/json" - "fmt" "net/http" - "path" "time" "github.com/gorilla/mux" @@ -28,6 +24,11 @@ import ( "github.com/tidepool-org/hydrophone/models" "github.com/tidepool-org/hydrophone/templates" "github.com/tidepool-org/platform/alerts" + "github.com/tidepool-org/platform/auth" + authclient "github.com/tidepool-org/platform/auth/client" + "github.com/tidepool-org/platform/client" + platformlog "github.com/tidepool-org/platform/log" + "github.com/tidepool-org/platform/platform" ) var defaultStopTimeout = 60 * time.Second @@ -89,68 +90,32 @@ func seagullProvider(config OutboundConfig, httpClient *http.Client) clients.Sea Build() } -func alertsProvider(config OutboundConfig, httpClient *http.Client, shorelineClient shoreline.Client) api.AlertsClient { - return &alertsClient{ - client: httpClient, - shoreline: shorelineClient, - host: config.DataClientAddress, +func alertsProvider(config OutboundConfig, tokenProvider auth.ExternalAccessor, logger platformlog.Logger) (api.AlertsClient, error) { + cfg := client.NewConfig() + cfg.Address = config.DataClientAddress + platformCfg := platform.NewConfig() + platformCfg.Config = cfg + platformClient, err := platform.NewClient(platformCfg, platform.AuthorizeAsService) + if err != nil { + return nil, err } + return alerts.NewClient(platformClient, tokenProvider, logger), nil } -type alertsClient struct { - client *http.Client - host string - shoreline clients.TokenProvider +func zapPlatformAdapterProvider(zapper *zap.SugaredLogger) platformlog.Logger { + return NewZapPlatformAdapter(zapper) } -func (c *alertsClient) Upsert(ctx context.Context, cfg *alerts.Config) error { - url := c.urlf("/v1/alerts/%s/%s", cfg.UserID, cfg.FollowedUserID) - body := &bytes.Buffer{} - if err := json.NewEncoder(body).Encode(cfg.Alerts); err != nil { - return err - } - req, err := http.NewRequestWithContext(ctx, http.MethodPost, url, body) - if err != nil { - return err - } - token := c.shoreline.TokenProvide() - req.Header.Add(api.TP_SESSION_TOKEN, token) - - resp, err := c.client.Do(req) - if err != nil { - return err - } - defer resp.Body.Close() - if resp.StatusCode != http.StatusOK { - return fmt.Errorf("alerts config upsert: unexpected response code: %s", resp.Status) - } - - return nil +func externalConfigLoaderProvider(loader platform.ConfigLoader) authclient.ExternalConfigLoader { + return authclient.NewExternalEnvconfigLoader(loader) } -func (c *alertsClient) urlf(pathFormat string, args ...interface{}) string { - return fmt.Sprintf(c.host+path.Join("/", pathFormat), args...) +func platformConfigLoaderProvider(loader client.ConfigLoader) platform.ConfigLoader { + return platform.NewEnvconfigLoader(loader) } -func (c *alertsClient) Delete(ctx context.Context, cfg *alerts.Config) error { - url := c.urlf("/v1/alerts/%s/%s", cfg.UserID, cfg.FollowedUserID) - req, err := http.NewRequestWithContext(ctx, http.MethodDelete, url, nil) - if err != nil { - return err - } - token := c.shoreline.TokenProvide() - req.Header.Add(api.TP_SESSION_TOKEN, token) - - resp, err := c.client.Do(req) - if err != nil { - return err - } - defer resp.Body.Close() - if resp.StatusCode != http.StatusOK { - return fmt.Errorf("alerts config upsert: unexpected response code: %s", resp.Status) - } - - return nil +func clientConfigLoaderProvider() client.ConfigLoader { + return client.NewEnvconfigLoader() } func clinicProvider(config OutboundConfig, shoreline shoreline.Client) (clinicsClient.ClientWithResponsesInterface, error) { @@ -307,6 +272,14 @@ func main() { faultTolerantConsumerProvider, events.NewHandler, ), + authclient.ExternalClientModule, + authclient.ProvideServiceName("hydrophone"), + fx.Provide( + externalConfigLoaderProvider, + platformConfigLoaderProvider, + clientConfigLoaderProvider, + zapPlatformAdapterProvider, + ), fx.Provide( seagullProvider, highwaterProvider, diff --git a/logger.go b/logger.go new file mode 100644 index 000000000..19b867827 --- /dev/null +++ b/logger.go @@ -0,0 +1,125 @@ +package main + +import ( + "fmt" + "sync" + + "go.uber.org/zap" + "go.uber.org/zap/zapcore" + + "github.com/tidepool-org/platform/log" +) + +// zapPlatformAdapter implements log.Logger for use with a zap.SugaredLogger. +type zapPlatformAdapter struct { + zapper *zap.SugaredLogger + mu sync.Mutex +} + +func NewZapPlatformAdapter(zapper *zap.SugaredLogger) *zapPlatformAdapter { + return &zapPlatformAdapter{ + zapper: zapper, + } +} + +func (a *zapPlatformAdapter) Logf(level log.Level, message string, args ...interface{}) { + formatted := fmt.Sprintf(message, args...) + a.Log(level, formatted) +} + +var loggerToZapLevels = map[log.Level]zapcore.Level{ + log.DebugLevel: zapcore.DebugLevel, + log.InfoLevel: zapcore.InfoLevel, + log.WarnLevel: zapcore.WarnLevel, + log.ErrorLevel: zapcore.ErrorLevel, +} + +func (a *zapPlatformAdapter) Log(level log.Level, message string) { + if zapLevel, found := loggerToZapLevels[level]; found { + a.addOne().zapper.Desugar().Log(zapLevel, message) + return + } + a.zapper.Debugf("zapPlatformHandler: unhandled log.Level %q", level) + a.zapper.With("log.level", level).Info(message) +} + +func (a *zapPlatformAdapter) addOne() *zapPlatformAdapter { + return NewZapPlatformAdapter(a.zapper.Desugar().WithOptions(zap.AddCallerSkip(1)).Sugar()) +} + +func (a *zapPlatformAdapter) Debug(message string) { + a.addOne().Log(log.DebugLevel, message) +} + +func (a *zapPlatformAdapter) Info(message string) { + a.addOne().Log(log.InfoLevel, message) +} + +func (a *zapPlatformAdapter) Warn(message string) { + a.addOne().Log(log.WarnLevel, message) +} + +func (a *zapPlatformAdapter) Error(message string) { + a.addOne().Log(log.ErrorLevel, message) +} + +func (a *zapPlatformAdapter) Debugf(message string, args ...interface{}) { + a.addOne().Logf(log.DebugLevel, message, args...) +} + +func (a *zapPlatformAdapter) Infof(message string, args ...interface{}) { + a.addOne().Logf(log.InfoLevel, message, args...) +} + +func (a *zapPlatformAdapter) Warnf(message string, args ...interface{}) { + a.addOne().Logf(log.WarnLevel, message, args...) +} + +func (a *zapPlatformAdapter) Errorf(message string, args ...interface{}) { + a.addOne().Logf(log.ErrorLevel, message, args...) +} + +func (a *zapPlatformAdapter) WithError(err error) log.Logger { + return NewZapPlatformAdapter(a.zapper.With(zap.Error(err))) +} + +func (a *zapPlatformAdapter) WithField(key string, value interface{}) log.Logger { + return NewZapPlatformAdapter(a.zapper.With(key, value)) +} + +func (a *zapPlatformAdapter) WithFields(fields log.Fields) log.Logger { + c := a.zapper + for key, value := range fields { + c = c.With(key, value) + } + return NewZapPlatformAdapter(c) +} + +func (a *zapPlatformAdapter) WithLevelRank(level log.Level, rank log.Rank) log.Logger { + // There are no docs for LevelRanks, and it's not obvious what effect it + // has, so just skipping for now. + a.zapper.Debugf("zapPlatformAdapter: unimplemented method: WithLevelRank") + return a +} + +func (a *zapPlatformAdapter) WithLevelRanks(levelRanks log.LevelRanks) log.Logger { + // There are no docs for LevelRanks, and it's not obvious what effect it + // has, so just skipping for now. + a.zapper.Debugf("zapPlatformAdapter: unimplemented method: WithLevelRanks") + return a +} + +func (a *zapPlatformAdapter) WithLevel(level log.Level) log.Logger { + lvl, err := zapcore.ParseLevel(string(level)) + if err != nil { + return a + } + return NewZapPlatformAdapter(a.zapper.WithOptions(zap.IncreaseLevel(lvl))) +} + +func (a *zapPlatformAdapter) Level() log.Level { + a.zapper.Debugf("zapPlatformAdapter: unimplemented method: Level") + // I don't see a way to retrieve this infromation from a zap logger, and I + // don't see any code that calls this method anyway. + return log.DebugLevel +} diff --git a/vendor/github.com/tidepool-org/platform/alerts/client.go b/vendor/github.com/tidepool-org/platform/alerts/client.go new file mode 100644 index 000000000..c02d5049f --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/alerts/client.go @@ -0,0 +1,136 @@ +package alerts + +import ( + "context" + "fmt" + "net/http" + + "github.com/kelseyhightower/envconfig" + + "github.com/tidepool-org/platform/auth" + "github.com/tidepool-org/platform/client" + platformlog "github.com/tidepool-org/platform/log" + "github.com/tidepool-org/platform/log/null" + "github.com/tidepool-org/platform/platform" + "github.com/tidepool-org/platform/request" +) + +// Client for managing alerts configs. +type Client struct { + client PlatformClient + logger platformlog.Logger + token TokenProvider +} + +// NewClient builds a client for interacting with alerts API endpoints. +// +// If no logger is provided, a null logger is used. +func NewClient(client PlatformClient, token TokenProvider, logger platformlog.Logger) *Client { + if logger == nil { + logger = null.NewLogger() + } + return &Client{ + client: client, + logger: logger, + token: token, + } +} + +// platform.Client is one implementation +type PlatformClient interface { + ConstructURL(paths ...string) string + RequestData(ctx context.Context, method string, url string, mutators []request.RequestMutator, + requestBody interface{}, responseBody interface{}, inspectors ...request.ResponseInspector) error +} + +// client.External is one implementation +type TokenProvider interface { + // ServerSessionToken provides a server-to-server API authentication token. + ServerSessionToken() (string, error) +} + +// request performs common operations before passing a request off to the +// underlying platform.Client. +func (c *Client) request(ctx context.Context, method, url string, body any) error { + // Platform's client.Client expects a logger to exist in the request's + // context. If it doesn't exist, request processing will panic. + loggingCtx := platformlog.NewContextWithLogger(ctx, c.logger) + // Make sure the auth token is injected into the request's headers. + return c.requestWithAuth(loggingCtx, method, url, body) +} + +// requestWithAuth injects an auth token before calling platform.Client.RequestData. +// +// At time of writing, this is the only way to inject credentials into +// platform.Client. It might be nice to be able to use a mutator, but the auth +// is specifically handled by the platform.Client via the context field, and +// if left blank, platform.Client errors. +func (c *Client) requestWithAuth(ctx context.Context, method, url string, body any) error { + authCtx, err := c.ctxWithAuth(ctx) + if err != nil { + return err + } + return c.client.RequestData(authCtx, method, url, nil, body, nil) +} + +// Upsert updates cfg if it exists or creates it if it doesn't. +func (c *Client) Upsert(ctx context.Context, cfg *Config) error { + url := c.client.ConstructURL("v1", "alerts", cfg.UserID, cfg.FollowedUserID) + return c.request(ctx, http.MethodPost, url, cfg) +} + +// Delete the alerts config. +func (c *Client) Delete(ctx context.Context, cfg *Config) error { + url := c.client.ConstructURL("v1", "alerts", cfg.UserID, cfg.FollowedUserID) + return c.request(ctx, http.MethodDelete, url, nil) +} + +// ctxWithAuth injects a server session token into the context. +func (c *Client) ctxWithAuth(ctx context.Context) (context.Context, error) { + token, err := c.token.ServerSessionToken() + if err != nil { + return nil, fmt.Errorf("retrieving token: %w", err) + } + return auth.NewContextWithServerSessionToken(ctx, token), nil +} + +// ConfigLoader abstracts the method by which config values are loaded. +type ConfigLoader interface { + Load(*ClientConfig) error +} + +// envconfigLoader adapts envconfig to implement ConfigLoader. +type envconfigLoader struct { + platform.ConfigLoader +} + +// NewEnvconfigLoader loads values via envconfig. +// +// If loader is nil, it defaults to envconfig for platform values. +func NewEnvconfigLoader(loader platform.ConfigLoader) *envconfigLoader { + if loader == nil { + loader = platform.NewEnvconfigLoader(nil) + } + return &envconfigLoader{ + ConfigLoader: loader, + } +} + +// Load implements ConfigLoader. +func (l *envconfigLoader) Load(cfg *ClientConfig) error { + if err := l.ConfigLoader.Load(cfg.Config); err != nil { + return err + } + if err := envconfig.Process(client.EnvconfigEmptyPrefix, cfg); err != nil { + return err + } + // Override client.Client.Address to point to the data service. + cfg.Address = cfg.DataServiceAddress + return nil +} + +type ClientConfig struct { + *platform.Config + // DataServiceAddress is used to override client.Client.Address. + DataServiceAddress string `envconfig:"TIDEPOOL_DATA_SERVICE_ADDRESS" required:"true"` +} diff --git a/vendor/github.com/tidepool-org/platform/alerts/cover.out b/vendor/github.com/tidepool-org/platform/alerts/cover.out new file mode 100644 index 000000000..93da27dea --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/alerts/cover.out @@ -0,0 +1,35 @@ +mode: atomic +github.com/tidepool-org/platform/alerts/config.go:42.57,46.2 3 3 +github.com/tidepool-org/platform/alerts/config.go:48.57,49.24 1 3 +github.com/tidepool-org/platform/alerts/config.go:49.24,51.3 1 2 +github.com/tidepool-org/platform/alerts/config.go:52.2,52.18 1 3 +github.com/tidepool-org/platform/alerts/config.go:52.18,54.3 1 2 +github.com/tidepool-org/platform/alerts/config.go:55.2,55.19 1 3 +github.com/tidepool-org/platform/alerts/config.go:55.19,57.3 1 1 +github.com/tidepool-org/platform/alerts/config.go:58.2,58.25 1 3 +github.com/tidepool-org/platform/alerts/config.go:58.25,60.3 1 1 +github.com/tidepool-org/platform/alerts/config.go:61.2,61.30 1 3 +github.com/tidepool-org/platform/alerts/config.go:61.30,63.3 1 1 +github.com/tidepool-org/platform/alerts/config.go:76.55,80.2 3 41 +github.com/tidepool-org/platform/alerts/config.go:91.81,92.29 1 41 +github.com/tidepool-org/platform/alerts/config.go:92.29,94.3 1 31 +github.com/tidepool-org/platform/alerts/config.go:95.2,95.23 1 10 +github.com/tidepool-org/platform/alerts/config.go:95.23,97.3 1 2 +github.com/tidepool-org/platform/alerts/config.go:98.2,98.23 1 10 +github.com/tidepool-org/platform/alerts/config.go:98.23,100.3 1 1 +github.com/tidepool-org/platform/alerts/config.go:111.65,114.2 2 6 +github.com/tidepool-org/platform/alerts/config.go:122.66,126.2 3 5 +github.com/tidepool-org/platform/alerts/config.go:134.71,138.2 3 5 +github.com/tidepool-org/platform/alerts/config.go:149.59,154.2 4 7 +github.com/tidepool-org/platform/alerts/config.go:165.60,170.2 4 13 +github.com/tidepool-org/platform/alerts/config.go:177.57,178.51 1 16 +github.com/tidepool-org/platform/alerts/config.go:178.51,181.3 2 2 +github.com/tidepool-org/platform/alerts/config.go:182.2,183.16 2 14 +github.com/tidepool-org/platform/alerts/config.go:183.16,185.3 1 1 +github.com/tidepool-org/platform/alerts/config.go:186.2,187.12 2 13 +github.com/tidepool-org/platform/alerts/config.go:190.57,193.2 2 1 +github.com/tidepool-org/platform/alerts/config.go:195.51,197.2 1 75 +github.com/tidepool-org/platform/alerts/config.go:211.52,218.17 3 31 +github.com/tidepool-org/platform/alerts/config.go:219.34,222.49 3 25 +github.com/tidepool-org/platform/alerts/config.go:223.36,226.49 3 3 +github.com/tidepool-org/platform/alerts/config.go:227.10,228.71 1 3 diff --git a/vendor/github.com/tidepool-org/platform/alerts/repo.go b/vendor/github.com/tidepool-org/platform/alerts/repo.go deleted file mode 100644 index 3dc80686f..000000000 --- a/vendor/github.com/tidepool-org/platform/alerts/repo.go +++ /dev/null @@ -1 +0,0 @@ -package alerts diff --git a/vendor/github.com/tidepool-org/platform/auth/auth.coverprofile b/vendor/github.com/tidepool-org/platform/auth/auth.coverprofile new file mode 100644 index 000000000..fd460a850 --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/auth/auth.coverprofile @@ -0,0 +1,146 @@ +mode: atomic +github.com/tidepool-org/platform/auth/auth.go:35.103,37.2 1 0 +github.com/tidepool-org/platform/auth/auth.go:39.64,40.16 1 0 +github.com/tidepool-org/platform/auth/auth.go:40.16,41.85 1 0 +github.com/tidepool-org/platform/auth/auth.go:41.85,43.4 1 0 +github.com/tidepool-org/platform/auth/auth.go:45.2,45.11 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:22.31,26.2 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:43.56,45.2 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:47.70,50.2 2 0 +github.com/tidepool-org/platform/auth/provider_session.go:52.73,55.2 2 0 +github.com/tidepool-org/platform/auth/provider_session.go:57.72,59.19 2 0 +github.com/tidepool-org/platform/auth/provider_session.go:59.19,61.3 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:62.2,62.19 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:62.19,64.3 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:65.2,65.68 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:74.56,76.2 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:78.70,79.46 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:79.46,81.3 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:82.2,82.46 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:82.46,84.3 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:85.2,85.99 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:85.99,89.3 3 0 +github.com/tidepool-org/platform/auth/provider_session.go:92.73,95.16 3 0 +github.com/tidepool-org/platform/auth/provider_session.go:96.25,97.88 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:97.88,99.4 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:99.9,101.4 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:109.56,111.2 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:113.70,114.99 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:114.99,118.3 3 0 +github.com/tidepool-org/platform/auth/provider_session.go:121.73,122.25 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:122.25,124.3 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:127.48,129.2 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:131.36,133.2 1 3 +github.com/tidepool-org/platform/auth/provider_session.go:135.50,137.2 1 7 +github.com/tidepool-org/platform/auth/provider_session.go:139.86,141.2 1 7 +github.com/tidepool-org/platform/auth/provider_session.go:143.52,144.17 1 21 +github.com/tidepool-org/platform/auth/provider_session.go:144.17,146.3 1 3 +github.com/tidepool-org/platform/auth/provider_session.go:146.8,146.60 1 18 +github.com/tidepool-org/platform/auth/provider_session.go:146.60,148.3 1 15 +github.com/tidepool-org/platform/auth/provider_session.go:149.2,149.12 1 3 +github.com/tidepool-org/platform/auth/provider_session.go:152.70,154.2 1 22 +github.com/tidepool-org/platform/auth/provider_session.go:160.45,162.2 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:164.81,166.2 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:168.47,169.17 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:169.17,171.3 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:171.8,171.69 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:171.69,173.3 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:174.2,174.12 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:187.97,188.18 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:188.18,190.3 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:191.2,191.19 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:191.19,193.3 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:193.8,193.73 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:193.73,195.3 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:197.2,204.8 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:207.64,208.44 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:208.44,210.3 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:211.2,211.48 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:211.48,213.3 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:214.2,214.46 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:214.46,216.3 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:217.2,217.46 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:217.46,219.3 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:220.2,220.99 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:220.99,224.3 3 0 +github.com/tidepool-org/platform/auth/provider_session.go:225.2,225.69 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:225.69,227.3 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:228.2,228.64 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:231.67,236.16 5 0 +github.com/tidepool-org/platform/auth/provider_session.go:237.25,238.88 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:238.88,240.4 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:240.9,242.4 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:244.2,245.92 2 0 +github.com/tidepool-org/platform/auth/provider_session.go:248.67,249.43 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:249.43,251.3 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:252.2,252.41 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:257.67,258.36 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:258.36,259.59 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:259.59,261.4 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:263.2,263.12 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:36.56,38.2 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:40.71,41.2 0 0 +github.com/tidepool-org/platform/auth/restricted_token.go:43.74,44.2 0 0 +github.com/tidepool-org/platform/auth/restricted_token.go:46.72,48.2 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:55.56,59.2 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:61.70,64.2 2 0 +github.com/tidepool-org/platform/auth/restricted_token.go:66.73,69.2 2 0 +github.com/tidepool-org/platform/auth/restricted_token.go:76.56,78.2 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:80.70,83.2 2 0 +github.com/tidepool-org/platform/auth/restricted_token.go:85.73,88.2 2 0 +github.com/tidepool-org/platform/auth/restricted_token.go:90.48,92.2 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:94.36,96.2 1 3 +github.com/tidepool-org/platform/auth/restricted_token.go:98.50,100.2 1 7 +github.com/tidepool-org/platform/auth/restricted_token.go:102.86,104.2 1 7 +github.com/tidepool-org/platform/auth/restricted_token.go:106.52,107.17 1 21 +github.com/tidepool-org/platform/auth/restricted_token.go:107.17,109.3 1 3 +github.com/tidepool-org/platform/auth/restricted_token.go:109.8,109.60 1 18 +github.com/tidepool-org/platform/auth/restricted_token.go:109.60,111.3 1 15 +github.com/tidepool-org/platform/auth/restricted_token.go:112.2,112.12 1 3 +github.com/tidepool-org/platform/auth/restricted_token.go:115.70,117.2 1 22 +github.com/tidepool-org/platform/auth/restricted_token.go:130.97,131.18 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:131.18,133.3 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:134.2,134.19 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:134.19,136.3 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:136.8,136.73 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:136.73,138.3 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:140.2,146.34 2 0 +github.com/tidepool-org/platform/auth/restricted_token.go:146.34,148.3 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:148.8,150.3 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:152.2,152.29 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:155.64,156.44 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:156.44,158.3 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:159.2,159.48 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:159.48,161.3 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:162.2,163.72 2 0 +github.com/tidepool-org/platform/auth/restricted_token.go:163.72,165.3 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:166.2,166.69 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:166.69,168.3 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:169.2,169.64 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:172.67,179.2 6 0 +github.com/tidepool-org/platform/auth/restricted_token.go:181.65,182.34 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:182.34,184.3 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:185.2,185.40 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:185.40,187.3 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:188.2,188.20 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:188.20,190.33 2 0 +github.com/tidepool-org/platform/auth/restricted_token.go:190.33,191.96 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:191.96,193.5 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:195.3,195.15 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:197.2,197.13 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:200.67,201.77 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:201.77,203.3 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:204.2,204.41 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:209.67,210.36 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:210.36,211.59 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:211.59,213.4 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:215.2,215.12 1 0 +github.com/tidepool-org/platform/auth/user.go:12.25,14.2 1 3 +github.com/tidepool-org/platform/auth/user.go:16.39,18.2 1 8 +github.com/tidepool-org/platform/auth/user.go:20.75,22.2 1 8 +github.com/tidepool-org/platform/auth/user.go:24.41,25.17 1 24 +github.com/tidepool-org/platform/auth/user.go:25.17,27.3 1 3 +github.com/tidepool-org/platform/auth/user.go:27.8,27.45 1 21 +github.com/tidepool-org/platform/auth/user.go:27.45,29.3 1 15 +github.com/tidepool-org/platform/auth/user.go:30.2,30.12 1 6 +github.com/tidepool-org/platform/auth/user.go:33.59,35.2 1 22 diff --git a/vendor/github.com/tidepool-org/platform/auth/auth.go b/vendor/github.com/tidepool-org/platform/auth/auth.go index 82a17417e..42f6d893d 100644 --- a/vendor/github.com/tidepool-org/platform/auth/auth.go +++ b/vendor/github.com/tidepool-org/platform/auth/auth.go @@ -22,7 +22,7 @@ type Client interface { type ExternalAccessor interface { ServerSessionToken() (string, error) - ValidateSessionToken(ctx context.Context, token string) (request.Details, error) + ValidateSessionToken(ctx context.Context, token string) (request.AuthDetails, error) EnsureAuthorized(ctx context.Context) error EnsureAuthorizedService(ctx context.Context) error EnsureAuthorizedUser(ctx context.Context, targetUserID string, permission string) (string, error) diff --git a/vendor/github.com/tidepool-org/platform/auth/client/client.coverprofile b/vendor/github.com/tidepool-org/platform/auth/client/client.coverprofile new file mode 100644 index 000000000..bce8f05bb --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/auth/client/client.coverprofile @@ -0,0 +1,247 @@ +mode: atomic +github.com/tidepool-org/platform/auth/client/client.go:22.26,27.2 1 23 +github.com/tidepool-org/platform/auth/client/client.go:29.61,30.54 1 0 +github.com/tidepool-org/platform/auth/client/client.go:30.54,32.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:33.2,33.69 1 0 +github.com/tidepool-org/platform/auth/client/client.go:36.35,37.44 1 20 +github.com/tidepool-org/platform/auth/client/client.go:37.44,39.3 1 1 +github.com/tidepool-org/platform/auth/client/client.go:40.2,40.36 1 19 +github.com/tidepool-org/platform/auth/client/client.go:48.109,49.16 1 23 +github.com/tidepool-org/platform/auth/client/client.go:49.16,51.3 1 1 +github.com/tidepool-org/platform/auth/client/client.go:52.2,52.16 1 22 +github.com/tidepool-org/platform/auth/client/client.go:52.16,54.3 1 1 +github.com/tidepool-org/platform/auth/client/client.go:55.2,55.16 1 21 +github.com/tidepool-org/platform/auth/client/client.go:55.16,57.3 1 1 +github.com/tidepool-org/platform/auth/client/client.go:59.2,59.39 1 20 +github.com/tidepool-org/platform/auth/client/client.go:59.39,61.3 1 2 +github.com/tidepool-org/platform/auth/client/client.go:63.2,64.16 2 18 +github.com/tidepool-org/platform/auth/client/client.go:64.16,66.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:68.2,69.16 2 18 +github.com/tidepool-org/platform/auth/client/client.go:69.16,71.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:73.2,76.8 1 18 +github.com/tidepool-org/platform/auth/client/client.go:79.175,80.16 1 0 +github.com/tidepool-org/platform/auth/client/client.go:80.16,82.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:83.2,83.18 1 0 +github.com/tidepool-org/platform/auth/client/client.go:83.18,85.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:86.2,86.19 1 0 +github.com/tidepool-org/platform/auth/client/client.go:86.19,88.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:88.8,88.73 1 0 +github.com/tidepool-org/platform/auth/client/client.go:88.73,90.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:91.2,91.23 1 0 +github.com/tidepool-org/platform/auth/client/client.go:91.23,93.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:93.8,93.77 1 0 +github.com/tidepool-org/platform/auth/client/client.go:93.77,95.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:97.2,99.141 3 0 +github.com/tidepool-org/platform/auth/client/client.go:99.141,101.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:103.2,103.30 1 0 +github.com/tidepool-org/platform/auth/client/client.go:106.147,107.16 1 0 +github.com/tidepool-org/platform/auth/client/client.go:107.16,109.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:110.2,110.18 1 0 +github.com/tidepool-org/platform/auth/client/client.go:110.18,112.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:113.2,113.19 1 0 +github.com/tidepool-org/platform/auth/client/client.go:113.19,115.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:115.8,115.73 1 0 +github.com/tidepool-org/platform/auth/client/client.go:115.73,117.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:119.2,121.102 3 0 +github.com/tidepool-org/platform/auth/client/client.go:121.102,123.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:125.2,125.29 1 0 +github.com/tidepool-org/platform/auth/client/client.go:128.86,129.16 1 0 +github.com/tidepool-org/platform/auth/client/client.go:129.16,131.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:132.2,132.18 1 0 +github.com/tidepool-org/platform/auth/client/client.go:132.18,134.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:136.2,137.73 2 0 +github.com/tidepool-org/platform/auth/client/client.go:140.100,141.16 1 0 +github.com/tidepool-org/platform/auth/client/client.go:141.16,143.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:144.2,144.14 1 0 +github.com/tidepool-org/platform/auth/client/client.go:144.14,146.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:148.2,150.98 3 0 +github.com/tidepool-org/platform/auth/client/client.go:150.98,151.43 1 0 +github.com/tidepool-org/platform/auth/client/client.go:151.43,153.4 1 0 +github.com/tidepool-org/platform/auth/client/client.go:154.3,154.18 1 0 +github.com/tidepool-org/platform/auth/client/client.go:157.2,157.29 1 0 +github.com/tidepool-org/platform/auth/client/client.go:160.139,161.16 1 0 +github.com/tidepool-org/platform/auth/client/client.go:161.16,163.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:164.2,164.14 1 0 +github.com/tidepool-org/platform/auth/client/client.go:164.14,166.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:167.2,167.19 1 0 +github.com/tidepool-org/platform/auth/client/client.go:167.19,169.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:169.8,169.73 1 0 +github.com/tidepool-org/platform/auth/client/client.go:169.73,171.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:173.2,175.101 3 0 +github.com/tidepool-org/platform/auth/client/client.go:175.101,176.43 1 0 +github.com/tidepool-org/platform/auth/client/client.go:176.43,178.4 1 0 +github.com/tidepool-org/platform/auth/client/client.go:179.3,179.18 1 0 +github.com/tidepool-org/platform/auth/client/client.go:182.2,182.29 1 0 +github.com/tidepool-org/platform/auth/client/client.go:185.78,186.16 1 0 +github.com/tidepool-org/platform/auth/client/client.go:186.16,188.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:189.2,189.14 1 0 +github.com/tidepool-org/platform/auth/client/client.go:189.14,191.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:193.2,194.73 2 0 +github.com/tidepool-org/platform/auth/client/client.go:197.175,198.16 1 0 +github.com/tidepool-org/platform/auth/client/client.go:198.16,200.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:201.2,201.18 1 0 +github.com/tidepool-org/platform/auth/client/client.go:201.18,203.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:204.2,204.19 1 0 +github.com/tidepool-org/platform/auth/client/client.go:204.19,206.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:206.8,206.73 1 0 +github.com/tidepool-org/platform/auth/client/client.go:206.73,208.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:209.2,209.23 1 0 +github.com/tidepool-org/platform/auth/client/client.go:209.23,211.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:211.8,211.77 1 0 +github.com/tidepool-org/platform/auth/client/client.go:211.77,213.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:215.2,217.141 3 0 +github.com/tidepool-org/platform/auth/client/client.go:217.141,219.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:221.2,221.30 1 0 +github.com/tidepool-org/platform/auth/client/client.go:224.86,225.16 1 0 +github.com/tidepool-org/platform/auth/client/client.go:225.16,227.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:228.2,228.18 1 0 +github.com/tidepool-org/platform/auth/client/client.go:228.18,230.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:232.2,233.73 2 0 +github.com/tidepool-org/platform/auth/client/client.go:236.147,237.16 1 0 +github.com/tidepool-org/platform/auth/client/client.go:237.16,239.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:240.2,240.18 1 0 +github.com/tidepool-org/platform/auth/client/client.go:240.18,242.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:243.2,243.19 1 0 +github.com/tidepool-org/platform/auth/client/client.go:243.19,245.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:245.8,245.73 1 0 +github.com/tidepool-org/platform/auth/client/client.go:245.73,247.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:249.2,251.102 3 0 +github.com/tidepool-org/platform/auth/client/client.go:251.102,253.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:255.2,255.29 1 0 +github.com/tidepool-org/platform/auth/client/client.go:258.100,259.16 1 0 +github.com/tidepool-org/platform/auth/client/client.go:259.16,261.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:262.2,262.14 1 0 +github.com/tidepool-org/platform/auth/client/client.go:262.14,264.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:266.2,268.98 3 0 +github.com/tidepool-org/platform/auth/client/client.go:268.98,269.43 1 0 +github.com/tidepool-org/platform/auth/client/client.go:269.43,271.4 1 0 +github.com/tidepool-org/platform/auth/client/client.go:272.3,272.18 1 0 +github.com/tidepool-org/platform/auth/client/client.go:275.2,275.29 1 0 +github.com/tidepool-org/platform/auth/client/client.go:278.139,279.16 1 0 +github.com/tidepool-org/platform/auth/client/client.go:279.16,281.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:282.2,282.14 1 0 +github.com/tidepool-org/platform/auth/client/client.go:282.14,284.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:285.2,285.19 1 0 +github.com/tidepool-org/platform/auth/client/client.go:285.19,287.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:287.8,287.73 1 0 +github.com/tidepool-org/platform/auth/client/client.go:287.73,289.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:291.2,293.101 3 0 +github.com/tidepool-org/platform/auth/client/client.go:293.101,294.43 1 0 +github.com/tidepool-org/platform/auth/client/client.go:294.43,296.4 1 0 +github.com/tidepool-org/platform/auth/client/client.go:297.3,297.18 1 0 +github.com/tidepool-org/platform/auth/client/client.go:300.2,300.29 1 0 +github.com/tidepool-org/platform/auth/client/client.go:303.78,304.16 1 0 +github.com/tidepool-org/platform/auth/client/client.go:304.16,306.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:307.2,307.14 1 0 +github.com/tidepool-org/platform/auth/client/client.go:307.14,309.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:311.2,312.73 2 0 +github.com/tidepool-org/platform/auth/client/external.go:29.162,32.84 3 0 +github.com/tidepool-org/platform/auth/client/external.go:32.84,34.3 1 0 +github.com/tidepool-org/platform/auth/client/external.go:35.2,36.16 2 0 +github.com/tidepool-org/platform/auth/client/external.go:36.16,38.3 1 0 +github.com/tidepool-org/platform/auth/client/external.go:40.2,41.44 1 0 +github.com/tidepool-org/platform/auth/client/external.go:41.44,43.4 1 0 +github.com/tidepool-org/platform/auth/client/external.go:44.43,47.4 2 0 +github.com/tidepool-org/platform/auth/client/external.go:50.2,50.22 1 0 +github.com/tidepool-org/platform/auth/client/external.go:53.48,55.2 1 0 +github.com/tidepool-org/platform/auth/client/external.go:65.42,70.2 1 53 +github.com/tidepool-org/platform/auth/client/external.go:72.69,73.54 1 0 +github.com/tidepool-org/platform/auth/client/external.go:73.54,75.3 1 0 +github.com/tidepool-org/platform/auth/client/external.go:77.2,78.108 2 0 +github.com/tidepool-org/platform/auth/client/external.go:78.108,81.17 3 0 +github.com/tidepool-org/platform/auth/client/external.go:81.17,83.4 1 0 +github.com/tidepool-org/platform/auth/client/external.go:84.3,84.94 1 0 +github.com/tidepool-org/platform/auth/client/external.go:87.2,87.12 1 0 +github.com/tidepool-org/platform/auth/client/external.go:90.43,91.44 1 64 +github.com/tidepool-org/platform/auth/client/external.go:91.44,93.3 1 0 +github.com/tidepool-org/platform/auth/client/external.go:95.2,95.38 1 64 +github.com/tidepool-org/platform/auth/client/external.go:95.38,97.3 1 1 +github.com/tidepool-org/platform/auth/client/external.go:98.2,98.38 1 63 +github.com/tidepool-org/platform/auth/client/external.go:98.38,100.3 1 0 +github.com/tidepool-org/platform/auth/client/external.go:102.2,102.12 1 63 +github.com/tidepool-org/platform/auth/client/external.go:116.121,117.16 1 48 +github.com/tidepool-org/platform/auth/client/external.go:117.16,119.3 1 1 +github.com/tidepool-org/platform/auth/client/external.go:120.2,120.16 1 47 +github.com/tidepool-org/platform/auth/client/external.go:120.16,122.3 1 1 +github.com/tidepool-org/platform/auth/client/external.go:123.2,123.16 1 46 +github.com/tidepool-org/platform/auth/client/external.go:123.16,125.3 1 1 +github.com/tidepool-org/platform/auth/client/external.go:127.2,127.39 1 45 +github.com/tidepool-org/platform/auth/client/external.go:127.39,129.3 1 0 +github.com/tidepool-org/platform/auth/client/external.go:131.2,132.16 2 45 +github.com/tidepool-org/platform/auth/client/external.go:132.16,134.3 1 1 +github.com/tidepool-org/platform/auth/client/external.go:136.2,142.8 1 44 +github.com/tidepool-org/platform/auth/client/external.go:145.34,146.29 1 17 +github.com/tidepool-org/platform/auth/client/external.go:146.29,152.13 4 17 +github.com/tidepool-org/platform/auth/client/external.go:152.13,153.8 1 17 +github.com/tidepool-org/platform/auth/client/external.go:153.8,155.12 2 23 +github.com/tidepool-org/platform/auth/client/external.go:156.44,159.12 3 17 +github.com/tidepool-org/platform/auth/client/external.go:160.18,161.88 1 6 +github.com/tidepool-org/platform/auth/client/external.go:167.2,167.12 1 17 +github.com/tidepool-org/platform/auth/client/external.go:170.28,171.29 1 19 +github.com/tidepool-org/platform/auth/client/external.go:171.29,179.3 6 17 +github.com/tidepool-org/platform/auth/client/external.go:182.57,183.29 1 2 +github.com/tidepool-org/platform/auth/client/external.go:183.29,185.3 1 1 +github.com/tidepool-org/platform/auth/client/external.go:187.2,188.30 2 1 +github.com/tidepool-org/platform/auth/client/external.go:188.30,190.3 1 0 +github.com/tidepool-org/platform/auth/client/external.go:192.2,192.32 1 1 +github.com/tidepool-org/platform/auth/client/external.go:195.101,196.16 1 9 +github.com/tidepool-org/platform/auth/client/external.go:196.16,198.3 1 1 +github.com/tidepool-org/platform/auth/client/external.go:199.2,199.17 1 8 +github.com/tidepool-org/platform/auth/client/external.go:199.17,201.3 1 1 +github.com/tidepool-org/platform/auth/client/external.go:203.2,207.123 2 7 +github.com/tidepool-org/platform/auth/client/external.go:207.123,209.3 1 4 +github.com/tidepool-org/platform/auth/client/external.go:211.2,211.21 1 3 +github.com/tidepool-org/platform/auth/client/external.go:211.21,213.3 1 1 +github.com/tidepool-org/platform/auth/client/external.go:213.8,213.32 1 2 +github.com/tidepool-org/platform/auth/client/external.go:213.32,215.3 1 1 +github.com/tidepool-org/platform/auth/client/external.go:217.2,217.82 1 2 +github.com/tidepool-org/platform/auth/client/external.go:220.64,221.16 1 4 +github.com/tidepool-org/platform/auth/client/external.go:221.16,223.3 1 1 +github.com/tidepool-org/platform/auth/client/external.go:225.2,225.64 1 3 +github.com/tidepool-org/platform/auth/client/external.go:225.64,227.3 1 2 +github.com/tidepool-org/platform/auth/client/external.go:229.2,229.36 1 1 +github.com/tidepool-org/platform/auth/client/external.go:232.71,233.16 1 4 +github.com/tidepool-org/platform/auth/client/external.go:233.16,235.3 1 1 +github.com/tidepool-org/platform/auth/client/external.go:237.2,237.64 1 3 +github.com/tidepool-org/platform/auth/client/external.go:237.64,238.26 1 2 +github.com/tidepool-org/platform/auth/client/external.go:238.26,240.4 1 1 +github.com/tidepool-org/platform/auth/client/external.go:243.2,243.36 1 2 +github.com/tidepool-org/platform/auth/client/external.go:246.128,247.16 1 17 +github.com/tidepool-org/platform/auth/client/external.go:247.16,249.3 1 1 +github.com/tidepool-org/platform/auth/client/external.go:250.2,250.24 1 16 +github.com/tidepool-org/platform/auth/client/external.go:250.24,252.3 1 1 +github.com/tidepool-org/platform/auth/client/external.go:253.2,253.32 1 15 +github.com/tidepool-org/platform/auth/client/external.go:253.32,255.3 1 1 +github.com/tidepool-org/platform/auth/client/external.go:257.2,257.64 1 14 +github.com/tidepool-org/platform/auth/client/external.go:257.64,258.26 1 13 +github.com/tidepool-org/platform/auth/client/external.go:258.26,260.4 1 4 +github.com/tidepool-org/platform/auth/client/external.go:262.3,263.42 2 9 +github.com/tidepool-org/platform/auth/client/external.go:263.42,264.52 1 4 +github.com/tidepool-org/platform/auth/client/external.go:264.52,266.5 1 3 +github.com/tidepool-org/platform/auth/client/external.go:267.9,270.88 3 5 +github.com/tidepool-org/platform/auth/client/external.go:270.88,271.46 1 2 +github.com/tidepool-org/platform/auth/client/external.go:271.46,273.6 1 1 +github.com/tidepool-org/platform/auth/client/external.go:274.10,276.55 2 3 +github.com/tidepool-org/platform/auth/client/external.go:276.55,278.6 1 1 +github.com/tidepool-org/platform/auth/client/external.go:283.2,283.40 1 5 +github.com/tidepool-org/platform/auth/client/external.go:286.101,287.54 1 23 +github.com/tidepool-org/platform/auth/client/external.go:287.54,288.97 1 5 +github.com/tidepool-org/platform/auth/client/external.go:288.97,290.4 1 4 +github.com/tidepool-org/platform/auth/client/external.go:290.9,292.74 2 1 +github.com/tidepool-org/platform/auth/client/external.go:292.74,294.5 1 0 +github.com/tidepool-org/platform/auth/client/external.go:296.3,296.138 1 5 +github.com/tidepool-org/platform/auth/client/external.go:297.8,299.3 1 18 +github.com/tidepool-org/platform/auth/client/external.go:301.2,301.34 1 23 +github.com/tidepool-org/platform/auth/client/external.go:304.54,310.16 5 23 +github.com/tidepool-org/platform/auth/client/external.go:310.16,312.3 1 0 +github.com/tidepool-org/platform/auth/client/external.go:314.2,318.16 4 23 +github.com/tidepool-org/platform/auth/client/external.go:318.16,320.3 1 1 +github.com/tidepool-org/platform/auth/client/external.go:321.2,321.26 1 22 +github.com/tidepool-org/platform/auth/client/external.go:321.26,323.3 1 22 +github.com/tidepool-org/platform/auth/client/external.go:325.2,325.42 1 22 +github.com/tidepool-org/platform/auth/client/external.go:325.42,327.3 1 3 +github.com/tidepool-org/platform/auth/client/external.go:329.2,330.36 2 19 +github.com/tidepool-org/platform/auth/client/external.go:330.36,332.3 1 1 +github.com/tidepool-org/platform/auth/client/external.go:334.2,336.12 2 18 +github.com/tidepool-org/platform/auth/client/external.go:339.69,344.2 3 18 +github.com/tidepool-org/platform/auth/client/external.go:346.48,351.2 3 1 diff --git a/vendor/github.com/tidepool-org/platform/auth/client/client.go b/vendor/github.com/tidepool-org/platform/auth/client/client.go new file mode 100644 index 000000000..fd92f6efb --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/auth/client/client.go @@ -0,0 +1,340 @@ +package client + +import ( + "context" + "net/http" + + "github.com/tidepool-org/platform/auth" + "github.com/tidepool-org/platform/errors" + "github.com/tidepool-org/platform/log" + "github.com/tidepool-org/platform/page" + "github.com/tidepool-org/platform/platform" + "github.com/tidepool-org/platform/request" + structureValidator "github.com/tidepool-org/platform/structure/validator" +) + +type Config struct { + *platform.Config + *ExternalConfig +} + +func NewConfig() *Config { + return &Config{ + Config: platform.NewConfig(), + ExternalConfig: NewExternalConfig(), + } +} + +func (c *Config) Load(loader ConfigLoader) error { + return loader.Load(c) +} + +func (c *Config) Validate() error { + if err := c.Config.Validate(); err != nil { + return err + } + return c.ExternalConfig.Validate() +} + +type Client struct { + client *platform.Client + *External +} + +func NewClient(cfg *Config, authorizeAs platform.AuthorizeAs, name string, lgr log.Logger) (*Client, error) { + if cfg == nil { + return nil, errors.New("config is missing") + } + if name == "" { + return nil, errors.New("name is missing") + } + if lgr == nil { + return nil, errors.New("logger is missing") + } + + if err := cfg.Validate(); err != nil { + return nil, errors.Wrap(err, "config is invalid") + } + + clnt, err := platform.NewClient(cfg.Config, authorizeAs) + if err != nil { + return nil, err + } + + extrnl, err := NewExternal(cfg.ExternalConfig, authorizeAs, name, lgr) + if err != nil { + return nil, err + } + + return &Client{ + client: clnt, + External: extrnl, + }, nil +} + +func (c *Client) ListUserProviderSessions(ctx context.Context, userID string, filter *auth.ProviderSessionFilter, pagination *page.Pagination) (auth.ProviderSessions, error) { + if ctx == nil { + return nil, errors.New("context is missing") + } + if userID == "" { + return nil, errors.New("user id is missing") + } + if filter == nil { + filter = auth.NewProviderSessionFilter() + } else if err := structureValidator.New().Validate(filter); err != nil { + return nil, errors.Wrap(err, "filter is invalid") + } + if pagination == nil { + pagination = page.NewPagination() + } else if err := structureValidator.New().Validate(pagination); err != nil { + return nil, errors.Wrap(err, "pagination is invalid") + } + + url := c.client.ConstructURL("v1", "users", userID, "provider_sessions") + providerSessions := auth.ProviderSessions{} + if err := c.client.RequestData(ctx, http.MethodGet, url, []request.RequestMutator{filter, pagination}, nil, &providerSessions); err != nil { + return nil, err + } + + return providerSessions, nil +} + +func (c *Client) CreateUserProviderSession(ctx context.Context, userID string, create *auth.ProviderSessionCreate) (*auth.ProviderSession, error) { + if ctx == nil { + return nil, errors.New("context is missing") + } + if userID == "" { + return nil, errors.New("user id is missing") + } + if create == nil { + return nil, errors.New("create is missing") + } else if err := structureValidator.New().Validate(create); err != nil { + return nil, errors.Wrap(err, "create is invalid") + } + + url := c.client.ConstructURL("v1", "users", userID, "provider_sessions") + providerSession := &auth.ProviderSession{} + if err := c.client.RequestData(ctx, http.MethodPost, url, nil, create, providerSession); err != nil { + return nil, err + } + + return providerSession, nil +} + +func (c *Client) DeleteAllProviderSessions(ctx context.Context, userID string) error { + if ctx == nil { + return errors.New("context is missing") + } + if userID == "" { + return errors.New("user id is missing") + } + + url := c.client.ConstructURL("v1", "users", userID, "provider_sessions") + return c.client.RequestData(ctx, http.MethodDelete, url, nil, nil, nil) +} + +func (c *Client) GetProviderSession(ctx context.Context, id string) (*auth.ProviderSession, error) { + if ctx == nil { + return nil, errors.New("context is missing") + } + if id == "" { + return nil, errors.New("id is missing") + } + + url := c.client.ConstructURL("v1", "provider_sessions", id) + providerSession := &auth.ProviderSession{} + if err := c.client.RequestData(ctx, http.MethodGet, url, nil, nil, providerSession); err != nil { + if request.IsErrorResourceNotFound(err) { + return nil, nil + } + return nil, err + } + + return providerSession, nil +} + +func (c *Client) UpdateProviderSession(ctx context.Context, id string, update *auth.ProviderSessionUpdate) (*auth.ProviderSession, error) { + if ctx == nil { + return nil, errors.New("context is missing") + } + if id == "" { + return nil, errors.New("id is missing") + } + if update == nil { + return nil, errors.New("update is missing") + } else if err := structureValidator.New().Validate(update); err != nil { + return nil, errors.Wrap(err, "update is invalid") + } + + url := c.client.ConstructURL("v1", "provider_sessions", id) + providerSession := &auth.ProviderSession{} + if err := c.client.RequestData(ctx, http.MethodPut, url, nil, update, providerSession); err != nil { + if request.IsErrorResourceNotFound(err) { + return nil, nil + } + return nil, err + } + + return providerSession, nil +} + +func (c *Client) DeleteProviderSession(ctx context.Context, id string) error { + if ctx == nil { + return errors.New("context is missing") + } + if id == "" { + return errors.New("id is missing") + } + + url := c.client.ConstructURL("v1", "provider_sessions", id) + return c.client.RequestData(ctx, http.MethodDelete, url, nil, nil, nil) +} + +func (c *Client) ListUserRestrictedTokens(ctx context.Context, userID string, filter *auth.RestrictedTokenFilter, pagination *page.Pagination) (auth.RestrictedTokens, error) { + if ctx == nil { + return nil, errors.New("context is missing") + } + if userID == "" { + return nil, errors.New("user id is missing") + } + if filter == nil { + filter = auth.NewRestrictedTokenFilter() + } else if err := structureValidator.New().Validate(filter); err != nil { + return nil, errors.Wrap(err, "filter is invalid") + } + if pagination == nil { + pagination = page.NewPagination() + } else if err := structureValidator.New().Validate(pagination); err != nil { + return nil, errors.Wrap(err, "pagination is invalid") + } + + url := c.client.ConstructURL("v1", "users", userID, "restricted_tokens") + restrictedTokens := auth.RestrictedTokens{} + if err := c.client.RequestData(ctx, http.MethodGet, url, []request.RequestMutator{filter, pagination}, nil, &restrictedTokens); err != nil { + return nil, err + } + + return restrictedTokens, nil +} + +func (c *Client) DeleteAllRestrictedTokens(ctx context.Context, userID string) error { + if ctx == nil { + return errors.New("context is missing") + } + if userID == "" { + return errors.New("user id is missing") + } + + url := c.client.ConstructURL("v1", "users", userID, "restricted_tokens") + return c.client.RequestData(ctx, http.MethodDelete, url, nil, nil, nil) +} + +func (c *Client) CreateUserRestrictedToken(ctx context.Context, userID string, create *auth.RestrictedTokenCreate) (*auth.RestrictedToken, error) { + if ctx == nil { + return nil, errors.New("context is missing") + } + if userID == "" { + return nil, errors.New("user id is missing") + } + if create == nil { + return nil, errors.New("create is missing") + } else if err := structureValidator.New().Validate(create); err != nil { + return nil, errors.Wrap(err, "create is invalid") + } + + url := c.client.ConstructURL("v1", "users", userID, "restricted_tokens") + restrictedToken := &auth.RestrictedToken{} + if err := c.client.RequestData(ctx, http.MethodPost, url, nil, create, restrictedToken); err != nil { + return nil, err + } + + return restrictedToken, nil +} + +func (c *Client) GetRestrictedToken(ctx context.Context, id string) (*auth.RestrictedToken, error) { + if ctx == nil { + return nil, errors.New("context is missing") + } + if id == "" { + return nil, errors.New("id is missing") + } + + url := c.client.ConstructURL("v1", "restricted_tokens", id) + restrictedToken := &auth.RestrictedToken{} + if err := c.client.RequestData(ctx, http.MethodGet, url, nil, nil, restrictedToken); err != nil { + if request.IsErrorResourceNotFound(err) { + return nil, nil + } + return nil, err + } + + return restrictedToken, nil +} + +func (c *Client) UpdateRestrictedToken(ctx context.Context, id string, update *auth.RestrictedTokenUpdate) (*auth.RestrictedToken, error) { + if ctx == nil { + return nil, errors.New("context is missing") + } + if id == "" { + return nil, errors.New("id is missing") + } + if update == nil { + return nil, errors.New("update is missing") + } else if err := structureValidator.New().Validate(update); err != nil { + return nil, errors.Wrap(err, "update is invalid") + } + + url := c.client.ConstructURL("v1", "restricted_tokens", id) + restrictedToken := &auth.RestrictedToken{} + if err := c.client.RequestData(ctx, http.MethodPut, url, nil, update, restrictedToken); err != nil { + if request.IsErrorResourceNotFound(err) { + return nil, nil + } + return nil, err + } + + return restrictedToken, nil +} + +func (c *Client) DeleteRestrictedToken(ctx context.Context, id string) error { + if ctx == nil { + return errors.New("context is missing") + } + if id == "" { + return errors.New("id is missing") + } + + url := c.client.ConstructURL("v1", "restricted_tokens", id) + return c.client.RequestData(ctx, http.MethodDelete, url, nil, nil, nil) +} + +type ConfigLoader interface { + Load(*Config) error +} + +// configHybridLoader combines an ExternalConfigLoader with a platform.ConfigLoader. +// +// Whereas we usually have different implementations, in this case, it's just +// two other loaders together, so no need for multiple other implementations +// here. +type configHybridLoader struct { + ExternalConfigLoader + platform.ConfigLoader +} + +func NewConfigLoader(ext ExternalConfigLoader, plt platform.ConfigLoader) *configHybridLoader { + return &configHybridLoader{ + ExternalConfigLoader: ext, + ConfigLoader: plt, + } +} + +func (l *configHybridLoader) Load(cfg *Config) error { + if err := l.ExternalConfigLoader.Load(cfg.ExternalConfig); err != nil { + return err + } + if err := l.ConfigLoader.Load(cfg.Config); err != nil { + return err + } + return nil +} diff --git a/vendor/github.com/tidepool-org/platform/auth/client/cover.out b/vendor/github.com/tidepool-org/platform/auth/client/cover.out new file mode 100644 index 000000000..bce8f05bb --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/auth/client/cover.out @@ -0,0 +1,247 @@ +mode: atomic +github.com/tidepool-org/platform/auth/client/client.go:22.26,27.2 1 23 +github.com/tidepool-org/platform/auth/client/client.go:29.61,30.54 1 0 +github.com/tidepool-org/platform/auth/client/client.go:30.54,32.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:33.2,33.69 1 0 +github.com/tidepool-org/platform/auth/client/client.go:36.35,37.44 1 20 +github.com/tidepool-org/platform/auth/client/client.go:37.44,39.3 1 1 +github.com/tidepool-org/platform/auth/client/client.go:40.2,40.36 1 19 +github.com/tidepool-org/platform/auth/client/client.go:48.109,49.16 1 23 +github.com/tidepool-org/platform/auth/client/client.go:49.16,51.3 1 1 +github.com/tidepool-org/platform/auth/client/client.go:52.2,52.16 1 22 +github.com/tidepool-org/platform/auth/client/client.go:52.16,54.3 1 1 +github.com/tidepool-org/platform/auth/client/client.go:55.2,55.16 1 21 +github.com/tidepool-org/platform/auth/client/client.go:55.16,57.3 1 1 +github.com/tidepool-org/platform/auth/client/client.go:59.2,59.39 1 20 +github.com/tidepool-org/platform/auth/client/client.go:59.39,61.3 1 2 +github.com/tidepool-org/platform/auth/client/client.go:63.2,64.16 2 18 +github.com/tidepool-org/platform/auth/client/client.go:64.16,66.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:68.2,69.16 2 18 +github.com/tidepool-org/platform/auth/client/client.go:69.16,71.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:73.2,76.8 1 18 +github.com/tidepool-org/platform/auth/client/client.go:79.175,80.16 1 0 +github.com/tidepool-org/platform/auth/client/client.go:80.16,82.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:83.2,83.18 1 0 +github.com/tidepool-org/platform/auth/client/client.go:83.18,85.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:86.2,86.19 1 0 +github.com/tidepool-org/platform/auth/client/client.go:86.19,88.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:88.8,88.73 1 0 +github.com/tidepool-org/platform/auth/client/client.go:88.73,90.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:91.2,91.23 1 0 +github.com/tidepool-org/platform/auth/client/client.go:91.23,93.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:93.8,93.77 1 0 +github.com/tidepool-org/platform/auth/client/client.go:93.77,95.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:97.2,99.141 3 0 +github.com/tidepool-org/platform/auth/client/client.go:99.141,101.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:103.2,103.30 1 0 +github.com/tidepool-org/platform/auth/client/client.go:106.147,107.16 1 0 +github.com/tidepool-org/platform/auth/client/client.go:107.16,109.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:110.2,110.18 1 0 +github.com/tidepool-org/platform/auth/client/client.go:110.18,112.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:113.2,113.19 1 0 +github.com/tidepool-org/platform/auth/client/client.go:113.19,115.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:115.8,115.73 1 0 +github.com/tidepool-org/platform/auth/client/client.go:115.73,117.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:119.2,121.102 3 0 +github.com/tidepool-org/platform/auth/client/client.go:121.102,123.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:125.2,125.29 1 0 +github.com/tidepool-org/platform/auth/client/client.go:128.86,129.16 1 0 +github.com/tidepool-org/platform/auth/client/client.go:129.16,131.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:132.2,132.18 1 0 +github.com/tidepool-org/platform/auth/client/client.go:132.18,134.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:136.2,137.73 2 0 +github.com/tidepool-org/platform/auth/client/client.go:140.100,141.16 1 0 +github.com/tidepool-org/platform/auth/client/client.go:141.16,143.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:144.2,144.14 1 0 +github.com/tidepool-org/platform/auth/client/client.go:144.14,146.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:148.2,150.98 3 0 +github.com/tidepool-org/platform/auth/client/client.go:150.98,151.43 1 0 +github.com/tidepool-org/platform/auth/client/client.go:151.43,153.4 1 0 +github.com/tidepool-org/platform/auth/client/client.go:154.3,154.18 1 0 +github.com/tidepool-org/platform/auth/client/client.go:157.2,157.29 1 0 +github.com/tidepool-org/platform/auth/client/client.go:160.139,161.16 1 0 +github.com/tidepool-org/platform/auth/client/client.go:161.16,163.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:164.2,164.14 1 0 +github.com/tidepool-org/platform/auth/client/client.go:164.14,166.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:167.2,167.19 1 0 +github.com/tidepool-org/platform/auth/client/client.go:167.19,169.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:169.8,169.73 1 0 +github.com/tidepool-org/platform/auth/client/client.go:169.73,171.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:173.2,175.101 3 0 +github.com/tidepool-org/platform/auth/client/client.go:175.101,176.43 1 0 +github.com/tidepool-org/platform/auth/client/client.go:176.43,178.4 1 0 +github.com/tidepool-org/platform/auth/client/client.go:179.3,179.18 1 0 +github.com/tidepool-org/platform/auth/client/client.go:182.2,182.29 1 0 +github.com/tidepool-org/platform/auth/client/client.go:185.78,186.16 1 0 +github.com/tidepool-org/platform/auth/client/client.go:186.16,188.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:189.2,189.14 1 0 +github.com/tidepool-org/platform/auth/client/client.go:189.14,191.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:193.2,194.73 2 0 +github.com/tidepool-org/platform/auth/client/client.go:197.175,198.16 1 0 +github.com/tidepool-org/platform/auth/client/client.go:198.16,200.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:201.2,201.18 1 0 +github.com/tidepool-org/platform/auth/client/client.go:201.18,203.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:204.2,204.19 1 0 +github.com/tidepool-org/platform/auth/client/client.go:204.19,206.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:206.8,206.73 1 0 +github.com/tidepool-org/platform/auth/client/client.go:206.73,208.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:209.2,209.23 1 0 +github.com/tidepool-org/platform/auth/client/client.go:209.23,211.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:211.8,211.77 1 0 +github.com/tidepool-org/platform/auth/client/client.go:211.77,213.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:215.2,217.141 3 0 +github.com/tidepool-org/platform/auth/client/client.go:217.141,219.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:221.2,221.30 1 0 +github.com/tidepool-org/platform/auth/client/client.go:224.86,225.16 1 0 +github.com/tidepool-org/platform/auth/client/client.go:225.16,227.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:228.2,228.18 1 0 +github.com/tidepool-org/platform/auth/client/client.go:228.18,230.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:232.2,233.73 2 0 +github.com/tidepool-org/platform/auth/client/client.go:236.147,237.16 1 0 +github.com/tidepool-org/platform/auth/client/client.go:237.16,239.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:240.2,240.18 1 0 +github.com/tidepool-org/platform/auth/client/client.go:240.18,242.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:243.2,243.19 1 0 +github.com/tidepool-org/platform/auth/client/client.go:243.19,245.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:245.8,245.73 1 0 +github.com/tidepool-org/platform/auth/client/client.go:245.73,247.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:249.2,251.102 3 0 +github.com/tidepool-org/platform/auth/client/client.go:251.102,253.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:255.2,255.29 1 0 +github.com/tidepool-org/platform/auth/client/client.go:258.100,259.16 1 0 +github.com/tidepool-org/platform/auth/client/client.go:259.16,261.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:262.2,262.14 1 0 +github.com/tidepool-org/platform/auth/client/client.go:262.14,264.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:266.2,268.98 3 0 +github.com/tidepool-org/platform/auth/client/client.go:268.98,269.43 1 0 +github.com/tidepool-org/platform/auth/client/client.go:269.43,271.4 1 0 +github.com/tidepool-org/platform/auth/client/client.go:272.3,272.18 1 0 +github.com/tidepool-org/platform/auth/client/client.go:275.2,275.29 1 0 +github.com/tidepool-org/platform/auth/client/client.go:278.139,279.16 1 0 +github.com/tidepool-org/platform/auth/client/client.go:279.16,281.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:282.2,282.14 1 0 +github.com/tidepool-org/platform/auth/client/client.go:282.14,284.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:285.2,285.19 1 0 +github.com/tidepool-org/platform/auth/client/client.go:285.19,287.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:287.8,287.73 1 0 +github.com/tidepool-org/platform/auth/client/client.go:287.73,289.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:291.2,293.101 3 0 +github.com/tidepool-org/platform/auth/client/client.go:293.101,294.43 1 0 +github.com/tidepool-org/platform/auth/client/client.go:294.43,296.4 1 0 +github.com/tidepool-org/platform/auth/client/client.go:297.3,297.18 1 0 +github.com/tidepool-org/platform/auth/client/client.go:300.2,300.29 1 0 +github.com/tidepool-org/platform/auth/client/client.go:303.78,304.16 1 0 +github.com/tidepool-org/platform/auth/client/client.go:304.16,306.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:307.2,307.14 1 0 +github.com/tidepool-org/platform/auth/client/client.go:307.14,309.3 1 0 +github.com/tidepool-org/platform/auth/client/client.go:311.2,312.73 2 0 +github.com/tidepool-org/platform/auth/client/external.go:29.162,32.84 3 0 +github.com/tidepool-org/platform/auth/client/external.go:32.84,34.3 1 0 +github.com/tidepool-org/platform/auth/client/external.go:35.2,36.16 2 0 +github.com/tidepool-org/platform/auth/client/external.go:36.16,38.3 1 0 +github.com/tidepool-org/platform/auth/client/external.go:40.2,41.44 1 0 +github.com/tidepool-org/platform/auth/client/external.go:41.44,43.4 1 0 +github.com/tidepool-org/platform/auth/client/external.go:44.43,47.4 2 0 +github.com/tidepool-org/platform/auth/client/external.go:50.2,50.22 1 0 +github.com/tidepool-org/platform/auth/client/external.go:53.48,55.2 1 0 +github.com/tidepool-org/platform/auth/client/external.go:65.42,70.2 1 53 +github.com/tidepool-org/platform/auth/client/external.go:72.69,73.54 1 0 +github.com/tidepool-org/platform/auth/client/external.go:73.54,75.3 1 0 +github.com/tidepool-org/platform/auth/client/external.go:77.2,78.108 2 0 +github.com/tidepool-org/platform/auth/client/external.go:78.108,81.17 3 0 +github.com/tidepool-org/platform/auth/client/external.go:81.17,83.4 1 0 +github.com/tidepool-org/platform/auth/client/external.go:84.3,84.94 1 0 +github.com/tidepool-org/platform/auth/client/external.go:87.2,87.12 1 0 +github.com/tidepool-org/platform/auth/client/external.go:90.43,91.44 1 64 +github.com/tidepool-org/platform/auth/client/external.go:91.44,93.3 1 0 +github.com/tidepool-org/platform/auth/client/external.go:95.2,95.38 1 64 +github.com/tidepool-org/platform/auth/client/external.go:95.38,97.3 1 1 +github.com/tidepool-org/platform/auth/client/external.go:98.2,98.38 1 63 +github.com/tidepool-org/platform/auth/client/external.go:98.38,100.3 1 0 +github.com/tidepool-org/platform/auth/client/external.go:102.2,102.12 1 63 +github.com/tidepool-org/platform/auth/client/external.go:116.121,117.16 1 48 +github.com/tidepool-org/platform/auth/client/external.go:117.16,119.3 1 1 +github.com/tidepool-org/platform/auth/client/external.go:120.2,120.16 1 47 +github.com/tidepool-org/platform/auth/client/external.go:120.16,122.3 1 1 +github.com/tidepool-org/platform/auth/client/external.go:123.2,123.16 1 46 +github.com/tidepool-org/platform/auth/client/external.go:123.16,125.3 1 1 +github.com/tidepool-org/platform/auth/client/external.go:127.2,127.39 1 45 +github.com/tidepool-org/platform/auth/client/external.go:127.39,129.3 1 0 +github.com/tidepool-org/platform/auth/client/external.go:131.2,132.16 2 45 +github.com/tidepool-org/platform/auth/client/external.go:132.16,134.3 1 1 +github.com/tidepool-org/platform/auth/client/external.go:136.2,142.8 1 44 +github.com/tidepool-org/platform/auth/client/external.go:145.34,146.29 1 17 +github.com/tidepool-org/platform/auth/client/external.go:146.29,152.13 4 17 +github.com/tidepool-org/platform/auth/client/external.go:152.13,153.8 1 17 +github.com/tidepool-org/platform/auth/client/external.go:153.8,155.12 2 23 +github.com/tidepool-org/platform/auth/client/external.go:156.44,159.12 3 17 +github.com/tidepool-org/platform/auth/client/external.go:160.18,161.88 1 6 +github.com/tidepool-org/platform/auth/client/external.go:167.2,167.12 1 17 +github.com/tidepool-org/platform/auth/client/external.go:170.28,171.29 1 19 +github.com/tidepool-org/platform/auth/client/external.go:171.29,179.3 6 17 +github.com/tidepool-org/platform/auth/client/external.go:182.57,183.29 1 2 +github.com/tidepool-org/platform/auth/client/external.go:183.29,185.3 1 1 +github.com/tidepool-org/platform/auth/client/external.go:187.2,188.30 2 1 +github.com/tidepool-org/platform/auth/client/external.go:188.30,190.3 1 0 +github.com/tidepool-org/platform/auth/client/external.go:192.2,192.32 1 1 +github.com/tidepool-org/platform/auth/client/external.go:195.101,196.16 1 9 +github.com/tidepool-org/platform/auth/client/external.go:196.16,198.3 1 1 +github.com/tidepool-org/platform/auth/client/external.go:199.2,199.17 1 8 +github.com/tidepool-org/platform/auth/client/external.go:199.17,201.3 1 1 +github.com/tidepool-org/platform/auth/client/external.go:203.2,207.123 2 7 +github.com/tidepool-org/platform/auth/client/external.go:207.123,209.3 1 4 +github.com/tidepool-org/platform/auth/client/external.go:211.2,211.21 1 3 +github.com/tidepool-org/platform/auth/client/external.go:211.21,213.3 1 1 +github.com/tidepool-org/platform/auth/client/external.go:213.8,213.32 1 2 +github.com/tidepool-org/platform/auth/client/external.go:213.32,215.3 1 1 +github.com/tidepool-org/platform/auth/client/external.go:217.2,217.82 1 2 +github.com/tidepool-org/platform/auth/client/external.go:220.64,221.16 1 4 +github.com/tidepool-org/platform/auth/client/external.go:221.16,223.3 1 1 +github.com/tidepool-org/platform/auth/client/external.go:225.2,225.64 1 3 +github.com/tidepool-org/platform/auth/client/external.go:225.64,227.3 1 2 +github.com/tidepool-org/platform/auth/client/external.go:229.2,229.36 1 1 +github.com/tidepool-org/platform/auth/client/external.go:232.71,233.16 1 4 +github.com/tidepool-org/platform/auth/client/external.go:233.16,235.3 1 1 +github.com/tidepool-org/platform/auth/client/external.go:237.2,237.64 1 3 +github.com/tidepool-org/platform/auth/client/external.go:237.64,238.26 1 2 +github.com/tidepool-org/platform/auth/client/external.go:238.26,240.4 1 1 +github.com/tidepool-org/platform/auth/client/external.go:243.2,243.36 1 2 +github.com/tidepool-org/platform/auth/client/external.go:246.128,247.16 1 17 +github.com/tidepool-org/platform/auth/client/external.go:247.16,249.3 1 1 +github.com/tidepool-org/platform/auth/client/external.go:250.2,250.24 1 16 +github.com/tidepool-org/platform/auth/client/external.go:250.24,252.3 1 1 +github.com/tidepool-org/platform/auth/client/external.go:253.2,253.32 1 15 +github.com/tidepool-org/platform/auth/client/external.go:253.32,255.3 1 1 +github.com/tidepool-org/platform/auth/client/external.go:257.2,257.64 1 14 +github.com/tidepool-org/platform/auth/client/external.go:257.64,258.26 1 13 +github.com/tidepool-org/platform/auth/client/external.go:258.26,260.4 1 4 +github.com/tidepool-org/platform/auth/client/external.go:262.3,263.42 2 9 +github.com/tidepool-org/platform/auth/client/external.go:263.42,264.52 1 4 +github.com/tidepool-org/platform/auth/client/external.go:264.52,266.5 1 3 +github.com/tidepool-org/platform/auth/client/external.go:267.9,270.88 3 5 +github.com/tidepool-org/platform/auth/client/external.go:270.88,271.46 1 2 +github.com/tidepool-org/platform/auth/client/external.go:271.46,273.6 1 1 +github.com/tidepool-org/platform/auth/client/external.go:274.10,276.55 2 3 +github.com/tidepool-org/platform/auth/client/external.go:276.55,278.6 1 1 +github.com/tidepool-org/platform/auth/client/external.go:283.2,283.40 1 5 +github.com/tidepool-org/platform/auth/client/external.go:286.101,287.54 1 23 +github.com/tidepool-org/platform/auth/client/external.go:287.54,288.97 1 5 +github.com/tidepool-org/platform/auth/client/external.go:288.97,290.4 1 4 +github.com/tidepool-org/platform/auth/client/external.go:290.9,292.74 2 1 +github.com/tidepool-org/platform/auth/client/external.go:292.74,294.5 1 0 +github.com/tidepool-org/platform/auth/client/external.go:296.3,296.138 1 5 +github.com/tidepool-org/platform/auth/client/external.go:297.8,299.3 1 18 +github.com/tidepool-org/platform/auth/client/external.go:301.2,301.34 1 23 +github.com/tidepool-org/platform/auth/client/external.go:304.54,310.16 5 23 +github.com/tidepool-org/platform/auth/client/external.go:310.16,312.3 1 0 +github.com/tidepool-org/platform/auth/client/external.go:314.2,318.16 4 23 +github.com/tidepool-org/platform/auth/client/external.go:318.16,320.3 1 1 +github.com/tidepool-org/platform/auth/client/external.go:321.2,321.26 1 22 +github.com/tidepool-org/platform/auth/client/external.go:321.26,323.3 1 22 +github.com/tidepool-org/platform/auth/client/external.go:325.2,325.42 1 22 +github.com/tidepool-org/platform/auth/client/external.go:325.42,327.3 1 3 +github.com/tidepool-org/platform/auth/client/external.go:329.2,330.36 2 19 +github.com/tidepool-org/platform/auth/client/external.go:330.36,332.3 1 1 +github.com/tidepool-org/platform/auth/client/external.go:334.2,336.12 2 18 +github.com/tidepool-org/platform/auth/client/external.go:339.69,344.2 3 18 +github.com/tidepool-org/platform/auth/client/external.go:346.48,351.2 3 1 diff --git a/vendor/github.com/tidepool-org/platform/auth/client/external.go b/vendor/github.com/tidepool-org/platform/auth/client/external.go new file mode 100644 index 000000000..8eb9f45ff --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/auth/client/external.go @@ -0,0 +1,421 @@ +package client + +import ( + "context" + "net/http" + "strconv" + "sync" + "time" + + "go.uber.org/fx" + + "github.com/kelseyhightower/envconfig" + + "github.com/tidepool-org/platform/auth" + "github.com/tidepool-org/platform/client" + "github.com/tidepool-org/platform/config" + "github.com/tidepool-org/platform/errors" + "github.com/tidepool-org/platform/log" + "github.com/tidepool-org/platform/permission" + "github.com/tidepool-org/platform/platform" + "github.com/tidepool-org/platform/request" +) + +const ( + TidepoolServerNameHeaderName = "X-Tidepool-Server-Name" + TidepoolServerSecretHeaderName = "X-Tidepool-Server-Secret" + + ServerSessionTokenTimeoutOnFailureFirst = 1 * time.Second + ServerSessionTokenTimeoutOnFailureLast = 60 * time.Second +) + +var ExternalClientModule = fx.Provide(func(name ServiceName, loader ExternalConfigLoader, logger log.Logger, lifecycle fx.Lifecycle) (auth.ExternalAccessor, error) { + cfg := NewExternalConfig() + cfg.Config.UserAgent = string(name) + if err := cfg.Load(loader); err != nil { + return nil, err + } + external, err := NewExternal(cfg, platform.AuthorizeAsService, string(name), logger) + if err != nil { + return nil, err + } + + lifecycle.Append(fx.Hook{ + OnStart: func(ctx context.Context) error { + return external.Start() + }, + OnStop: func(ctx context.Context) error { + external.Close() + return nil + }, + }) + + return external, nil +}) + +func ProvideServiceName(name string) fx.Option { + return fx.Supply(ServiceName(name)) +} + +func ProvideExternalLoader(reporter config.Reporter) ExternalConfigLoader { + scoped := reporter.WithScopes("auth", "client", "external") + return NewExternalConfigReporterLoader(scoped) +} + +type ServiceName string + +type ExternalConfig struct { + *platform.Config + ServerSessionTokenSecret string `envconfig:"TIDEPOOL_AUTH_CLIENT_EXTERNAL_SERVER_SESSION_TOKEN_SECRET"` + ServerSessionTokenTimeout time.Duration `envconfig:"TIDEPOOL_AUTH_CLIENT_EXTERNAL_SERVER_SESSION_TOKEN_TIMEOUT" default:"1h"` +} + +func NewExternalConfig() *ExternalConfig { + return &ExternalConfig{ + Config: platform.NewConfig(), + ServerSessionTokenTimeout: ServerSessionTokenTimeout, + } +} + +const ServerSessionTokenTimeout = time.Hour + +func (e *ExternalConfig) Load(loader ExternalConfigLoader) error { + return loader.Load(e) +} + +func (e *ExternalConfig) Validate() error { + if err := e.Config.Validate(); err != nil { + return err + } + + if e.ServerSessionTokenSecret == "" { + return errors.New("server session token secret is missing") + } + if e.ServerSessionTokenTimeout <= 0 { + return errors.New("server session token timeout is invalid") + } + + return nil +} + +type External struct { + client *platform.Client + name string + logger log.Logger + serverSessionTokenSecret string + serverSessionTokenTimeout time.Duration + serverSessionTokenMutex sync.Mutex + serverSessionTokenSafe string + closingChannel chan chan bool +} + +func NewExternal(cfg *ExternalConfig, authorizeAs platform.AuthorizeAs, name string, lgr log.Logger) (*External, error) { + if cfg == nil { + return nil, errors.New("config is missing") + } + if name == "" { + return nil, errors.New("name is missing") + } + if lgr == nil { + return nil, errors.New("logger is missing") + } + + if err := cfg.Validate(); err != nil { + return nil, errors.Wrap(err, "config is invalid") + } + + clnt, err := platform.NewClient(cfg.Config, authorizeAs) + if err != nil { + return nil, err + } + + return &External{ + client: clnt, + logger: lgr, + name: name, + serverSessionTokenSecret: cfg.ServerSessionTokenSecret, + serverSessionTokenTimeout: cfg.ServerSessionTokenTimeout, + }, nil +} + +func (e *External) Start() error { + if e.closingChannel == nil { + closingChannel := make(chan chan bool) + e.closingChannel = closingChannel + + serverSessionTokenTimeout := e.timeoutServerSessionToken(0) + + go func() { + for { + timer := time.After(serverSessionTokenTimeout) + select { + case closedChannel := <-closingChannel: + closedChannel <- true + close(closedChannel) + return + case <-timer: + serverSessionTokenTimeout = e.timeoutServerSessionToken(serverSessionTokenTimeout) + } + } + }() + } + + return nil +} + +func (e *External) Close() { + if e.closingChannel != nil { + closingChannel := e.closingChannel + e.closingChannel = nil + + closedChannel := make(chan bool) + closingChannel <- closedChannel + close(closingChannel) + <-closedChannel + } +} + +func (e *External) ServerSessionToken() (string, error) { + if e.closingChannel == nil { + return "", errors.New("client is closed") + } + + serverSessionToken := e.serverSessionToken() + if serverSessionToken == "" { + return "", errors.New("unable to obtain server session token") + } + + return serverSessionToken, nil +} + +func (e *External) ValidateSessionToken(ctx context.Context, token string) (request.AuthDetails, error) { + if ctx == nil { + return nil, errors.New("context is missing") + } + if token == "" { + return nil, errors.New("token is missing") + } + + var result struct { + IsServer bool + UserID string + } + if err := e.client.RequestData(ctx, "GET", e.client.ConstructURL("auth", "token", token), nil, nil, &result); err != nil { + return nil, err + } + + if result.IsServer { + result.UserID = "" + } else if result.UserID == "" { + return nil, errors.New("user id is missing") + } + + return request.NewAuthDetails(request.MethodSessionToken, result.UserID, token), nil +} + +func (e *External) EnsureAuthorized(ctx context.Context) error { + if ctx == nil { + return errors.New("context is missing") + } + + if details := request.GetAuthDetails(ctx); details != nil { + return nil + } + + return request.ErrorUnauthorized() +} + +func (e *External) EnsureAuthorizedService(ctx context.Context) error { + if ctx == nil { + return errors.New("context is missing") + } + + if details := request.GetAuthDetails(ctx); details != nil { + if details.IsService() { + return nil + } + } + + return request.ErrorUnauthorized() +} + +func (e *External) EnsureAuthorizedUser(ctx context.Context, targetUserID string, authorizedPermission string) (string, error) { + if ctx == nil { + return "", errors.New("context is missing") + } + if targetUserID == "" { + return "", errors.New("target user id is missing") + } + if authorizedPermission == "" { + return "", errors.New("authorized permission is missing") + } + + if details := request.GetAuthDetails(ctx); details != nil { + if details.IsService() { + return "", nil + } + + authenticatedUserID := details.UserID() + if authenticatedUserID == targetUserID { + if authorizedPermission != permission.Custodian { + return authenticatedUserID, nil + } + } else { + url := e.client.ConstructURL("access", targetUserID, authenticatedUserID) + permissions := permission.Permissions{} + if err := e.client.RequestData(ctx, "GET", url, nil, nil, &permissions); err != nil { + if !request.IsErrorResourceNotFound(err) { + return "", errors.Wrap(err, "unable to get user permissions") + } + } else { + permissions = permission.FixOwnerPermissions(permissions) + if _, ok := permissions[authorizedPermission]; ok { + return authenticatedUserID, nil + } + } + } + } + + return "", request.ErrorUnauthorized() +} + +func (e *External) timeoutServerSessionToken(serverSessionTokenTimeout time.Duration) time.Duration { + if err := e.refreshServerSessionToken(); err != nil { + if serverSessionTokenTimeout == 0 || serverSessionTokenTimeout == e.serverSessionTokenTimeout { + serverSessionTokenTimeout = ServerSessionTokenTimeoutOnFailureFirst + } else { + serverSessionTokenTimeout *= 2 + if serverSessionTokenTimeout > ServerSessionTokenTimeoutOnFailureLast { + serverSessionTokenTimeout = ServerSessionTokenTimeoutOnFailureLast + } + } + e.logger.WithError(err).WithField("retry", serverSessionTokenTimeout.String()).Warn("Unable to refresh server session token; retrying") + } else { + serverSessionTokenTimeout = e.serverSessionTokenTimeout + } + + return serverSessionTokenTimeout +} + +func (e *External) refreshServerSessionToken() error { + e.logger.Debug("Refreshing server session token") + + requestMethod := "POST" + requestURL := e.client.ConstructURL("auth", "serverlogin") + request, err := http.NewRequest(requestMethod, requestURL, nil) + if err != nil { + return errors.Wrapf(err, "unable to create new request for %s %s", requestMethod, requestURL) + } + + request.Header.Add(TidepoolServerNameHeaderName, e.name) + request.Header.Add(TidepoolServerSecretHeaderName, e.serverSessionTokenSecret) + + response, err := e.client.HTTPClient().Do(request) + if err != nil { + return errors.Wrap(err, "unable to refresh server session token") + } + if response.Body != nil { + defer response.Body.Close() + } + + if response.StatusCode != http.StatusOK { + return errors.Newf("unexpected response status code %d while refreshing server session token", response.StatusCode) + } + + serverSessionTokenHeader := response.Header.Get(auth.TidepoolSessionTokenHeaderKey) + if serverSessionTokenHeader == "" { + return errors.New("server session token is missing") + } + + e.setServerSessionToken(serverSessionTokenHeader) + + return nil +} + +func (e *External) setServerSessionToken(serverSessionToken string) { + e.serverSessionTokenMutex.Lock() + defer e.serverSessionTokenMutex.Unlock() + + e.serverSessionTokenSafe = serverSessionToken +} + +func (e *External) serverSessionToken() string { + e.serverSessionTokenMutex.Lock() + defer e.serverSessionTokenMutex.Unlock() + + return e.serverSessionTokenSafe +} + +// ExternalConfigLoader abstracts the method by which config values are loaded. +type ExternalConfigLoader interface { + // Load sets config values for the properties of ExternalConfig. + Load(*ExternalConfig) error +} + +// externalConfigReporterLoader adapts a config.Reporter to implement ConfigLoader. +type externalConfigReporterLoader struct { + Reporter config.Reporter + platform.ConfigLoader +} + +func NewExternalConfigReporterLoader(reporter config.Reporter) *externalConfigReporterLoader { + return &externalConfigReporterLoader{ + Reporter: reporter, + ConfigLoader: platform.NewConfigReporterLoader(reporter), + } +} + +// Load implements ConfigLoader. +func (l *externalConfigReporterLoader) Load(cfg *ExternalConfig) error { + if err := l.ConfigLoader.Load(cfg.Config); err != nil { + return err + } + cfg.ServerSessionTokenSecret = l.Reporter.GetWithDefault("server_session_token_secret", "") + if serverSessionTokenTimeoutString, err := l.Reporter.Get("server_session_token_timeout"); err == nil { + var serverSessionTokenTimeoutInteger int64 + serverSessionTokenTimeoutInteger, err = strconv.ParseInt(serverSessionTokenTimeoutString, 10, 0) + if err != nil { + return errors.New("server session token timeout is invalid") + } + cfg.ServerSessionTokenTimeout = time.Duration(serverSessionTokenTimeoutInteger) * time.Second + } + + return nil +} + +// externalEnvconfigLoader adapts envconfig to implement ConfigLoader. +type externalEnvconfigLoader struct { + platform.ConfigLoader +} + +// NewExternalEnvconfigLoader loads values via envconfig. +// +// If loader is nil, it defaults to envconfig for platform values. +func NewExternalEnvconfigLoader(loader platform.ConfigLoader) *externalEnvconfigLoader { + if loader == nil { + loader = platform.NewEnvconfigLoader(nil) + } + return &externalEnvconfigLoader{ + ConfigLoader: loader, + } +} + +// Load implements ConfigLoader. +func (l *externalEnvconfigLoader) Load(cfg *ExternalConfig) error { + eeCfg := &struct { + Address string `envconfig:"TIDEPOOL_AUTH_CLIENT_EXTERNAL_ADDRESS" required:"true"` + *ExternalConfig + }{ExternalConfig: cfg} + if err := envconfig.Process(client.EnvconfigEmptyPrefix, eeCfg); err != nil { + return err + } + // Override the client.Config.Address. It's not possible to change the + // envconfig tag on the config.Client at runtime. In addition, we don't + // want to use the envconfig.Prefix so that the code is more easily + // searched. The results is that we have to override this value. + cfg.Config.Config.Address = eeCfg.Address + if err := l.ConfigLoader.Load(cfg.Config); err != nil { + return err + } + return nil +} diff --git a/vendor/github.com/tidepool-org/platform/auth/cover.out b/vendor/github.com/tidepool-org/platform/auth/cover.out new file mode 100644 index 000000000..fd460a850 --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/auth/cover.out @@ -0,0 +1,146 @@ +mode: atomic +github.com/tidepool-org/platform/auth/auth.go:35.103,37.2 1 0 +github.com/tidepool-org/platform/auth/auth.go:39.64,40.16 1 0 +github.com/tidepool-org/platform/auth/auth.go:40.16,41.85 1 0 +github.com/tidepool-org/platform/auth/auth.go:41.85,43.4 1 0 +github.com/tidepool-org/platform/auth/auth.go:45.2,45.11 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:22.31,26.2 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:43.56,45.2 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:47.70,50.2 2 0 +github.com/tidepool-org/platform/auth/provider_session.go:52.73,55.2 2 0 +github.com/tidepool-org/platform/auth/provider_session.go:57.72,59.19 2 0 +github.com/tidepool-org/platform/auth/provider_session.go:59.19,61.3 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:62.2,62.19 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:62.19,64.3 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:65.2,65.68 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:74.56,76.2 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:78.70,79.46 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:79.46,81.3 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:82.2,82.46 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:82.46,84.3 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:85.2,85.99 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:85.99,89.3 3 0 +github.com/tidepool-org/platform/auth/provider_session.go:92.73,95.16 3 0 +github.com/tidepool-org/platform/auth/provider_session.go:96.25,97.88 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:97.88,99.4 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:99.9,101.4 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:109.56,111.2 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:113.70,114.99 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:114.99,118.3 3 0 +github.com/tidepool-org/platform/auth/provider_session.go:121.73,122.25 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:122.25,124.3 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:127.48,129.2 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:131.36,133.2 1 3 +github.com/tidepool-org/platform/auth/provider_session.go:135.50,137.2 1 7 +github.com/tidepool-org/platform/auth/provider_session.go:139.86,141.2 1 7 +github.com/tidepool-org/platform/auth/provider_session.go:143.52,144.17 1 21 +github.com/tidepool-org/platform/auth/provider_session.go:144.17,146.3 1 3 +github.com/tidepool-org/platform/auth/provider_session.go:146.8,146.60 1 18 +github.com/tidepool-org/platform/auth/provider_session.go:146.60,148.3 1 15 +github.com/tidepool-org/platform/auth/provider_session.go:149.2,149.12 1 3 +github.com/tidepool-org/platform/auth/provider_session.go:152.70,154.2 1 22 +github.com/tidepool-org/platform/auth/provider_session.go:160.45,162.2 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:164.81,166.2 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:168.47,169.17 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:169.17,171.3 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:171.8,171.69 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:171.69,173.3 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:174.2,174.12 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:187.97,188.18 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:188.18,190.3 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:191.2,191.19 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:191.19,193.3 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:193.8,193.73 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:193.73,195.3 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:197.2,204.8 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:207.64,208.44 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:208.44,210.3 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:211.2,211.48 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:211.48,213.3 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:214.2,214.46 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:214.46,216.3 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:217.2,217.46 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:217.46,219.3 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:220.2,220.99 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:220.99,224.3 3 0 +github.com/tidepool-org/platform/auth/provider_session.go:225.2,225.69 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:225.69,227.3 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:228.2,228.64 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:231.67,236.16 5 0 +github.com/tidepool-org/platform/auth/provider_session.go:237.25,238.88 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:238.88,240.4 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:240.9,242.4 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:244.2,245.92 2 0 +github.com/tidepool-org/platform/auth/provider_session.go:248.67,249.43 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:249.43,251.3 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:252.2,252.41 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:257.67,258.36 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:258.36,259.59 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:259.59,261.4 1 0 +github.com/tidepool-org/platform/auth/provider_session.go:263.2,263.12 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:36.56,38.2 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:40.71,41.2 0 0 +github.com/tidepool-org/platform/auth/restricted_token.go:43.74,44.2 0 0 +github.com/tidepool-org/platform/auth/restricted_token.go:46.72,48.2 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:55.56,59.2 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:61.70,64.2 2 0 +github.com/tidepool-org/platform/auth/restricted_token.go:66.73,69.2 2 0 +github.com/tidepool-org/platform/auth/restricted_token.go:76.56,78.2 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:80.70,83.2 2 0 +github.com/tidepool-org/platform/auth/restricted_token.go:85.73,88.2 2 0 +github.com/tidepool-org/platform/auth/restricted_token.go:90.48,92.2 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:94.36,96.2 1 3 +github.com/tidepool-org/platform/auth/restricted_token.go:98.50,100.2 1 7 +github.com/tidepool-org/platform/auth/restricted_token.go:102.86,104.2 1 7 +github.com/tidepool-org/platform/auth/restricted_token.go:106.52,107.17 1 21 +github.com/tidepool-org/platform/auth/restricted_token.go:107.17,109.3 1 3 +github.com/tidepool-org/platform/auth/restricted_token.go:109.8,109.60 1 18 +github.com/tidepool-org/platform/auth/restricted_token.go:109.60,111.3 1 15 +github.com/tidepool-org/platform/auth/restricted_token.go:112.2,112.12 1 3 +github.com/tidepool-org/platform/auth/restricted_token.go:115.70,117.2 1 22 +github.com/tidepool-org/platform/auth/restricted_token.go:130.97,131.18 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:131.18,133.3 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:134.2,134.19 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:134.19,136.3 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:136.8,136.73 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:136.73,138.3 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:140.2,146.34 2 0 +github.com/tidepool-org/platform/auth/restricted_token.go:146.34,148.3 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:148.8,150.3 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:152.2,152.29 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:155.64,156.44 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:156.44,158.3 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:159.2,159.48 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:159.48,161.3 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:162.2,163.72 2 0 +github.com/tidepool-org/platform/auth/restricted_token.go:163.72,165.3 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:166.2,166.69 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:166.69,168.3 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:169.2,169.64 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:172.67,179.2 6 0 +github.com/tidepool-org/platform/auth/restricted_token.go:181.65,182.34 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:182.34,184.3 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:185.2,185.40 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:185.40,187.3 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:188.2,188.20 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:188.20,190.33 2 0 +github.com/tidepool-org/platform/auth/restricted_token.go:190.33,191.96 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:191.96,193.5 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:195.3,195.15 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:197.2,197.13 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:200.67,201.77 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:201.77,203.3 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:204.2,204.41 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:209.67,210.36 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:210.36,211.59 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:211.59,213.4 1 0 +github.com/tidepool-org/platform/auth/restricted_token.go:215.2,215.12 1 0 +github.com/tidepool-org/platform/auth/user.go:12.25,14.2 1 3 +github.com/tidepool-org/platform/auth/user.go:16.39,18.2 1 8 +github.com/tidepool-org/platform/auth/user.go:20.75,22.2 1 8 +github.com/tidepool-org/platform/auth/user.go:24.41,25.17 1 24 +github.com/tidepool-org/platform/auth/user.go:25.17,27.3 1 3 +github.com/tidepool-org/platform/auth/user.go:27.8,27.45 1 21 +github.com/tidepool-org/platform/auth/user.go:27.45,29.3 1 15 +github.com/tidepool-org/platform/auth/user.go:30.2,30.12 1 6 +github.com/tidepool-org/platform/auth/user.go:33.59,35.2 1 22 diff --git a/vendor/github.com/tidepool-org/platform/auth/provider_session.go b/vendor/github.com/tidepool-org/platform/auth/provider_session.go index a6434ab59..f289984b5 100644 --- a/vendor/github.com/tidepool-org/platform/auth/provider_session.go +++ b/vendor/github.com/tidepool-org/platform/auth/provider_session.go @@ -245,7 +245,7 @@ func (p *ProviderSession) Validate(validator structure.Validator) { validator.Time("modifiedTime", p.ModifiedTime).After(p.CreatedTime).BeforeNow(time.Second) } -func (p *ProviderSession) Sanitize(details request.Details) error { +func (p *ProviderSession) Sanitize(details request.AuthDetails) error { if details != nil && details.IsService() { return nil } @@ -254,7 +254,7 @@ func (p *ProviderSession) Sanitize(details request.Details) error { type ProviderSessions []*ProviderSession -func (p ProviderSessions) Sanitize(details request.Details) error { +func (p ProviderSessions) Sanitize(details request.AuthDetails) error { for _, providerSession := range p { if err := providerSession.Sanitize(details); err != nil { return err diff --git a/vendor/github.com/tidepool-org/platform/auth/restricted_token.go b/vendor/github.com/tidepool-org/platform/auth/restricted_token.go index c717f57bd..82faad03d 100644 --- a/vendor/github.com/tidepool-org/platform/auth/restricted_token.go +++ b/vendor/github.com/tidepool-org/platform/auth/restricted_token.go @@ -197,7 +197,7 @@ func (r *RestrictedToken) Authenticates(req *http.Request) bool { return true } -func (r *RestrictedToken) Sanitize(details request.Details) error { +func (r *RestrictedToken) Sanitize(details request.AuthDetails) error { if details != nil && (details.IsService() || details.UserID() == r.UserID) { return nil } @@ -206,7 +206,7 @@ func (r *RestrictedToken) Sanitize(details request.Details) error { type RestrictedTokens []*RestrictedToken -func (r RestrictedTokens) Sanitize(details request.Details) error { +func (r RestrictedTokens) Sanitize(details request.AuthDetails) error { for _, restrictedToken := range r { if err := restrictedToken.Sanitize(details); err != nil { return err diff --git a/vendor/github.com/tidepool-org/platform/client/client.coverprofile b/vendor/github.com/tidepool-org/platform/client/client.coverprofile new file mode 100644 index 000000000..22ecb2b8d --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/client/client.coverprofile @@ -0,0 +1,95 @@ +mode: atomic +github.com/tidepool-org/platform/client/client.go:27.40,28.16 1 66 +github.com/tidepool-org/platform/client/client.go:28.16,30.3 1 1 +github.com/tidepool-org/platform/client/client.go:30.8,30.46 1 65 +github.com/tidepool-org/platform/client/client.go:30.46,32.3 1 1 +github.com/tidepool-org/platform/client/client.go:34.2,37.8 1 64 +github.com/tidepool-org/platform/client/client.go:40.55,42.29 2 14 +github.com/tidepool-org/platform/client/client.go:42.29,44.3 1 24 +github.com/tidepool-org/platform/client/client.go:45.2,45.93 1 14 +github.com/tidepool-org/platform/client/client.go:48.83,50.26 2 4 +github.com/tidepool-org/platform/client/client.go:50.26,52.3 1 4 +github.com/tidepool-org/platform/client/client.go:54.2,55.23 2 4 +github.com/tidepool-org/platform/client/client.go:55.23,56.39 1 2 +github.com/tidepool-org/platform/client/client.go:56.39,58.4 1 1 +github.com/tidepool-org/platform/client/client.go:58.9,60.4 1 1 +github.com/tidepool-org/platform/client/client.go:61.3,61.27 1 2 +github.com/tidepool-org/platform/client/client.go:64.2,64.18 1 4 +github.com/tidepool-org/platform/client/client.go:67.242,68.23 1 49 +github.com/tidepool-org/platform/client/client.go:68.23,70.3 1 2 +github.com/tidepool-org/platform/client/client.go:72.2,73.16 2 47 +github.com/tidepool-org/platform/client/client.go:73.16,75.3 1 10 +github.com/tidepool-org/platform/client/client.go:77.2,78.16 2 37 +github.com/tidepool-org/platform/client/client.go:78.16,80.3 1 2 +github.com/tidepool-org/platform/client/client.go:82.2,82.39 1 35 +github.com/tidepool-org/platform/client/client.go:82.39,83.55 1 55 +github.com/tidepool-org/platform/client/client.go:83.55,86.4 2 2 +github.com/tidepool-org/platform/client/client.go:89.2,89.40 1 33 +github.com/tidepool-org/platform/client/client.go:92.249,95.16 3 26 +github.com/tidepool-org/platform/client/client.go:95.16,97.3 1 18 +github.com/tidepool-org/platform/client/client.go:97.8,97.24 1 8 +github.com/tidepool-org/platform/client/client.go:97.24,99.3 1 2 +github.com/tidepool-org/platform/client/client.go:101.2,103.25 2 6 +github.com/tidepool-org/platform/client/client.go:103.25,105.3 1 1 +github.com/tidepool-org/platform/client/client.go:107.2,107.79 1 5 +github.com/tidepool-org/platform/client/client.go:110.163,111.16 1 47 +github.com/tidepool-org/platform/client/client.go:111.16,113.3 1 2 +github.com/tidepool-org/platform/client/client.go:114.2,114.18 1 45 +github.com/tidepool-org/platform/client/client.go:114.18,116.3 1 2 +github.com/tidepool-org/platform/client/client.go:117.2,117.15 1 43 +github.com/tidepool-org/platform/client/client.go:117.15,119.3 1 2 +github.com/tidepool-org/platform/client/client.go:121.2,124.24 3 41 +github.com/tidepool-org/platform/client/client.go:124.24,125.97 1 36 +github.com/tidepool-org/platform/client/client.go:125.97,126.49 1 36 +github.com/tidepool-org/platform/client/client.go:126.49,128.5 1 2 +github.com/tidepool-org/platform/client/client.go:128.10,130.71 2 34 +github.com/tidepool-org/platform/client/client.go:130.71,132.6 1 2 +github.com/tidepool-org/platform/client/client.go:133.5,134.109 2 32 +github.com/tidepool-org/platform/client/client.go:139.2,140.16 2 39 +github.com/tidepool-org/platform/client/client.go:140.16,142.3 1 0 +github.com/tidepool-org/platform/client/client.go:144.2,146.35 2 39 +github.com/tidepool-org/platform/client/client.go:146.35,147.51 1 145 +github.com/tidepool-org/platform/client/client.go:147.51,149.4 1 2 +github.com/tidepool-org/platform/client/client.go:154.2,156.17 2 37 +github.com/tidepool-org/platform/client/client.go:159.116,162.49 2 33 +github.com/tidepool-org/platform/client/client.go:162.49,163.25 1 13 +github.com/tidepool-org/platform/client/client.go:164.54,166.19 2 4 +github.com/tidepool-org/platform/client/client.go:167.11,168.24 1 9 +github.com/tidepool-org/platform/client/client.go:172.2,176.79 3 20 +github.com/tidepool-org/platform/client/client.go:176.79,178.3 1 0 +github.com/tidepool-org/platform/client/client.go:178.8,178.28 1 20 +github.com/tidepool-org/platform/client/client.go:178.28,180.3 1 1 +github.com/tidepool-org/platform/client/client.go:180.8,180.85 1 19 +github.com/tidepool-org/platform/client/client.go:180.85,182.3 1 12 +github.com/tidepool-org/platform/client/client.go:182.8,182.38 1 7 +github.com/tidepool-org/platform/client/client.go:182.38,184.3 1 1 +github.com/tidepool-org/platform/client/client.go:186.2,186.31 1 20 +github.com/tidepool-org/platform/client/client.go:186.31,188.3 1 14 +github.com/tidepool-org/platform/client/client.go:190.2,192.41 2 20 +github.com/tidepool-org/platform/client/client.go:193.35,194.30 1 2 +github.com/tidepool-org/platform/client/client.go:195.40,196.36 1 2 +github.com/tidepool-org/platform/client/client.go:197.43,198.38 1 2 +github.com/tidepool-org/platform/client/client.go:201.2,201.32 1 20 +github.com/tidepool-org/platform/client/client.go:204.71,205.24 1 14 +github.com/tidepool-org/platform/client/client.go:206.29,207.35 1 2 +github.com/tidepool-org/platform/client/client.go:208.31,209.40 1 2 +github.com/tidepool-org/platform/client/client.go:210.28,211.37 1 2 +github.com/tidepool-org/platform/client/client.go:212.27,213.41 1 2 +github.com/tidepool-org/platform/client/client.go:214.40,215.41 1 2 +github.com/tidepool-org/platform/client/client.go:216.34,217.40 1 2 +github.com/tidepool-org/platform/client/client.go:218.10,219.51 1 2 +github.com/tidepool-org/platform/client/client.go:223.54,224.23 1 13 +github.com/tidepool-org/platform/client/client.go:224.23,226.3 1 12 +github.com/tidepool-org/platform/client/client.go:227.2,227.14 1 1 +github.com/tidepool-org/platform/client/client.go:230.42,233.2 2 32 +github.com/tidepool-org/platform/client/config.go:17.26,19.2 1 76 +github.com/tidepool-org/platform/client/config.go:21.61,22.27 1 4 +github.com/tidepool-org/platform/client/config.go:22.27,24.3 1 1 +github.com/tidepool-org/platform/client/config.go:26.2,29.12 3 3 +github.com/tidepool-org/platform/client/config.go:32.35,33.21 1 69 +github.com/tidepool-org/platform/client/config.go:33.21,35.3 1 2 +github.com/tidepool-org/platform/client/config.go:35.8,35.55 1 67 +github.com/tidepool-org/platform/client/config.go:35.55,37.3 1 1 +github.com/tidepool-org/platform/client/config.go:38.2,38.23 1 66 +github.com/tidepool-org/platform/client/config.go:38.23,40.3 1 1 +github.com/tidepool-org/platform/client/config.go:42.2,42.12 1 65 diff --git a/vendor/github.com/tidepool-org/platform/client/client.go b/vendor/github.com/tidepool-org/platform/client/client.go new file mode 100644 index 000000000..7468948ba --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/client/client.go @@ -0,0 +1,234 @@ +package client + +import ( + "bytes" + "context" + "encoding/json" + "fmt" + "io" + "net/http" + "net/url" + "reflect" + "strings" + "unicode/utf8" + + "github.com/tidepool-org/platform/errors" + "github.com/tidepool-org/platform/log" + "github.com/tidepool-org/platform/request" + "github.com/tidepool-org/platform/structure" +) + +type Client struct { + address string + userAgent string +} + +func New(cfg *Config) (*Client, error) { + if cfg == nil { + return nil, errors.New("config is missing") + } else if err := cfg.Validate(); err != nil { + return nil, errors.Wrap(err, "config is invalid") + } + + return &Client{ + address: cfg.Address, + userAgent: cfg.UserAgent, + }, nil +} + +func (c *Client) ConstructURL(paths ...string) string { + segments := []string{} + for _, path := range paths { + segments = append(segments, url.PathEscape(strings.Trim(path, "/"))) + } + return fmt.Sprintf("%s/%s", strings.TrimRight(c.address, "/"), strings.Join(segments, "/")) +} + +func (c *Client) AppendURLQuery(urlString string, query map[string]string) string { + values := url.Values{} + for k, v := range query { + values.Add(k, v) + } + + queryString := values.Encode() + if queryString != "" { + if strings.Contains(urlString, "?") { + urlString += "&" + } else { + urlString += "?" + } + urlString += queryString + } + + return urlString +} + +func (c *Client) RequestStreamWithHTTPClient(ctx context.Context, method string, url string, mutators []request.RequestMutator, requestBody interface{}, inspectors []request.ResponseInspector, httpClient *http.Client) (io.ReadCloser, error) { + if httpClient == nil { + return nil, errors.New("http client is missing") + } + + req, err := c.createRequest(ctx, method, url, mutators, requestBody) + if err != nil { + return nil, err + } + + res, err := httpClient.Do(req) + if err != nil { + return nil, errors.Wrapf(err, "unable to perform request to %s %s", method, url) + } + + for _, inspector := range inspectors { + if err = inspector.InspectResponse(res); err != nil { + drainAndClose(res.Body) + return nil, err + } + } + + return c.handleResponse(ctx, res, req) +} + +func (c *Client) RequestDataWithHTTPClient(ctx context.Context, method string, url string, mutators []request.RequestMutator, requestBody interface{}, responseBody interface{}, inspectors []request.ResponseInspector, httpClient *http.Client) error { + headerInspector := request.NewHeadersInspector() + body, err := c.RequestStreamWithHTTPClient(ctx, method, url, mutators, requestBody, append(inspectors, headerInspector), httpClient) + if err != nil { + return err + } else if body == nil { + return nil + } + + defer drainAndClose(body) + + if responseBody == nil { + return nil + } + + return request.DecodeObject(structure.NewPointerSource(), body, responseBody) +} + +func (c *Client) createRequest(ctx context.Context, method string, url string, mutators []request.RequestMutator, requestBody interface{}) (*http.Request, error) { + if ctx == nil { + return nil, errors.New("context is missing") + } + if method == "" { + return nil, errors.New("method is missing") + } + if url == "" { + return nil, errors.New("url is missing") + } + + if c.userAgent != "" { + mutators = append(mutators, request.NewHeaderMutator("User-Agent", c.userAgent)) + } + + var body io.Reader + if requestBody != nil { + if valueOf := reflect.ValueOf(requestBody); valueOf.Kind() != reflect.Ptr || !valueOf.IsNil() { + if reader, ok := requestBody.(io.Reader); ok { + body = reader + } else { + buffer := &bytes.Buffer{} + if err := json.NewEncoder(buffer).Encode(requestBody); err != nil { + return nil, errors.Wrapf(err, "unable to serialize request to %s %s", method, url) + } + body = buffer + mutators = append(mutators, request.NewHeaderMutator("Content-Type", "application/json; charset=utf-8")) + } + } + } + + req, err := http.NewRequest(method, url, body) + if err != nil { + return nil, errors.Wrapf(err, "unable to create request to %s %s", method, url) + } + + req = req.WithContext(ctx) + + for _, mutator := range mutators { + if err = mutator.MutateRequest(req); err != nil { + return nil, errors.Wrapf(err, "unable to mutate request to %s %s", method, url) + } + } + + // TODO: Prevents random EOF errors (I think due to the server closing Keep Alive connections automatically) + // TODO: Would be better to retry the request with exponential fallback + req.Close = true + + return req, nil +} + +func (c *Client) handleResponse(ctx context.Context, res *http.Response, req *http.Request) (io.ReadCloser, error) { + logger := log.LoggerFromContext(ctx).WithFields(log.Fields{"method": req.Method, "url": req.URL.String()}) + + if request.IsStatusCodeSuccess(res.StatusCode) { + switch res.StatusCode { + case http.StatusNoContent, http.StatusResetContent: + drainAndClose(res.Body) + return nil, nil + default: + return res.Body, nil + } + } + + defer drainAndClose(res.Body) + + serializable := &errors.Serializable{} + + if bites, err := io.ReadAll(io.LimitReader(res.Body, 1<<20)); err != nil { + return nil, errors.Wrap(err, "unable to read response body") + } else if len(bites) == 0 { + logger.Error("Response body is empty, using defacto error for status code") + } else if unmarshalErr := json.Unmarshal(bites, serializable); unmarshalErr != nil { + logger.WithError(unmarshalErr).WithField("responseBody", responseBodyFromBytes(bites)).Error("Unable to deserialize response body, using defacto error for status code") + } else if serializable.Error == nil { + logger.WithField("responseBody", responseBodyFromBytes(bites)).Error("Response body does not contain an error, using defacto error for status code") + } + + if serializable.Error == nil { + serializable.Error = errorFromStatusCode(res, req) + } + + logger = logger.WithError(serializable.Error) + + switch errors.Code(serializable.Error) { + case request.ErrorCodeBadRequest: + logger.Error("Bad request") + case request.ErrorCodeTooManyRequests: + logger.Error("Too many requests") + case request.ErrorCodeUnexpectedResponse: + logger.Error("Unexpected response") + } + + return nil, serializable.Error +} + +func errorFromStatusCode(res *http.Response, req *http.Request) error { + switch res.StatusCode { + case http.StatusBadRequest: + return request.ErrorBadRequest() + case http.StatusUnauthorized: + return request.ErrorUnauthenticated() + case http.StatusForbidden: + return request.ErrorUnauthorized() + case http.StatusNotFound: + return request.ErrorResourceNotFound() + case http.StatusRequestEntityTooLarge: + return request.ErrorResourceTooLarge() + case http.StatusTooManyRequests: + return request.ErrorTooManyRequests() + default: + return request.ErrorUnexpectedResponse(res, req) + } +} + +func responseBodyFromBytes(bites []byte) interface{} { + if utf8.Valid(bites) { + return string(bites) + } + return bites +} + +func drainAndClose(reader io.ReadCloser) { + io.Copy(io.Discard, reader) + reader.Close() +} diff --git a/vendor/github.com/tidepool-org/platform/client/config.go b/vendor/github.com/tidepool-org/platform/client/config.go new file mode 100644 index 000000000..b74720633 --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/client/config.go @@ -0,0 +1,84 @@ +package client + +import ( + "net/url" + + "github.com/kelseyhightower/envconfig" + + "github.com/tidepool-org/platform/config" + "github.com/tidepool-org/platform/errors" +) + +type Config struct { + Address string // this should be overridden for loaders using envconfig + // UserAgent is an optional way for a client to identify itself. + // + // This is usually set to the name of the service that's using the + // client. If left empty, the default Go http.Client value should be used. + // + // This value can be helpful when debugging. But remember that these + // values can be spoofed, so when in doubt, verify the client's source IP. + // + // More info: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent + UserAgent string `envconfig:"TIDEPOOL_USER_AGENT"` +} + +func NewConfig() *Config { + return &Config{} +} + +func (c *Config) Load(loader ConfigLoader) error { + return loader.Load(c) +} + +func (c *Config) Validate() error { + if c.Address == "" { + return errors.New("address is missing") + } else if _, err := url.Parse(c.Address); err != nil { + return errors.New("address is invalid") + } + + return nil +} + +// ConfigLoader abstracts the method by which config values are loaded. +type ConfigLoader interface { + // Load sets config values for the properties of Config. + Load(*Config) error +} + +// configReporterLoader adapts a config.Reporter to implement ConfigLoader. +type configReporterLoader struct { + Reporter config.Reporter +} + +func NewConfigReporterLoader(reporter config.Reporter) *configReporterLoader { + return &configReporterLoader{ + Reporter: reporter, + } +} + +// Load implements ConfigLoader. +func (l *configReporterLoader) Load(cfg *Config) error { + cfg.Address = l.Reporter.GetWithDefault("address", cfg.Address) + cfg.UserAgent = l.Reporter.GetWithDefault("user_agent", cfg.UserAgent) + return nil +} + +// EnvconfigEmptyPrefix should be the empty string. +// +// By forcing the use of the environment variable name in each tag, we aim to +// make the code more easily searchable. +const EnvconfigEmptyPrefix = "" + +// envconfigLoader adapts envconfig to implement ConfigLoader. +type envconfigLoader struct{} + +func NewEnvconfigLoader() *envconfigLoader { + return &envconfigLoader{} +} + +// Load implements ConfigLoader. +func (l *envconfigLoader) Load(cfg *Config) error { + return envconfig.Process(EnvconfigEmptyPrefix, cfg) +} diff --git a/vendor/github.com/tidepool-org/platform/client/cover.out b/vendor/github.com/tidepool-org/platform/client/cover.out new file mode 100644 index 000000000..22ecb2b8d --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/client/cover.out @@ -0,0 +1,95 @@ +mode: atomic +github.com/tidepool-org/platform/client/client.go:27.40,28.16 1 66 +github.com/tidepool-org/platform/client/client.go:28.16,30.3 1 1 +github.com/tidepool-org/platform/client/client.go:30.8,30.46 1 65 +github.com/tidepool-org/platform/client/client.go:30.46,32.3 1 1 +github.com/tidepool-org/platform/client/client.go:34.2,37.8 1 64 +github.com/tidepool-org/platform/client/client.go:40.55,42.29 2 14 +github.com/tidepool-org/platform/client/client.go:42.29,44.3 1 24 +github.com/tidepool-org/platform/client/client.go:45.2,45.93 1 14 +github.com/tidepool-org/platform/client/client.go:48.83,50.26 2 4 +github.com/tidepool-org/platform/client/client.go:50.26,52.3 1 4 +github.com/tidepool-org/platform/client/client.go:54.2,55.23 2 4 +github.com/tidepool-org/platform/client/client.go:55.23,56.39 1 2 +github.com/tidepool-org/platform/client/client.go:56.39,58.4 1 1 +github.com/tidepool-org/platform/client/client.go:58.9,60.4 1 1 +github.com/tidepool-org/platform/client/client.go:61.3,61.27 1 2 +github.com/tidepool-org/platform/client/client.go:64.2,64.18 1 4 +github.com/tidepool-org/platform/client/client.go:67.242,68.23 1 49 +github.com/tidepool-org/platform/client/client.go:68.23,70.3 1 2 +github.com/tidepool-org/platform/client/client.go:72.2,73.16 2 47 +github.com/tidepool-org/platform/client/client.go:73.16,75.3 1 10 +github.com/tidepool-org/platform/client/client.go:77.2,78.16 2 37 +github.com/tidepool-org/platform/client/client.go:78.16,80.3 1 2 +github.com/tidepool-org/platform/client/client.go:82.2,82.39 1 35 +github.com/tidepool-org/platform/client/client.go:82.39,83.55 1 55 +github.com/tidepool-org/platform/client/client.go:83.55,86.4 2 2 +github.com/tidepool-org/platform/client/client.go:89.2,89.40 1 33 +github.com/tidepool-org/platform/client/client.go:92.249,95.16 3 26 +github.com/tidepool-org/platform/client/client.go:95.16,97.3 1 18 +github.com/tidepool-org/platform/client/client.go:97.8,97.24 1 8 +github.com/tidepool-org/platform/client/client.go:97.24,99.3 1 2 +github.com/tidepool-org/platform/client/client.go:101.2,103.25 2 6 +github.com/tidepool-org/platform/client/client.go:103.25,105.3 1 1 +github.com/tidepool-org/platform/client/client.go:107.2,107.79 1 5 +github.com/tidepool-org/platform/client/client.go:110.163,111.16 1 47 +github.com/tidepool-org/platform/client/client.go:111.16,113.3 1 2 +github.com/tidepool-org/platform/client/client.go:114.2,114.18 1 45 +github.com/tidepool-org/platform/client/client.go:114.18,116.3 1 2 +github.com/tidepool-org/platform/client/client.go:117.2,117.15 1 43 +github.com/tidepool-org/platform/client/client.go:117.15,119.3 1 2 +github.com/tidepool-org/platform/client/client.go:121.2,124.24 3 41 +github.com/tidepool-org/platform/client/client.go:124.24,125.97 1 36 +github.com/tidepool-org/platform/client/client.go:125.97,126.49 1 36 +github.com/tidepool-org/platform/client/client.go:126.49,128.5 1 2 +github.com/tidepool-org/platform/client/client.go:128.10,130.71 2 34 +github.com/tidepool-org/platform/client/client.go:130.71,132.6 1 2 +github.com/tidepool-org/platform/client/client.go:133.5,134.109 2 32 +github.com/tidepool-org/platform/client/client.go:139.2,140.16 2 39 +github.com/tidepool-org/platform/client/client.go:140.16,142.3 1 0 +github.com/tidepool-org/platform/client/client.go:144.2,146.35 2 39 +github.com/tidepool-org/platform/client/client.go:146.35,147.51 1 145 +github.com/tidepool-org/platform/client/client.go:147.51,149.4 1 2 +github.com/tidepool-org/platform/client/client.go:154.2,156.17 2 37 +github.com/tidepool-org/platform/client/client.go:159.116,162.49 2 33 +github.com/tidepool-org/platform/client/client.go:162.49,163.25 1 13 +github.com/tidepool-org/platform/client/client.go:164.54,166.19 2 4 +github.com/tidepool-org/platform/client/client.go:167.11,168.24 1 9 +github.com/tidepool-org/platform/client/client.go:172.2,176.79 3 20 +github.com/tidepool-org/platform/client/client.go:176.79,178.3 1 0 +github.com/tidepool-org/platform/client/client.go:178.8,178.28 1 20 +github.com/tidepool-org/platform/client/client.go:178.28,180.3 1 1 +github.com/tidepool-org/platform/client/client.go:180.8,180.85 1 19 +github.com/tidepool-org/platform/client/client.go:180.85,182.3 1 12 +github.com/tidepool-org/platform/client/client.go:182.8,182.38 1 7 +github.com/tidepool-org/platform/client/client.go:182.38,184.3 1 1 +github.com/tidepool-org/platform/client/client.go:186.2,186.31 1 20 +github.com/tidepool-org/platform/client/client.go:186.31,188.3 1 14 +github.com/tidepool-org/platform/client/client.go:190.2,192.41 2 20 +github.com/tidepool-org/platform/client/client.go:193.35,194.30 1 2 +github.com/tidepool-org/platform/client/client.go:195.40,196.36 1 2 +github.com/tidepool-org/platform/client/client.go:197.43,198.38 1 2 +github.com/tidepool-org/platform/client/client.go:201.2,201.32 1 20 +github.com/tidepool-org/platform/client/client.go:204.71,205.24 1 14 +github.com/tidepool-org/platform/client/client.go:206.29,207.35 1 2 +github.com/tidepool-org/platform/client/client.go:208.31,209.40 1 2 +github.com/tidepool-org/platform/client/client.go:210.28,211.37 1 2 +github.com/tidepool-org/platform/client/client.go:212.27,213.41 1 2 +github.com/tidepool-org/platform/client/client.go:214.40,215.41 1 2 +github.com/tidepool-org/platform/client/client.go:216.34,217.40 1 2 +github.com/tidepool-org/platform/client/client.go:218.10,219.51 1 2 +github.com/tidepool-org/platform/client/client.go:223.54,224.23 1 13 +github.com/tidepool-org/platform/client/client.go:224.23,226.3 1 12 +github.com/tidepool-org/platform/client/client.go:227.2,227.14 1 1 +github.com/tidepool-org/platform/client/client.go:230.42,233.2 2 32 +github.com/tidepool-org/platform/client/config.go:17.26,19.2 1 76 +github.com/tidepool-org/platform/client/config.go:21.61,22.27 1 4 +github.com/tidepool-org/platform/client/config.go:22.27,24.3 1 1 +github.com/tidepool-org/platform/client/config.go:26.2,29.12 3 3 +github.com/tidepool-org/platform/client/config.go:32.35,33.21 1 69 +github.com/tidepool-org/platform/client/config.go:33.21,35.3 1 2 +github.com/tidepool-org/platform/client/config.go:35.8,35.55 1 67 +github.com/tidepool-org/platform/client/config.go:35.55,37.3 1 1 +github.com/tidepool-org/platform/client/config.go:38.2,38.23 1 66 +github.com/tidepool-org/platform/client/config.go:38.23,40.3 1 1 +github.com/tidepool-org/platform/client/config.go:42.2,42.12 1 65 diff --git a/vendor/github.com/tidepool-org/platform/config/config.coverprofile b/vendor/github.com/tidepool-org/platform/config/config.coverprofile new file mode 100644 index 000000000..16c5307d6 --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/config/config.coverprofile @@ -0,0 +1,6 @@ +mode: atomic +github.com/tidepool-org/platform/config/config.go:18.44,20.45 2 8 +github.com/tidepool-org/platform/config/config.go:20.45,21.46 1 19 +github.com/tidepool-org/platform/config/config.go:21.46,23.4 1 8 +github.com/tidepool-org/platform/config/config.go:25.2,25.13 1 8 +github.com/tidepool-org/platform/config/errors.go:7.41,9.2 1 1 diff --git a/vendor/github.com/tidepool-org/platform/config/cover.out b/vendor/github.com/tidepool-org/platform/config/cover.out new file mode 100644 index 000000000..16c5307d6 --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/config/cover.out @@ -0,0 +1,6 @@ +mode: atomic +github.com/tidepool-org/platform/config/config.go:18.44,20.45 2 8 +github.com/tidepool-org/platform/config/config.go:20.45,21.46 1 19 +github.com/tidepool-org/platform/config/config.go:21.46,23.4 1 8 +github.com/tidepool-org/platform/config/config.go:25.2,25.13 1 8 +github.com/tidepool-org/platform/config/errors.go:7.41,9.2 1 1 diff --git a/vendor/github.com/tidepool-org/platform/crypto/cover.out b/vendor/github.com/tidepool-org/platform/crypto/cover.out new file mode 100644 index 000000000..d9d90a3d0 --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/crypto/cover.out @@ -0,0 +1,48 @@ +mode: atomic +github.com/tidepool-org/platform/crypto/crypto.go:15.48,18.2 2 4 +github.com/tidepool-org/platform/crypto/crypto.go:20.53,22.2 1 5 +github.com/tidepool-org/platform/crypto/crypto.go:24.89,26.2 1 5 +github.com/tidepool-org/platform/crypto/crypto.go:28.55,29.17 1 15 +github.com/tidepool-org/platform/crypto/crypto.go:29.17,31.3 1 3 +github.com/tidepool-org/platform/crypto/crypto.go:31.8,31.77 1 12 +github.com/tidepool-org/platform/crypto/crypto.go:31.77,33.3 1 3 +github.com/tidepool-org/platform/crypto/crypto.go:33.8,33.29 1 9 +github.com/tidepool-org/platform/crypto/crypto.go:33.29,35.3 1 6 +github.com/tidepool-org/platform/crypto/crypto.go:36.2,36.12 1 3 +github.com/tidepool-org/platform/crypto/crypto.go:39.73,41.2 1 14 +github.com/tidepool-org/platform/crypto/crypto.go:43.52,46.2 2 4 +github.com/tidepool-org/platform/crypto/crypto.go:48.94,49.15 1 24 +github.com/tidepool-org/platform/crypto/crypto.go:49.15,50.31 1 24 +github.com/tidepool-org/platform/crypto/crypto.go:50.31,52.4 1 0 +github.com/tidepool-org/platform/crypto/crypto.go:55.2,55.21 1 24 +github.com/tidepool-org/platform/crypto/crypto.go:55.21,57.3 1 2 +github.com/tidepool-org/platform/crypto/crypto.go:58.2,58.26 1 22 +github.com/tidepool-org/platform/crypto/crypto.go:58.26,60.3 1 2 +github.com/tidepool-org/platform/crypto/crypto.go:62.2,63.42 2 20 +github.com/tidepool-org/platform/crypto/crypto.go:66.94,67.15 1 24 +github.com/tidepool-org/platform/crypto/crypto.go:67.15,68.31 1 24 +github.com/tidepool-org/platform/crypto/crypto.go:68.31,70.4 1 0 +github.com/tidepool-org/platform/crypto/crypto.go:73.2,73.21 1 24 +github.com/tidepool-org/platform/crypto/crypto.go:73.21,75.3 1 2 +github.com/tidepool-org/platform/crypto/crypto.go:76.2,76.26 1 22 +github.com/tidepool-org/platform/crypto/crypto.go:76.26,78.3 1 2 +github.com/tidepool-org/platform/crypto/crypto.go:80.2,81.42 2 20 +github.com/tidepool-org/platform/crypto/crypto.go:84.77,86.16 2 20 +github.com/tidepool-org/platform/crypto/crypto.go:86.16,88.3 1 0 +github.com/tidepool-org/platform/crypto/crypto.go:90.2,93.28 4 20 +github.com/tidepool-org/platform/crypto/crypto.go:96.77,98.16 2 20 +github.com/tidepool-org/platform/crypto/crypto.go:98.16,100.3 1 0 +github.com/tidepool-org/platform/crypto/crypto.go:102.2,104.49 3 20 +github.com/tidepool-org/platform/crypto/crypto.go:107.50,112.2 4 120 +github.com/tidepool-org/platform/crypto/crypto.go:114.41,118.2 3 120 +github.com/tidepool-org/platform/crypto/crypto.go:120.45,122.25 2 20 +github.com/tidepool-org/platform/crypto/crypto.go:122.25,124.3 1 1 +github.com/tidepool-org/platform/crypto/crypto.go:126.2,129.37 4 19 +github.com/tidepool-org/platform/crypto/crypto.go:129.37,131.3 1 168 +github.com/tidepool-org/platform/crypto/crypto.go:132.2,132.20 1 19 +github.com/tidepool-org/platform/crypto/crypto.go:135.47,137.37 2 20 +github.com/tidepool-org/platform/crypto/crypto.go:137.37,139.3 1 1 +github.com/tidepool-org/platform/crypto/crypto.go:141.2,141.42 1 19 +github.com/tidepool-org/platform/crypto/crypto.go:144.67,147.25 3 40 +github.com/tidepool-org/platform/crypto/crypto.go:147.25,150.3 2 120 +github.com/tidepool-org/platform/crypto/crypto.go:151.2,151.37 1 40 diff --git a/vendor/github.com/tidepool-org/platform/crypto/crypto.coverprofile b/vendor/github.com/tidepool-org/platform/crypto/crypto.coverprofile new file mode 100644 index 000000000..d9d90a3d0 --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/crypto/crypto.coverprofile @@ -0,0 +1,48 @@ +mode: atomic +github.com/tidepool-org/platform/crypto/crypto.go:15.48,18.2 2 4 +github.com/tidepool-org/platform/crypto/crypto.go:20.53,22.2 1 5 +github.com/tidepool-org/platform/crypto/crypto.go:24.89,26.2 1 5 +github.com/tidepool-org/platform/crypto/crypto.go:28.55,29.17 1 15 +github.com/tidepool-org/platform/crypto/crypto.go:29.17,31.3 1 3 +github.com/tidepool-org/platform/crypto/crypto.go:31.8,31.77 1 12 +github.com/tidepool-org/platform/crypto/crypto.go:31.77,33.3 1 3 +github.com/tidepool-org/platform/crypto/crypto.go:33.8,33.29 1 9 +github.com/tidepool-org/platform/crypto/crypto.go:33.29,35.3 1 6 +github.com/tidepool-org/platform/crypto/crypto.go:36.2,36.12 1 3 +github.com/tidepool-org/platform/crypto/crypto.go:39.73,41.2 1 14 +github.com/tidepool-org/platform/crypto/crypto.go:43.52,46.2 2 4 +github.com/tidepool-org/platform/crypto/crypto.go:48.94,49.15 1 24 +github.com/tidepool-org/platform/crypto/crypto.go:49.15,50.31 1 24 +github.com/tidepool-org/platform/crypto/crypto.go:50.31,52.4 1 0 +github.com/tidepool-org/platform/crypto/crypto.go:55.2,55.21 1 24 +github.com/tidepool-org/platform/crypto/crypto.go:55.21,57.3 1 2 +github.com/tidepool-org/platform/crypto/crypto.go:58.2,58.26 1 22 +github.com/tidepool-org/platform/crypto/crypto.go:58.26,60.3 1 2 +github.com/tidepool-org/platform/crypto/crypto.go:62.2,63.42 2 20 +github.com/tidepool-org/platform/crypto/crypto.go:66.94,67.15 1 24 +github.com/tidepool-org/platform/crypto/crypto.go:67.15,68.31 1 24 +github.com/tidepool-org/platform/crypto/crypto.go:68.31,70.4 1 0 +github.com/tidepool-org/platform/crypto/crypto.go:73.2,73.21 1 24 +github.com/tidepool-org/platform/crypto/crypto.go:73.21,75.3 1 2 +github.com/tidepool-org/platform/crypto/crypto.go:76.2,76.26 1 22 +github.com/tidepool-org/platform/crypto/crypto.go:76.26,78.3 1 2 +github.com/tidepool-org/platform/crypto/crypto.go:80.2,81.42 2 20 +github.com/tidepool-org/platform/crypto/crypto.go:84.77,86.16 2 20 +github.com/tidepool-org/platform/crypto/crypto.go:86.16,88.3 1 0 +github.com/tidepool-org/platform/crypto/crypto.go:90.2,93.28 4 20 +github.com/tidepool-org/platform/crypto/crypto.go:96.77,98.16 2 20 +github.com/tidepool-org/platform/crypto/crypto.go:98.16,100.3 1 0 +github.com/tidepool-org/platform/crypto/crypto.go:102.2,104.49 3 20 +github.com/tidepool-org/platform/crypto/crypto.go:107.50,112.2 4 120 +github.com/tidepool-org/platform/crypto/crypto.go:114.41,118.2 3 120 +github.com/tidepool-org/platform/crypto/crypto.go:120.45,122.25 2 20 +github.com/tidepool-org/platform/crypto/crypto.go:122.25,124.3 1 1 +github.com/tidepool-org/platform/crypto/crypto.go:126.2,129.37 4 19 +github.com/tidepool-org/platform/crypto/crypto.go:129.37,131.3 1 168 +github.com/tidepool-org/platform/crypto/crypto.go:132.2,132.20 1 19 +github.com/tidepool-org/platform/crypto/crypto.go:135.47,137.37 2 20 +github.com/tidepool-org/platform/crypto/crypto.go:137.37,139.3 1 1 +github.com/tidepool-org/platform/crypto/crypto.go:141.2,141.42 1 19 +github.com/tidepool-org/platform/crypto/crypto.go:144.67,147.25 3 40 +github.com/tidepool-org/platform/crypto/crypto.go:147.25,150.3 2 120 +github.com/tidepool-org/platform/crypto/crypto.go:151.2,151.37 1 40 diff --git a/vendor/github.com/tidepool-org/platform/data/blood/glucose/cover.out b/vendor/github.com/tidepool-org/platform/data/blood/glucose/cover.out new file mode 100644 index 000000000..a4f1961e5 --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/data/blood/glucose/cover.out @@ -0,0 +1,58 @@ +mode: atomic +github.com/tidepool-org/platform/data/blood/glucose/glucose.go:33.23,35.2 1 1 +github.com/tidepool-org/platform/data/blood/glucose/glucose.go:37.59,38.18 1 98 +github.com/tidepool-org/platform/data/blood/glucose/glucose.go:38.18,39.17 1 95 +github.com/tidepool-org/platform/data/blood/glucose/glucose.go:40.21,41.37 1 46 +github.com/tidepool-org/platform/data/blood/glucose/glucose.go:42.19,43.35 1 46 +github.com/tidepool-org/platform/data/blood/glucose/glucose.go:46.2,46.42 1 6 +github.com/tidepool-org/platform/data/blood/glucose/glucose.go:49.44,50.18 1 6 +github.com/tidepool-org/platform/data/blood/glucose/glucose.go:50.18,51.17 1 5 +github.com/tidepool-org/platform/data/blood/glucose/glucose.go:52.33,53.36 1 4 +github.com/tidepool-org/platform/data/blood/glucose/glucose.go:56.2,56.14 1 2 +github.com/tidepool-org/platform/data/blood/glucose/glucose.go:59.69,60.34 1 1606 +github.com/tidepool-org/platform/data/blood/glucose/glucose.go:60.34,61.17 1 1576 +github.com/tidepool-org/platform/data/blood/glucose/glucose.go:62.19,65.22 3 1011 +github.com/tidepool-org/platform/data/blood/glucose/glucose.go:68.2,68.14 1 595 +github.com/tidepool-org/platform/data/blood/glucose/target.go:17.57,18.22 1 0 +github.com/tidepool-org/platform/data/blood/glucose/target.go:18.22,20.3 1 0 +github.com/tidepool-org/platform/data/blood/glucose/target.go:21.2,23.14 3 0 +github.com/tidepool-org/platform/data/blood/glucose/target.go:26.26,28.2 1 113 +github.com/tidepool-org/platform/data/blood/glucose/target.go:30.55,35.2 4 0 +github.com/tidepool-org/platform/data/blood/glucose/target.go:37.73,38.39 1 88 +github.com/tidepool-org/platform/data/blood/glucose/target.go:38.39,43.3 4 24 +github.com/tidepool-org/platform/data/blood/glucose/target.go:43.8,43.45 1 64 +github.com/tidepool-org/platform/data/blood/glucose/target.go:43.45,48.3 4 22 +github.com/tidepool-org/platform/data/blood/glucose/target.go:48.8,48.28 1 42 +github.com/tidepool-org/platform/data/blood/glucose/target.go:48.28,53.3 4 18 +github.com/tidepool-org/platform/data/blood/glucose/target.go:53.8,53.42 1 24 +github.com/tidepool-org/platform/data/blood/glucose/target.go:53.42,58.3 4 16 +github.com/tidepool-org/platform/data/blood/glucose/target.go:58.8,58.25 1 8 +github.com/tidepool-org/platform/data/blood/glucose/target.go:58.25,60.3 1 4 +github.com/tidepool-org/platform/data/blood/glucose/target.go:60.8,62.3 1 4 +github.com/tidepool-org/platform/data/blood/glucose/target.go:65.71,66.53 1 12 +github.com/tidepool-org/platform/data/blood/glucose/target.go:66.53,71.3 4 12 +github.com/tidepool-org/platform/data/blood/glucose/target.go:81.38,82.39 1 0 +github.com/tidepool-org/platform/data/blood/glucose/target.go:82.39,87.3 1 0 +github.com/tidepool-org/platform/data/blood/glucose/target.go:87.8,87.45 1 0 +github.com/tidepool-org/platform/data/blood/glucose/target.go:87.45,92.3 1 0 +github.com/tidepool-org/platform/data/blood/glucose/target.go:92.8,92.28 1 0 +github.com/tidepool-org/platform/data/blood/glucose/target.go:92.28,97.3 1 0 +github.com/tidepool-org/platform/data/blood/glucose/target.go:97.8,97.42 1 0 +github.com/tidepool-org/platform/data/blood/glucose/target.go:97.42,102.3 1 0 +github.com/tidepool-org/platform/data/blood/glucose/target.go:104.2,104.12 1 0 +github.com/tidepool-org/platform/data/blood/glucose/target.go:107.71,108.18 1 68 +github.com/tidepool-org/platform/data/blood/glucose/target.go:108.18,109.17 1 67 +github.com/tidepool-org/platform/data/blood/glucose/target.go:110.21,111.50 1 34 +github.com/tidepool-org/platform/data/blood/glucose/target.go:111.50,113.5 1 26 +github.com/tidepool-org/platform/data/blood/glucose/target.go:114.19,115.48 1 32 +github.com/tidepool-org/platform/data/blood/glucose/target.go:115.48,117.5 1 24 +github.com/tidepool-org/platform/data/blood/glucose/target.go:120.2,120.42 1 18 +github.com/tidepool-org/platform/data/blood/glucose/target.go:123.57,125.2 1 22 +github.com/tidepool-org/platform/data/blood/glucose/target.go:127.75,128.18 1 54 +github.com/tidepool-org/platform/data/blood/glucose/target.go:128.18,129.17 1 53 +github.com/tidepool-org/platform/data/blood/glucose/target.go:130.21,131.56 1 26 +github.com/tidepool-org/platform/data/blood/glucose/target.go:131.56,133.5 1 20 +github.com/tidepool-org/platform/data/blood/glucose/target.go:134.19,135.54 1 26 +github.com/tidepool-org/platform/data/blood/glucose/target.go:135.54,137.5 1 20 +github.com/tidepool-org/platform/data/blood/glucose/target.go:140.2,140.42 1 14 +github.com/tidepool-org/platform/data/blood/glucose/target.go:143.60,145.2 1 70 diff --git a/vendor/github.com/tidepool-org/platform/data/blood/glucose/glucose.coverprofile b/vendor/github.com/tidepool-org/platform/data/blood/glucose/glucose.coverprofile new file mode 100644 index 000000000..6937927ec --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/data/blood/glucose/glucose.coverprofile @@ -0,0 +1,58 @@ +mode: atomic +github.com/tidepool-org/platform/data/blood/glucose/glucose.go:26.23,28.2 1 1 +github.com/tidepool-org/platform/data/blood/glucose/glucose.go:30.59,31.18 1 98 +github.com/tidepool-org/platform/data/blood/glucose/glucose.go:31.18,32.17 1 95 +github.com/tidepool-org/platform/data/blood/glucose/glucose.go:33.21,34.37 1 46 +github.com/tidepool-org/platform/data/blood/glucose/glucose.go:35.19,36.35 1 46 +github.com/tidepool-org/platform/data/blood/glucose/glucose.go:39.2,39.42 1 6 +github.com/tidepool-org/platform/data/blood/glucose/glucose.go:42.44,43.18 1 6 +github.com/tidepool-org/platform/data/blood/glucose/glucose.go:43.18,44.17 1 5 +github.com/tidepool-org/platform/data/blood/glucose/glucose.go:45.33,46.36 1 4 +github.com/tidepool-org/platform/data/blood/glucose/glucose.go:49.2,49.14 1 2 +github.com/tidepool-org/platform/data/blood/glucose/glucose.go:52.69,53.34 1 1606 +github.com/tidepool-org/platform/data/blood/glucose/glucose.go:53.34,54.17 1 1576 +github.com/tidepool-org/platform/data/blood/glucose/glucose.go:55.19,58.22 3 1011 +github.com/tidepool-org/platform/data/blood/glucose/glucose.go:61.2,61.14 1 595 +github.com/tidepool-org/platform/data/blood/glucose/target.go:17.57,18.22 1 0 +github.com/tidepool-org/platform/data/blood/glucose/target.go:18.22,20.3 1 0 +github.com/tidepool-org/platform/data/blood/glucose/target.go:21.2,23.14 3 0 +github.com/tidepool-org/platform/data/blood/glucose/target.go:26.26,28.2 1 113 +github.com/tidepool-org/platform/data/blood/glucose/target.go:30.55,35.2 4 0 +github.com/tidepool-org/platform/data/blood/glucose/target.go:37.73,38.39 1 88 +github.com/tidepool-org/platform/data/blood/glucose/target.go:38.39,43.3 4 24 +github.com/tidepool-org/platform/data/blood/glucose/target.go:43.8,43.45 1 64 +github.com/tidepool-org/platform/data/blood/glucose/target.go:43.45,48.3 4 22 +github.com/tidepool-org/platform/data/blood/glucose/target.go:48.8,48.28 1 42 +github.com/tidepool-org/platform/data/blood/glucose/target.go:48.28,53.3 4 18 +github.com/tidepool-org/platform/data/blood/glucose/target.go:53.8,53.42 1 24 +github.com/tidepool-org/platform/data/blood/glucose/target.go:53.42,58.3 4 16 +github.com/tidepool-org/platform/data/blood/glucose/target.go:58.8,58.25 1 8 +github.com/tidepool-org/platform/data/blood/glucose/target.go:58.25,60.3 1 4 +github.com/tidepool-org/platform/data/blood/glucose/target.go:60.8,62.3 1 4 +github.com/tidepool-org/platform/data/blood/glucose/target.go:65.71,66.53 1 12 +github.com/tidepool-org/platform/data/blood/glucose/target.go:66.53,71.3 4 12 +github.com/tidepool-org/platform/data/blood/glucose/target.go:81.38,82.39 1 0 +github.com/tidepool-org/platform/data/blood/glucose/target.go:82.39,87.3 1 0 +github.com/tidepool-org/platform/data/blood/glucose/target.go:87.8,87.45 1 0 +github.com/tidepool-org/platform/data/blood/glucose/target.go:87.45,92.3 1 0 +github.com/tidepool-org/platform/data/blood/glucose/target.go:92.8,92.28 1 0 +github.com/tidepool-org/platform/data/blood/glucose/target.go:92.28,97.3 1 0 +github.com/tidepool-org/platform/data/blood/glucose/target.go:97.8,97.42 1 0 +github.com/tidepool-org/platform/data/blood/glucose/target.go:97.42,102.3 1 0 +github.com/tidepool-org/platform/data/blood/glucose/target.go:104.2,104.12 1 0 +github.com/tidepool-org/platform/data/blood/glucose/target.go:107.71,108.18 1 68 +github.com/tidepool-org/platform/data/blood/glucose/target.go:108.18,109.17 1 67 +github.com/tidepool-org/platform/data/blood/glucose/target.go:110.21,111.50 1 34 +github.com/tidepool-org/platform/data/blood/glucose/target.go:111.50,113.5 1 26 +github.com/tidepool-org/platform/data/blood/glucose/target.go:114.19,115.48 1 32 +github.com/tidepool-org/platform/data/blood/glucose/target.go:115.48,117.5 1 24 +github.com/tidepool-org/platform/data/blood/glucose/target.go:120.2,120.42 1 18 +github.com/tidepool-org/platform/data/blood/glucose/target.go:123.57,125.2 1 22 +github.com/tidepool-org/platform/data/blood/glucose/target.go:127.75,128.18 1 54 +github.com/tidepool-org/platform/data/blood/glucose/target.go:128.18,129.17 1 53 +github.com/tidepool-org/platform/data/blood/glucose/target.go:130.21,131.56 1 26 +github.com/tidepool-org/platform/data/blood/glucose/target.go:131.56,133.5 1 20 +github.com/tidepool-org/platform/data/blood/glucose/target.go:134.19,135.54 1 26 +github.com/tidepool-org/platform/data/blood/glucose/target.go:135.54,137.5 1 20 +github.com/tidepool-org/platform/data/blood/glucose/target.go:140.2,140.42 1 14 +github.com/tidepool-org/platform/data/blood/glucose/target.go:143.60,145.2 1 70 diff --git a/vendor/github.com/tidepool-org/platform/data/cover.out b/vendor/github.com/tidepool-org/platform/data/cover.out new file mode 100644 index 000000000..c1f73f188 --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/data/cover.out @@ -0,0 +1,103 @@ +mode: atomic +github.com/tidepool-org/platform/data/data.go:21.73,22.22 1 0 +github.com/tidepool-org/platform/data/data.go:22.22,24.3 1 0 +github.com/tidepool-org/platform/data/data.go:25.2,27.14 3 0 +github.com/tidepool-org/platform/data/data.go:30.42,32.2 1 0 +github.com/tidepool-org/platform/data/data.go:34.63,36.2 1 0 +github.com/tidepool-org/platform/data/data.go:38.66,40.2 1 0 +github.com/tidepool-org/platform/data/data.go:47.61,48.22 1 0 +github.com/tidepool-org/platform/data/data.go:48.22,50.3 1 0 +github.com/tidepool-org/platform/data/data.go:51.2,53.14 3 0 +github.com/tidepool-org/platform/data/data.go:56.30,58.2 1 0 +github.com/tidepool-org/platform/data/data.go:60.57,63.2 2 0 +github.com/tidepool-org/platform/data/data.go:65.60,66.40 1 0 +github.com/tidepool-org/platform/data/data.go:66.40,68.3 1 0 +github.com/tidepool-org/platform/data/data.go:68.8,68.24 1 0 +github.com/tidepool-org/platform/data/data.go:68.24,70.3 1 0 +github.com/tidepool-org/platform/data/data.go:70.8,72.3 1 0 +github.com/tidepool-org/platform/data/data.go:77.62,78.22 1 0 +github.com/tidepool-org/platform/data/data.go:78.22,80.3 1 0 +github.com/tidepool-org/platform/data/data.go:81.2,83.14 3 0 +github.com/tidepool-org/platform/data/data.go:86.32,88.2 1 0 +github.com/tidepool-org/platform/data/data.go:90.57,91.48 1 0 +github.com/tidepool-org/platform/data/data.go:91.48,93.3 1 0 +github.com/tidepool-org/platform/data/data.go:96.61,97.18 1 0 +github.com/tidepool-org/platform/data/data.go:97.18,99.3 1 0 +github.com/tidepool-org/platform/data/data.go:100.2,100.34 1 0 +github.com/tidepool-org/platform/data/data.go:100.34,101.89 1 0 +github.com/tidepool-org/platform/data/data.go:101.89,103.4 1 0 +github.com/tidepool-org/platform/data/data.go:103.9,105.4 1 0 +github.com/tidepool-org/platform/data/data.go:109.21,111.2 1 3 +github.com/tidepool-org/platform/data/data.go:113.35,115.2 1 8 +github.com/tidepool-org/platform/data/data.go:117.71,119.2 1 8 +github.com/tidepool-org/platform/data/data.go:121.37,122.17 1 24 +github.com/tidepool-org/platform/data/data.go:122.17,124.3 1 3 +github.com/tidepool-org/platform/data/data.go:124.8,124.45 1 21 +github.com/tidepool-org/platform/data/data.go:124.45,126.3 1 15 +github.com/tidepool-org/platform/data/data.go:127.2,127.12 1 6 +github.com/tidepool-org/platform/data/data.go:130.55,132.2 1 22 +github.com/tidepool-org/platform/data/data_set.go:52.30,57.2 1 0 +github.com/tidepool-org/platform/data/data_set.go:59.31,64.2 1 0 +github.com/tidepool-org/platform/data/data_set.go:66.28,72.2 1 0 +github.com/tidepool-org/platform/data/data_set.go:74.33,80.2 1 0 +github.com/tidepool-org/platform/data/data_set.go:91.40,93.2 1 0 +github.com/tidepool-org/platform/data/data_set.go:95.62,96.46 1 0 +github.com/tidepool-org/platform/data/data_set.go:96.46,98.3 1 0 +github.com/tidepool-org/platform/data/data_set.go:99.2,99.49 1 0 +github.com/tidepool-org/platform/data/data_set.go:99.49,101.3 1 0 +github.com/tidepool-org/platform/data/data_set.go:102.2,102.49 1 0 +github.com/tidepool-org/platform/data/data_set.go:102.49,104.3 1 0 +github.com/tidepool-org/platform/data/data_set.go:107.65,110.2 2 0 +github.com/tidepool-org/platform/data/data_set.go:118.40,120.2 1 0 +github.com/tidepool-org/platform/data/data_set.go:122.62,126.2 3 0 +github.com/tidepool-org/platform/data/data_set.go:128.65,131.2 2 0 +github.com/tidepool-org/platform/data/data_set.go:133.64,135.25 2 0 +github.com/tidepool-org/platform/data/data_set.go:135.25,137.3 1 0 +github.com/tidepool-org/platform/data/data_set.go:138.2,138.22 1 0 +github.com/tidepool-org/platform/data/data_set.go:138.22,140.3 1 0 +github.com/tidepool-org/platform/data/data_set.go:141.2,141.23 1 0 +github.com/tidepool-org/platform/data/data_set.go:141.23,143.3 1 0 +github.com/tidepool-org/platform/data/data_set.go:144.2,144.68 1 0 +github.com/tidepool-org/platform/data/data_set.go:163.40,167.2 1 0 +github.com/tidepool-org/platform/data/data_set.go:169.62,170.87 1 0 +github.com/tidepool-org/platform/data/data_set.go:170.87,174.3 3 0 +github.com/tidepool-org/platform/data/data_set.go:175.2,185.49 11 0 +github.com/tidepool-org/platform/data/data_set.go:188.65,189.21 1 0 +github.com/tidepool-org/platform/data/data_set.go:189.21,191.3 1 0 +github.com/tidepool-org/platform/data/data_set.go:192.2,193.27 2 0 +github.com/tidepool-org/platform/data/data_set.go:193.27,195.3 1 0 +github.com/tidepool-org/platform/data/data_set.go:196.2,204.74 9 0 +github.com/tidepool-org/platform/data/data_set.go:207.68,208.27 1 0 +github.com/tidepool-org/platform/data/data_set.go:208.27,210.3 1 0 +github.com/tidepool-org/platform/data/data_set.go:211.2,211.34 1 0 +github.com/tidepool-org/platform/data/data_set.go:211.34,213.3 1 0 +github.com/tidepool-org/platform/data/data_set.go:214.2,214.25 1 0 +github.com/tidepool-org/platform/data/data_set.go:214.25,216.3 1 0 +github.com/tidepool-org/platform/data/data_set.go:231.40,233.2 1 0 +github.com/tidepool-org/platform/data/data_set.go:235.62,243.2 7 0 +github.com/tidepool-org/platform/data/data_set.go:245.65,253.2 7 0 +github.com/tidepool-org/platform/data/data_set.go:255.40,258.2 1 0 +github.com/tidepool-org/platform/data/data_set.go:260.24,262.2 1 3 +github.com/tidepool-org/platform/data/data_set.go:264.38,266.2 1 14 +github.com/tidepool-org/platform/data/data_set.go:268.74,270.2 1 14 +github.com/tidepool-org/platform/data/data_set.go:272.40,273.17 1 42 +github.com/tidepool-org/platform/data/data_set.go:273.17,275.3 1 3 +github.com/tidepool-org/platform/data/data_set.go:275.8,275.48 1 39 +github.com/tidepool-org/platform/data/data_set.go:275.48,277.3 1 30 +github.com/tidepool-org/platform/data/data_set.go:278.2,278.12 1 9 +github.com/tidepool-org/platform/data/data_set.go:281.58,283.2 1 42 +github.com/tidepool-org/platform/data/datum.go:41.41,43.2 1 0 +github.com/tidepool-org/platform/data/datum.go:47.38,48.26 1 0 +github.com/tidepool-org/platform/data/datum.go:48.26,50.3 1 0 +github.com/tidepool-org/platform/data/datum.go:53.56,54.26 1 0 +github.com/tidepool-org/platform/data/datum.go:54.26,56.3 1 0 +github.com/tidepool-org/platform/data/deduplicator.go:14.89,15.22 1 0 +github.com/tidepool-org/platform/data/deduplicator.go:15.22,17.3 1 0 +github.com/tidepool-org/platform/data/deduplicator.go:18.2,20.14 3 0 +github.com/tidepool-org/platform/data/deduplicator.go:23.58,25.2 1 39 +github.com/tidepool-org/platform/data/deduplicator.go:27.71,29.2 1 0 +github.com/tidepool-org/platform/data/deduplicator.go:31.74,35.2 3 13 +github.com/tidepool-org/platform/data/deduplicator.go:37.78,37.79 0 4 +github.com/tidepool-org/platform/data/deduplicator.go:39.78,39.79 0 4 +github.com/tidepool-org/platform/data/deduplicator.go:41.49,43.2 1 3 +github.com/tidepool-org/platform/data/deduplicator.go:45.65,47.2 1 4 diff --git a/vendor/github.com/tidepool-org/platform/data/data.coverprofile b/vendor/github.com/tidepool-org/platform/data/data.coverprofile new file mode 100644 index 000000000..c1f73f188 --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/data/data.coverprofile @@ -0,0 +1,103 @@ +mode: atomic +github.com/tidepool-org/platform/data/data.go:21.73,22.22 1 0 +github.com/tidepool-org/platform/data/data.go:22.22,24.3 1 0 +github.com/tidepool-org/platform/data/data.go:25.2,27.14 3 0 +github.com/tidepool-org/platform/data/data.go:30.42,32.2 1 0 +github.com/tidepool-org/platform/data/data.go:34.63,36.2 1 0 +github.com/tidepool-org/platform/data/data.go:38.66,40.2 1 0 +github.com/tidepool-org/platform/data/data.go:47.61,48.22 1 0 +github.com/tidepool-org/platform/data/data.go:48.22,50.3 1 0 +github.com/tidepool-org/platform/data/data.go:51.2,53.14 3 0 +github.com/tidepool-org/platform/data/data.go:56.30,58.2 1 0 +github.com/tidepool-org/platform/data/data.go:60.57,63.2 2 0 +github.com/tidepool-org/platform/data/data.go:65.60,66.40 1 0 +github.com/tidepool-org/platform/data/data.go:66.40,68.3 1 0 +github.com/tidepool-org/platform/data/data.go:68.8,68.24 1 0 +github.com/tidepool-org/platform/data/data.go:68.24,70.3 1 0 +github.com/tidepool-org/platform/data/data.go:70.8,72.3 1 0 +github.com/tidepool-org/platform/data/data.go:77.62,78.22 1 0 +github.com/tidepool-org/platform/data/data.go:78.22,80.3 1 0 +github.com/tidepool-org/platform/data/data.go:81.2,83.14 3 0 +github.com/tidepool-org/platform/data/data.go:86.32,88.2 1 0 +github.com/tidepool-org/platform/data/data.go:90.57,91.48 1 0 +github.com/tidepool-org/platform/data/data.go:91.48,93.3 1 0 +github.com/tidepool-org/platform/data/data.go:96.61,97.18 1 0 +github.com/tidepool-org/platform/data/data.go:97.18,99.3 1 0 +github.com/tidepool-org/platform/data/data.go:100.2,100.34 1 0 +github.com/tidepool-org/platform/data/data.go:100.34,101.89 1 0 +github.com/tidepool-org/platform/data/data.go:101.89,103.4 1 0 +github.com/tidepool-org/platform/data/data.go:103.9,105.4 1 0 +github.com/tidepool-org/platform/data/data.go:109.21,111.2 1 3 +github.com/tidepool-org/platform/data/data.go:113.35,115.2 1 8 +github.com/tidepool-org/platform/data/data.go:117.71,119.2 1 8 +github.com/tidepool-org/platform/data/data.go:121.37,122.17 1 24 +github.com/tidepool-org/platform/data/data.go:122.17,124.3 1 3 +github.com/tidepool-org/platform/data/data.go:124.8,124.45 1 21 +github.com/tidepool-org/platform/data/data.go:124.45,126.3 1 15 +github.com/tidepool-org/platform/data/data.go:127.2,127.12 1 6 +github.com/tidepool-org/platform/data/data.go:130.55,132.2 1 22 +github.com/tidepool-org/platform/data/data_set.go:52.30,57.2 1 0 +github.com/tidepool-org/platform/data/data_set.go:59.31,64.2 1 0 +github.com/tidepool-org/platform/data/data_set.go:66.28,72.2 1 0 +github.com/tidepool-org/platform/data/data_set.go:74.33,80.2 1 0 +github.com/tidepool-org/platform/data/data_set.go:91.40,93.2 1 0 +github.com/tidepool-org/platform/data/data_set.go:95.62,96.46 1 0 +github.com/tidepool-org/platform/data/data_set.go:96.46,98.3 1 0 +github.com/tidepool-org/platform/data/data_set.go:99.2,99.49 1 0 +github.com/tidepool-org/platform/data/data_set.go:99.49,101.3 1 0 +github.com/tidepool-org/platform/data/data_set.go:102.2,102.49 1 0 +github.com/tidepool-org/platform/data/data_set.go:102.49,104.3 1 0 +github.com/tidepool-org/platform/data/data_set.go:107.65,110.2 2 0 +github.com/tidepool-org/platform/data/data_set.go:118.40,120.2 1 0 +github.com/tidepool-org/platform/data/data_set.go:122.62,126.2 3 0 +github.com/tidepool-org/platform/data/data_set.go:128.65,131.2 2 0 +github.com/tidepool-org/platform/data/data_set.go:133.64,135.25 2 0 +github.com/tidepool-org/platform/data/data_set.go:135.25,137.3 1 0 +github.com/tidepool-org/platform/data/data_set.go:138.2,138.22 1 0 +github.com/tidepool-org/platform/data/data_set.go:138.22,140.3 1 0 +github.com/tidepool-org/platform/data/data_set.go:141.2,141.23 1 0 +github.com/tidepool-org/platform/data/data_set.go:141.23,143.3 1 0 +github.com/tidepool-org/platform/data/data_set.go:144.2,144.68 1 0 +github.com/tidepool-org/platform/data/data_set.go:163.40,167.2 1 0 +github.com/tidepool-org/platform/data/data_set.go:169.62,170.87 1 0 +github.com/tidepool-org/platform/data/data_set.go:170.87,174.3 3 0 +github.com/tidepool-org/platform/data/data_set.go:175.2,185.49 11 0 +github.com/tidepool-org/platform/data/data_set.go:188.65,189.21 1 0 +github.com/tidepool-org/platform/data/data_set.go:189.21,191.3 1 0 +github.com/tidepool-org/platform/data/data_set.go:192.2,193.27 2 0 +github.com/tidepool-org/platform/data/data_set.go:193.27,195.3 1 0 +github.com/tidepool-org/platform/data/data_set.go:196.2,204.74 9 0 +github.com/tidepool-org/platform/data/data_set.go:207.68,208.27 1 0 +github.com/tidepool-org/platform/data/data_set.go:208.27,210.3 1 0 +github.com/tidepool-org/platform/data/data_set.go:211.2,211.34 1 0 +github.com/tidepool-org/platform/data/data_set.go:211.34,213.3 1 0 +github.com/tidepool-org/platform/data/data_set.go:214.2,214.25 1 0 +github.com/tidepool-org/platform/data/data_set.go:214.25,216.3 1 0 +github.com/tidepool-org/platform/data/data_set.go:231.40,233.2 1 0 +github.com/tidepool-org/platform/data/data_set.go:235.62,243.2 7 0 +github.com/tidepool-org/platform/data/data_set.go:245.65,253.2 7 0 +github.com/tidepool-org/platform/data/data_set.go:255.40,258.2 1 0 +github.com/tidepool-org/platform/data/data_set.go:260.24,262.2 1 3 +github.com/tidepool-org/platform/data/data_set.go:264.38,266.2 1 14 +github.com/tidepool-org/platform/data/data_set.go:268.74,270.2 1 14 +github.com/tidepool-org/platform/data/data_set.go:272.40,273.17 1 42 +github.com/tidepool-org/platform/data/data_set.go:273.17,275.3 1 3 +github.com/tidepool-org/platform/data/data_set.go:275.8,275.48 1 39 +github.com/tidepool-org/platform/data/data_set.go:275.48,277.3 1 30 +github.com/tidepool-org/platform/data/data_set.go:278.2,278.12 1 9 +github.com/tidepool-org/platform/data/data_set.go:281.58,283.2 1 42 +github.com/tidepool-org/platform/data/datum.go:41.41,43.2 1 0 +github.com/tidepool-org/platform/data/datum.go:47.38,48.26 1 0 +github.com/tidepool-org/platform/data/datum.go:48.26,50.3 1 0 +github.com/tidepool-org/platform/data/datum.go:53.56,54.26 1 0 +github.com/tidepool-org/platform/data/datum.go:54.26,56.3 1 0 +github.com/tidepool-org/platform/data/deduplicator.go:14.89,15.22 1 0 +github.com/tidepool-org/platform/data/deduplicator.go:15.22,17.3 1 0 +github.com/tidepool-org/platform/data/deduplicator.go:18.2,20.14 3 0 +github.com/tidepool-org/platform/data/deduplicator.go:23.58,25.2 1 39 +github.com/tidepool-org/platform/data/deduplicator.go:27.71,29.2 1 0 +github.com/tidepool-org/platform/data/deduplicator.go:31.74,35.2 3 13 +github.com/tidepool-org/platform/data/deduplicator.go:37.78,37.79 0 4 +github.com/tidepool-org/platform/data/deduplicator.go:39.78,39.79 0 4 +github.com/tidepool-org/platform/data/deduplicator.go:41.49,43.2 1 3 +github.com/tidepool-org/platform/data/deduplicator.go:45.65,47.2 1 4 diff --git a/vendor/github.com/tidepool-org/platform/errors/cover.out b/vendor/github.com/tidepool-org/platform/errors/cover.out new file mode 100644 index 000000000..8ab7aaa9c --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/errors/cover.out @@ -0,0 +1,236 @@ +mode: atomic +github.com/tidepool-org/platform/errors/caller.go:18.35,19.57 1 12 +github.com/tidepool-org/platform/errors/caller.go:19.57,33.3 7 12 +github.com/tidepool-org/platform/errors/caller.go:34.2,34.12 1 0 +github.com/tidepool-org/platform/errors/caller.go:37.39,40.2 2 0 +github.com/tidepool-org/platform/errors/caller.go:42.36,45.2 2 0 +github.com/tidepool-org/platform/errors/caller.go:47.55,48.49 1 0 +github.com/tidepool-org/platform/errors/caller.go:48.49,50.3 1 0 +github.com/tidepool-org/platform/errors/caller.go:51.2,51.50 1 0 +github.com/tidepool-org/platform/errors/caller.go:51.50,53.3 1 0 +github.com/tidepool-org/platform/errors/caller.go:54.2,54.46 1 0 +github.com/tidepool-org/platform/errors/caller.go:54.46,56.3 1 0 +github.com/tidepool-org/platform/errors/caller.go:57.2,57.43 1 0 +github.com/tidepool-org/platform/errors/caller.go:57.43,59.3 1 0 +github.com/tidepool-org/platform/errors/caller.go:62.58,67.2 4 0 +github.com/tidepool-org/platform/errors/caller.go:69.62,69.63 0 0 +github.com/tidepool-org/platform/errors/caller.go:71.13,72.45 1 1 +github.com/tidepool-org/platform/errors/caller.go:72.45,74.3 1 1 +github.com/tidepool-org/platform/errors/errors.go:28.55,29.51 1 0 +github.com/tidepool-org/platform/errors/errors.go:29.51,31.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:32.2,32.49 1 0 +github.com/tidepool-org/platform/errors/errors.go:32.49,34.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:37.58,38.23 1 0 +github.com/tidepool-org/platform/errors/errors.go:38.23,40.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:43.62,43.63 0 0 +github.com/tidepool-org/platform/errors/errors.go:45.31,50.2 1 7 +github.com/tidepool-org/platform/errors/errors.go:52.50,57.2 1 1 +github.com/tidepool-org/platform/errors/errors.go:59.43,61.16 2 2 +github.com/tidepool-org/platform/errors/errors.go:61.16,65.3 1 1 +github.com/tidepool-org/platform/errors/errors.go:66.2,70.3 1 2 +github.com/tidepool-org/platform/errors/errors.go:73.62,75.16 2 2 +github.com/tidepool-org/platform/errors/errors.go:75.16,79.3 1 1 +github.com/tidepool-org/platform/errors/errors.go:80.2,84.3 1 2 +github.com/tidepool-org/platform/errors/errors.go:87.63,94.2 1 0 +github.com/tidepool-org/platform/errors/errors.go:96.82,103.2 1 0 +github.com/tidepool-org/platform/errors/errors.go:105.78,107.16 2 0 +github.com/tidepool-org/platform/errors/errors.go:107.16,111.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:112.2,118.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:121.97,123.16 2 0 +github.com/tidepool-org/platform/errors/errors.go:123.16,127.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:128.2,134.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:137.46,140.16 2 0 +github.com/tidepool-org/platform/errors/errors.go:140.16,143.39 3 0 +github.com/tidepool-org/platform/errors/errors.go:143.39,148.4 1 0 +github.com/tidepool-org/platform/errors/errors.go:151.2,151.41 1 0 +github.com/tidepool-org/platform/errors/errors.go:151.41,153.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:153.8,153.59 1 0 +github.com/tidepool-org/platform/errors/errors.go:153.59,163.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:163.8,163.23 1 0 +github.com/tidepool-org/platform/errors/errors.go:163.23,168.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:169.2,169.12 1 0 +github.com/tidepool-org/platform/errors/errors.go:172.50,173.41 1 0 +github.com/tidepool-org/platform/errors/errors.go:173.41,175.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:175.8,175.59 1 0 +github.com/tidepool-org/platform/errors/errors.go:175.59,185.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:185.8,185.23 1 0 +github.com/tidepool-org/platform/errors/errors.go:185.23,190.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:191.2,191.12 1 0 +github.com/tidepool-org/platform/errors/errors.go:194.29,195.52 1 0 +github.com/tidepool-org/platform/errors/errors.go:195.52,197.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:198.2,198.11 1 0 +github.com/tidepool-org/platform/errors/errors.go:201.29,202.110 1 0 +github.com/tidepool-org/platform/errors/errors.go:202.110,204.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:205.2,205.12 1 0 +github.com/tidepool-org/platform/errors/errors.go:208.34,210.27 2 3 +github.com/tidepool-org/platform/errors/errors.go:210.27,211.17 1 6 +github.com/tidepool-org/platform/errors/errors.go:211.17,213.4 1 6 +github.com/tidepool-org/platform/errors/errors.go:215.2,215.21 1 3 +github.com/tidepool-org/platform/errors/errors.go:216.9,217.13 1 0 +github.com/tidepool-org/platform/errors/errors.go:218.9,219.19 1 0 +github.com/tidepool-org/platform/errors/errors.go:220.10,223.4 1 3 +github.com/tidepool-org/platform/errors/errors.go:227.54,228.48 1 6 +github.com/tidepool-org/platform/errors/errors.go:228.48,230.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:230.8,230.59 1 6 +github.com/tidepool-org/platform/errors/errors.go:230.59,232.3 1 5 +github.com/tidepool-org/platform/errors/errors.go:232.8,232.23 1 1 +github.com/tidepool-org/platform/errors/errors.go:232.23,234.3 1 1 +github.com/tidepool-org/platform/errors/errors.go:235.2,235.15 1 0 +github.com/tidepool-org/platform/errors/errors.go:238.33,239.41 1 1 +github.com/tidepool-org/platform/errors/errors.go:239.41,241.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:241.8,241.51 1 1 +github.com/tidepool-org/platform/errors/errors.go:241.51,243.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:243.8,243.23 1 1 +github.com/tidepool-org/platform/errors/errors.go:243.23,247.3 1 1 +github.com/tidepool-org/platform/errors/errors.go:248.2,248.12 1 0 +github.com/tidepool-org/platform/errors/errors.go:255.32,256.46 1 0 +github.com/tidepool-org/platform/errors/errors.go:256.46,258.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:259.2,259.12 1 0 +github.com/tidepool-org/platform/errors/errors.go:266.47,267.16 1 5 +github.com/tidepool-org/platform/errors/errors.go:267.16,269.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:270.2,272.3 1 5 +github.com/tidepool-org/platform/errors/errors.go:275.79,276.56 1 0 +github.com/tidepool-org/platform/errors/errors.go:276.56,277.54 1 0 +github.com/tidepool-org/platform/errors/errors.go:277.54,283.4 5 0 +github.com/tidepool-org/platform/errors/errors.go:283.9,283.72 1 0 +github.com/tidepool-org/platform/errors/errors.go:283.72,289.4 5 0 +github.com/tidepool-org/platform/errors/errors.go:289.9,289.57 1 0 +github.com/tidepool-org/platform/errors/errors.go:289.57,291.4 1 0 +github.com/tidepool-org/platform/errors/errors.go:295.64,296.52 1 0 +github.com/tidepool-org/platform/errors/errors.go:296.52,298.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:298.8,298.63 1 0 +github.com/tidepool-org/platform/errors/errors.go:298.63,300.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:303.67,304.52 1 0 +github.com/tidepool-org/platform/errors/errors.go:304.52,306.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:306.8,306.63 1 0 +github.com/tidepool-org/platform/errors/errors.go:306.63,308.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:311.53,312.52 1 0 +github.com/tidepool-org/platform/errors/errors.go:312.52,314.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:314.8,314.63 1 0 +github.com/tidepool-org/platform/errors/errors.go:314.63,316.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:316.8,316.27 1 0 +github.com/tidepool-org/platform/errors/errors.go:316.27,318.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:319.2,319.17 1 0 +github.com/tidepool-org/platform/errors/errors.go:322.58,324.58 2 0 +github.com/tidepool-org/platform/errors/errors.go:324.58,326.59 2 0 +github.com/tidepool-org/platform/errors/errors.go:326.59,328.59 2 0 +github.com/tidepool-org/platform/errors/errors.go:328.59,330.5 1 0 +github.com/tidepool-org/platform/errors/errors.go:331.4,331.35 1 0 +github.com/tidepool-org/platform/errors/errors.go:332.9,334.41 2 0 +github.com/tidepool-org/platform/errors/errors.go:334.41,336.5 1 0 +github.com/tidepool-org/platform/errors/errors.go:337.4,337.23 1 0 +github.com/tidepool-org/platform/errors/errors.go:337.23,339.5 1 0 +github.com/tidepool-org/platform/errors/errors.go:341.8,343.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:344.2,344.12 1 0 +github.com/tidepool-org/platform/errors/errors.go:347.73,348.52 1 5 +github.com/tidepool-org/platform/errors/errors.go:348.52,350.3 1 3 +github.com/tidepool-org/platform/errors/errors.go:350.8,350.63 1 2 +github.com/tidepool-org/platform/errors/errors.go:350.63,352.3 1 1 +github.com/tidepool-org/platform/errors/errors.go:352.8,352.27 1 1 +github.com/tidepool-org/platform/errors/errors.go:352.27,354.3 1 1 +github.com/tidepool-org/platform/errors/errors.go:355.2,355.32 1 0 +github.com/tidepool-org/platform/errors/errors.go:358.79,359.11 1 5 +github.com/tidepool-org/platform/errors/errors.go:360.23,362.15 2 1 +github.com/tidepool-org/platform/errors/errors.go:362.15,364.4 1 0 +github.com/tidepool-org/platform/errors/errors.go:365.3,365.26 1 1 +github.com/tidepool-org/platform/errors/errors.go:366.22,369.17 3 3 +github.com/tidepool-org/platform/errors/errors.go:369.17,371.4 1 0 +github.com/tidepool-org/platform/errors/errors.go:372.3,372.33 1 3 +github.com/tidepool-org/platform/errors/errors.go:372.33,374.23 2 6 +github.com/tidepool-org/platform/errors/errors.go:375.35,377.64 2 6 +github.com/tidepool-org/platform/errors/errors.go:377.64,379.6 1 0 +github.com/tidepool-org/platform/errors/errors.go:380.5,380.27 1 6 +github.com/tidepool-org/platform/errors/errors.go:381.25,383.17 2 0 +github.com/tidepool-org/platform/errors/errors.go:383.17,385.6 1 0 +github.com/tidepool-org/platform/errors/errors.go:386.5,386.39 1 0 +github.com/tidepool-org/platform/errors/errors.go:387.12,388.69 1 0 +github.com/tidepool-org/platform/errors/errors.go:391.3,391.20 1 3 +github.com/tidepool-org/platform/errors/errors.go:391.20,393.4 1 3 +github.com/tidepool-org/platform/errors/errors.go:394.33,396.57 2 1 +github.com/tidepool-org/platform/errors/errors.go:396.57,398.4 1 0 +github.com/tidepool-org/platform/errors/errors.go:399.3,399.22 1 1 +github.com/tidepool-org/platform/errors/errors.go:400.10,401.60 1 0 +github.com/tidepool-org/platform/errors/errors.go:404.2,404.12 1 5 +github.com/tidepool-org/platform/errors/errors.go:411.32,413.31 2 0 +github.com/tidepool-org/platform/errors/errors.go:413.31,415.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:416.2,416.33 1 0 +github.com/tidepool-org/platform/errors/errors.go:419.52,420.35 1 0 +github.com/tidepool-org/platform/errors/errors.go:420.35,421.16 1 0 +github.com/tidepool-org/platform/errors/errors.go:421.16,423.4 1 0 +github.com/tidepool-org/platform/errors/errors.go:424.3,424.47 1 0 +github.com/tidepool-org/platform/errors/errors.go:424.47,426.4 1 0 +github.com/tidepool-org/platform/errors/errors.go:426.9,427.16 1 0 +github.com/tidepool-org/platform/errors/errors.go:428.13,429.34 1 0 +github.com/tidepool-org/platform/errors/errors.go:430.13,431.34 1 0 +github.com/tidepool-org/platform/errors/errors.go:432.13,433.24 1 0 +github.com/tidepool-org/platform/errors/errors.go:433.24,435.6 1 0 +github.com/tidepool-org/platform/errors/errors.go:435.11,435.31 1 0 +github.com/tidepool-org/platform/errors/errors.go:435.31,437.6 1 0 +github.com/tidepool-org/platform/errors/errors.go:437.11,439.6 1 0 +github.com/tidepool-org/platform/errors/errors.go:445.53,446.48 1 0 +github.com/tidepool-org/platform/errors/errors.go:446.48,452.3 5 0 +github.com/tidepool-org/platform/errors/errors.go:455.57,456.35 1 0 +github.com/tidepool-org/platform/errors/errors.go:456.35,457.53 1 0 +github.com/tidepool-org/platform/errors/errors.go:457.53,459.4 1 0 +github.com/tidepool-org/platform/errors/errors.go:463.60,464.35 1 0 +github.com/tidepool-org/platform/errors/errors.go:464.35,465.53 1 0 +github.com/tidepool-org/platform/errors/errors.go:465.53,467.4 1 0 +github.com/tidepool-org/platform/errors/errors.go:471.34,473.31 2 0 +github.com/tidepool-org/platform/errors/errors.go:473.31,474.49 1 0 +github.com/tidepool-org/platform/errors/errors.go:474.49,476.4 1 0 +github.com/tidepool-org/platform/errors/errors.go:477.3,477.17 1 0 +github.com/tidepool-org/platform/errors/errors.go:477.17,479.4 1 0 +github.com/tidepool-org/platform/errors/errors.go:481.2,483.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:496.33,498.44 2 6 +github.com/tidepool-org/platform/errors/errors.go:498.44,500.3 1 2 +github.com/tidepool-org/platform/errors/errors.go:501.2,501.12 1 6 +github.com/tidepool-org/platform/errors/errors.go:504.53,505.14 1 0 +github.com/tidepool-org/platform/errors/errors.go:506.11,507.38 1 0 +github.com/tidepool-org/platform/errors/errors.go:508.11,509.38 1 0 +github.com/tidepool-org/platform/errors/errors.go:510.11,511.22 1 0 +github.com/tidepool-org/platform/errors/errors.go:511.22,513.20 2 0 +github.com/tidepool-org/platform/errors/errors.go:513.20,515.5 1 0 +github.com/tidepool-org/platform/errors/errors.go:516.4,516.21 1 0 +github.com/tidepool-org/platform/errors/errors.go:516.21,518.5 1 0 +github.com/tidepool-org/platform/errors/errors.go:519.4,520.23 2 0 +github.com/tidepool-org/platform/errors/errors.go:520.23,522.5 1 0 +github.com/tidepool-org/platform/errors/errors.go:523.4,523.21 1 0 +github.com/tidepool-org/platform/errors/errors.go:523.21,525.5 1 0 +github.com/tidepool-org/platform/errors/errors.go:526.4,526.23 1 0 +github.com/tidepool-org/platform/errors/errors.go:526.23,528.5 1 0 +github.com/tidepool-org/platform/errors/errors.go:529.4,529.22 1 0 +github.com/tidepool-org/platform/errors/errors.go:529.22,531.5 1 0 +github.com/tidepool-org/platform/errors/errors.go:532.4,532.71 1 0 +github.com/tidepool-org/platform/errors/errors.go:533.9,535.4 1 0 +github.com/tidepool-org/platform/errors/errors.go:539.55,540.46 1 0 +github.com/tidepool-org/platform/errors/errors.go:540.46,542.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:543.2,543.47 1 0 +github.com/tidepool-org/platform/errors/errors.go:543.47,545.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:546.2,546.48 1 0 +github.com/tidepool-org/platform/errors/errors.go:546.48,548.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:549.2,549.87 1 0 +github.com/tidepool-org/platform/errors/errors.go:549.87,553.3 3 0 +github.com/tidepool-org/platform/errors/errors.go:554.2,554.49 1 0 +github.com/tidepool-org/platform/errors/errors.go:554.49,556.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:557.2,557.87 1 0 +github.com/tidepool-org/platform/errors/errors.go:557.87,561.3 3 0 +github.com/tidepool-org/platform/errors/errors.go:562.2,562.37 1 0 +github.com/tidepool-org/platform/errors/errors.go:562.37,565.3 2 0 +github.com/tidepool-org/platform/errors/errors.go:568.58,569.21 1 0 +github.com/tidepool-org/platform/errors/errors.go:569.21,571.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:572.2,572.21 1 0 +github.com/tidepool-org/platform/errors/errors.go:572.21,574.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:575.2,575.20 1 0 +github.com/tidepool-org/platform/errors/errors.go:575.20,577.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:580.61,581.21 1 0 +github.com/tidepool-org/platform/errors/errors.go:581.21,583.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:584.2,584.21 1 0 +github.com/tidepool-org/platform/errors/errors.go:584.21,586.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:587.2,587.20 1 0 +github.com/tidepool-org/platform/errors/errors.go:587.20,589.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:592.35,600.2 1 0 +github.com/tidepool-org/platform/errors/errors.go:606.74,608.2 1 0 +github.com/tidepool-org/platform/errors/errors.go:610.50,611.16 1 0 +github.com/tidepool-org/platform/errors/errors.go:611.16,612.56 1 0 +github.com/tidepool-org/platform/errors/errors.go:612.56,614.4 1 0 +github.com/tidepool-org/platform/errors/errors.go:616.2,616.12 1 0 diff --git a/vendor/github.com/tidepool-org/platform/errors/errors.coverprofile b/vendor/github.com/tidepool-org/platform/errors/errors.coverprofile new file mode 100644 index 000000000..8ab7aaa9c --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/errors/errors.coverprofile @@ -0,0 +1,236 @@ +mode: atomic +github.com/tidepool-org/platform/errors/caller.go:18.35,19.57 1 12 +github.com/tidepool-org/platform/errors/caller.go:19.57,33.3 7 12 +github.com/tidepool-org/platform/errors/caller.go:34.2,34.12 1 0 +github.com/tidepool-org/platform/errors/caller.go:37.39,40.2 2 0 +github.com/tidepool-org/platform/errors/caller.go:42.36,45.2 2 0 +github.com/tidepool-org/platform/errors/caller.go:47.55,48.49 1 0 +github.com/tidepool-org/platform/errors/caller.go:48.49,50.3 1 0 +github.com/tidepool-org/platform/errors/caller.go:51.2,51.50 1 0 +github.com/tidepool-org/platform/errors/caller.go:51.50,53.3 1 0 +github.com/tidepool-org/platform/errors/caller.go:54.2,54.46 1 0 +github.com/tidepool-org/platform/errors/caller.go:54.46,56.3 1 0 +github.com/tidepool-org/platform/errors/caller.go:57.2,57.43 1 0 +github.com/tidepool-org/platform/errors/caller.go:57.43,59.3 1 0 +github.com/tidepool-org/platform/errors/caller.go:62.58,67.2 4 0 +github.com/tidepool-org/platform/errors/caller.go:69.62,69.63 0 0 +github.com/tidepool-org/platform/errors/caller.go:71.13,72.45 1 1 +github.com/tidepool-org/platform/errors/caller.go:72.45,74.3 1 1 +github.com/tidepool-org/platform/errors/errors.go:28.55,29.51 1 0 +github.com/tidepool-org/platform/errors/errors.go:29.51,31.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:32.2,32.49 1 0 +github.com/tidepool-org/platform/errors/errors.go:32.49,34.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:37.58,38.23 1 0 +github.com/tidepool-org/platform/errors/errors.go:38.23,40.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:43.62,43.63 0 0 +github.com/tidepool-org/platform/errors/errors.go:45.31,50.2 1 7 +github.com/tidepool-org/platform/errors/errors.go:52.50,57.2 1 1 +github.com/tidepool-org/platform/errors/errors.go:59.43,61.16 2 2 +github.com/tidepool-org/platform/errors/errors.go:61.16,65.3 1 1 +github.com/tidepool-org/platform/errors/errors.go:66.2,70.3 1 2 +github.com/tidepool-org/platform/errors/errors.go:73.62,75.16 2 2 +github.com/tidepool-org/platform/errors/errors.go:75.16,79.3 1 1 +github.com/tidepool-org/platform/errors/errors.go:80.2,84.3 1 2 +github.com/tidepool-org/platform/errors/errors.go:87.63,94.2 1 0 +github.com/tidepool-org/platform/errors/errors.go:96.82,103.2 1 0 +github.com/tidepool-org/platform/errors/errors.go:105.78,107.16 2 0 +github.com/tidepool-org/platform/errors/errors.go:107.16,111.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:112.2,118.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:121.97,123.16 2 0 +github.com/tidepool-org/platform/errors/errors.go:123.16,127.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:128.2,134.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:137.46,140.16 2 0 +github.com/tidepool-org/platform/errors/errors.go:140.16,143.39 3 0 +github.com/tidepool-org/platform/errors/errors.go:143.39,148.4 1 0 +github.com/tidepool-org/platform/errors/errors.go:151.2,151.41 1 0 +github.com/tidepool-org/platform/errors/errors.go:151.41,153.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:153.8,153.59 1 0 +github.com/tidepool-org/platform/errors/errors.go:153.59,163.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:163.8,163.23 1 0 +github.com/tidepool-org/platform/errors/errors.go:163.23,168.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:169.2,169.12 1 0 +github.com/tidepool-org/platform/errors/errors.go:172.50,173.41 1 0 +github.com/tidepool-org/platform/errors/errors.go:173.41,175.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:175.8,175.59 1 0 +github.com/tidepool-org/platform/errors/errors.go:175.59,185.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:185.8,185.23 1 0 +github.com/tidepool-org/platform/errors/errors.go:185.23,190.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:191.2,191.12 1 0 +github.com/tidepool-org/platform/errors/errors.go:194.29,195.52 1 0 +github.com/tidepool-org/platform/errors/errors.go:195.52,197.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:198.2,198.11 1 0 +github.com/tidepool-org/platform/errors/errors.go:201.29,202.110 1 0 +github.com/tidepool-org/platform/errors/errors.go:202.110,204.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:205.2,205.12 1 0 +github.com/tidepool-org/platform/errors/errors.go:208.34,210.27 2 3 +github.com/tidepool-org/platform/errors/errors.go:210.27,211.17 1 6 +github.com/tidepool-org/platform/errors/errors.go:211.17,213.4 1 6 +github.com/tidepool-org/platform/errors/errors.go:215.2,215.21 1 3 +github.com/tidepool-org/platform/errors/errors.go:216.9,217.13 1 0 +github.com/tidepool-org/platform/errors/errors.go:218.9,219.19 1 0 +github.com/tidepool-org/platform/errors/errors.go:220.10,223.4 1 3 +github.com/tidepool-org/platform/errors/errors.go:227.54,228.48 1 6 +github.com/tidepool-org/platform/errors/errors.go:228.48,230.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:230.8,230.59 1 6 +github.com/tidepool-org/platform/errors/errors.go:230.59,232.3 1 5 +github.com/tidepool-org/platform/errors/errors.go:232.8,232.23 1 1 +github.com/tidepool-org/platform/errors/errors.go:232.23,234.3 1 1 +github.com/tidepool-org/platform/errors/errors.go:235.2,235.15 1 0 +github.com/tidepool-org/platform/errors/errors.go:238.33,239.41 1 1 +github.com/tidepool-org/platform/errors/errors.go:239.41,241.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:241.8,241.51 1 1 +github.com/tidepool-org/platform/errors/errors.go:241.51,243.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:243.8,243.23 1 1 +github.com/tidepool-org/platform/errors/errors.go:243.23,247.3 1 1 +github.com/tidepool-org/platform/errors/errors.go:248.2,248.12 1 0 +github.com/tidepool-org/platform/errors/errors.go:255.32,256.46 1 0 +github.com/tidepool-org/platform/errors/errors.go:256.46,258.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:259.2,259.12 1 0 +github.com/tidepool-org/platform/errors/errors.go:266.47,267.16 1 5 +github.com/tidepool-org/platform/errors/errors.go:267.16,269.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:270.2,272.3 1 5 +github.com/tidepool-org/platform/errors/errors.go:275.79,276.56 1 0 +github.com/tidepool-org/platform/errors/errors.go:276.56,277.54 1 0 +github.com/tidepool-org/platform/errors/errors.go:277.54,283.4 5 0 +github.com/tidepool-org/platform/errors/errors.go:283.9,283.72 1 0 +github.com/tidepool-org/platform/errors/errors.go:283.72,289.4 5 0 +github.com/tidepool-org/platform/errors/errors.go:289.9,289.57 1 0 +github.com/tidepool-org/platform/errors/errors.go:289.57,291.4 1 0 +github.com/tidepool-org/platform/errors/errors.go:295.64,296.52 1 0 +github.com/tidepool-org/platform/errors/errors.go:296.52,298.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:298.8,298.63 1 0 +github.com/tidepool-org/platform/errors/errors.go:298.63,300.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:303.67,304.52 1 0 +github.com/tidepool-org/platform/errors/errors.go:304.52,306.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:306.8,306.63 1 0 +github.com/tidepool-org/platform/errors/errors.go:306.63,308.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:311.53,312.52 1 0 +github.com/tidepool-org/platform/errors/errors.go:312.52,314.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:314.8,314.63 1 0 +github.com/tidepool-org/platform/errors/errors.go:314.63,316.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:316.8,316.27 1 0 +github.com/tidepool-org/platform/errors/errors.go:316.27,318.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:319.2,319.17 1 0 +github.com/tidepool-org/platform/errors/errors.go:322.58,324.58 2 0 +github.com/tidepool-org/platform/errors/errors.go:324.58,326.59 2 0 +github.com/tidepool-org/platform/errors/errors.go:326.59,328.59 2 0 +github.com/tidepool-org/platform/errors/errors.go:328.59,330.5 1 0 +github.com/tidepool-org/platform/errors/errors.go:331.4,331.35 1 0 +github.com/tidepool-org/platform/errors/errors.go:332.9,334.41 2 0 +github.com/tidepool-org/platform/errors/errors.go:334.41,336.5 1 0 +github.com/tidepool-org/platform/errors/errors.go:337.4,337.23 1 0 +github.com/tidepool-org/platform/errors/errors.go:337.23,339.5 1 0 +github.com/tidepool-org/platform/errors/errors.go:341.8,343.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:344.2,344.12 1 0 +github.com/tidepool-org/platform/errors/errors.go:347.73,348.52 1 5 +github.com/tidepool-org/platform/errors/errors.go:348.52,350.3 1 3 +github.com/tidepool-org/platform/errors/errors.go:350.8,350.63 1 2 +github.com/tidepool-org/platform/errors/errors.go:350.63,352.3 1 1 +github.com/tidepool-org/platform/errors/errors.go:352.8,352.27 1 1 +github.com/tidepool-org/platform/errors/errors.go:352.27,354.3 1 1 +github.com/tidepool-org/platform/errors/errors.go:355.2,355.32 1 0 +github.com/tidepool-org/platform/errors/errors.go:358.79,359.11 1 5 +github.com/tidepool-org/platform/errors/errors.go:360.23,362.15 2 1 +github.com/tidepool-org/platform/errors/errors.go:362.15,364.4 1 0 +github.com/tidepool-org/platform/errors/errors.go:365.3,365.26 1 1 +github.com/tidepool-org/platform/errors/errors.go:366.22,369.17 3 3 +github.com/tidepool-org/platform/errors/errors.go:369.17,371.4 1 0 +github.com/tidepool-org/platform/errors/errors.go:372.3,372.33 1 3 +github.com/tidepool-org/platform/errors/errors.go:372.33,374.23 2 6 +github.com/tidepool-org/platform/errors/errors.go:375.35,377.64 2 6 +github.com/tidepool-org/platform/errors/errors.go:377.64,379.6 1 0 +github.com/tidepool-org/platform/errors/errors.go:380.5,380.27 1 6 +github.com/tidepool-org/platform/errors/errors.go:381.25,383.17 2 0 +github.com/tidepool-org/platform/errors/errors.go:383.17,385.6 1 0 +github.com/tidepool-org/platform/errors/errors.go:386.5,386.39 1 0 +github.com/tidepool-org/platform/errors/errors.go:387.12,388.69 1 0 +github.com/tidepool-org/platform/errors/errors.go:391.3,391.20 1 3 +github.com/tidepool-org/platform/errors/errors.go:391.20,393.4 1 3 +github.com/tidepool-org/platform/errors/errors.go:394.33,396.57 2 1 +github.com/tidepool-org/platform/errors/errors.go:396.57,398.4 1 0 +github.com/tidepool-org/platform/errors/errors.go:399.3,399.22 1 1 +github.com/tidepool-org/platform/errors/errors.go:400.10,401.60 1 0 +github.com/tidepool-org/platform/errors/errors.go:404.2,404.12 1 5 +github.com/tidepool-org/platform/errors/errors.go:411.32,413.31 2 0 +github.com/tidepool-org/platform/errors/errors.go:413.31,415.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:416.2,416.33 1 0 +github.com/tidepool-org/platform/errors/errors.go:419.52,420.35 1 0 +github.com/tidepool-org/platform/errors/errors.go:420.35,421.16 1 0 +github.com/tidepool-org/platform/errors/errors.go:421.16,423.4 1 0 +github.com/tidepool-org/platform/errors/errors.go:424.3,424.47 1 0 +github.com/tidepool-org/platform/errors/errors.go:424.47,426.4 1 0 +github.com/tidepool-org/platform/errors/errors.go:426.9,427.16 1 0 +github.com/tidepool-org/platform/errors/errors.go:428.13,429.34 1 0 +github.com/tidepool-org/platform/errors/errors.go:430.13,431.34 1 0 +github.com/tidepool-org/platform/errors/errors.go:432.13,433.24 1 0 +github.com/tidepool-org/platform/errors/errors.go:433.24,435.6 1 0 +github.com/tidepool-org/platform/errors/errors.go:435.11,435.31 1 0 +github.com/tidepool-org/platform/errors/errors.go:435.31,437.6 1 0 +github.com/tidepool-org/platform/errors/errors.go:437.11,439.6 1 0 +github.com/tidepool-org/platform/errors/errors.go:445.53,446.48 1 0 +github.com/tidepool-org/platform/errors/errors.go:446.48,452.3 5 0 +github.com/tidepool-org/platform/errors/errors.go:455.57,456.35 1 0 +github.com/tidepool-org/platform/errors/errors.go:456.35,457.53 1 0 +github.com/tidepool-org/platform/errors/errors.go:457.53,459.4 1 0 +github.com/tidepool-org/platform/errors/errors.go:463.60,464.35 1 0 +github.com/tidepool-org/platform/errors/errors.go:464.35,465.53 1 0 +github.com/tidepool-org/platform/errors/errors.go:465.53,467.4 1 0 +github.com/tidepool-org/platform/errors/errors.go:471.34,473.31 2 0 +github.com/tidepool-org/platform/errors/errors.go:473.31,474.49 1 0 +github.com/tidepool-org/platform/errors/errors.go:474.49,476.4 1 0 +github.com/tidepool-org/platform/errors/errors.go:477.3,477.17 1 0 +github.com/tidepool-org/platform/errors/errors.go:477.17,479.4 1 0 +github.com/tidepool-org/platform/errors/errors.go:481.2,483.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:496.33,498.44 2 6 +github.com/tidepool-org/platform/errors/errors.go:498.44,500.3 1 2 +github.com/tidepool-org/platform/errors/errors.go:501.2,501.12 1 6 +github.com/tidepool-org/platform/errors/errors.go:504.53,505.14 1 0 +github.com/tidepool-org/platform/errors/errors.go:506.11,507.38 1 0 +github.com/tidepool-org/platform/errors/errors.go:508.11,509.38 1 0 +github.com/tidepool-org/platform/errors/errors.go:510.11,511.22 1 0 +github.com/tidepool-org/platform/errors/errors.go:511.22,513.20 2 0 +github.com/tidepool-org/platform/errors/errors.go:513.20,515.5 1 0 +github.com/tidepool-org/platform/errors/errors.go:516.4,516.21 1 0 +github.com/tidepool-org/platform/errors/errors.go:516.21,518.5 1 0 +github.com/tidepool-org/platform/errors/errors.go:519.4,520.23 2 0 +github.com/tidepool-org/platform/errors/errors.go:520.23,522.5 1 0 +github.com/tidepool-org/platform/errors/errors.go:523.4,523.21 1 0 +github.com/tidepool-org/platform/errors/errors.go:523.21,525.5 1 0 +github.com/tidepool-org/platform/errors/errors.go:526.4,526.23 1 0 +github.com/tidepool-org/platform/errors/errors.go:526.23,528.5 1 0 +github.com/tidepool-org/platform/errors/errors.go:529.4,529.22 1 0 +github.com/tidepool-org/platform/errors/errors.go:529.22,531.5 1 0 +github.com/tidepool-org/platform/errors/errors.go:532.4,532.71 1 0 +github.com/tidepool-org/platform/errors/errors.go:533.9,535.4 1 0 +github.com/tidepool-org/platform/errors/errors.go:539.55,540.46 1 0 +github.com/tidepool-org/platform/errors/errors.go:540.46,542.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:543.2,543.47 1 0 +github.com/tidepool-org/platform/errors/errors.go:543.47,545.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:546.2,546.48 1 0 +github.com/tidepool-org/platform/errors/errors.go:546.48,548.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:549.2,549.87 1 0 +github.com/tidepool-org/platform/errors/errors.go:549.87,553.3 3 0 +github.com/tidepool-org/platform/errors/errors.go:554.2,554.49 1 0 +github.com/tidepool-org/platform/errors/errors.go:554.49,556.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:557.2,557.87 1 0 +github.com/tidepool-org/platform/errors/errors.go:557.87,561.3 3 0 +github.com/tidepool-org/platform/errors/errors.go:562.2,562.37 1 0 +github.com/tidepool-org/platform/errors/errors.go:562.37,565.3 2 0 +github.com/tidepool-org/platform/errors/errors.go:568.58,569.21 1 0 +github.com/tidepool-org/platform/errors/errors.go:569.21,571.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:572.2,572.21 1 0 +github.com/tidepool-org/platform/errors/errors.go:572.21,574.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:575.2,575.20 1 0 +github.com/tidepool-org/platform/errors/errors.go:575.20,577.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:580.61,581.21 1 0 +github.com/tidepool-org/platform/errors/errors.go:581.21,583.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:584.2,584.21 1 0 +github.com/tidepool-org/platform/errors/errors.go:584.21,586.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:587.2,587.20 1 0 +github.com/tidepool-org/platform/errors/errors.go:587.20,589.3 1 0 +github.com/tidepool-org/platform/errors/errors.go:592.35,600.2 1 0 +github.com/tidepool-org/platform/errors/errors.go:606.74,608.2 1 0 +github.com/tidepool-org/platform/errors/errors.go:610.50,611.16 1 0 +github.com/tidepool-org/platform/errors/errors.go:611.16,612.56 1 0 +github.com/tidepool-org/platform/errors/errors.go:612.56,614.4 1 0 +github.com/tidepool-org/platform/errors/errors.go:616.2,616.12 1 0 diff --git a/vendor/github.com/tidepool-org/platform/id/cover.out b/vendor/github.com/tidepool-org/platform/id/cover.out new file mode 100644 index 000000000..369b7add8 --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/id/cover.out @@ -0,0 +1,11 @@ +mode: atomic +github.com/tidepool-org/platform/id/id.go:10.38,11.16 1 7 +github.com/tidepool-org/platform/id/id.go:11.16,13.3 1 2 +github.com/tidepool-org/platform/id/id.go:14.2,16.16 3 5 +github.com/tidepool-org/platform/id/id.go:16.16,18.3 1 0 +github.com/tidepool-org/platform/id/id.go:18.8,18.24 1 5 +github.com/tidepool-org/platform/id/id.go:18.24,20.3 1 0 +github.com/tidepool-org/platform/id/id.go:21.2,21.39 1 5 +github.com/tidepool-org/platform/id/id.go:24.43,25.16 1 2 +github.com/tidepool-org/platform/id/id.go:25.16,26.13 1 1 +github.com/tidepool-org/platform/id/id.go:28.2,28.14 1 1 diff --git a/vendor/github.com/tidepool-org/platform/id/id.coverprofile b/vendor/github.com/tidepool-org/platform/id/id.coverprofile new file mode 100644 index 000000000..369b7add8 --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/id/id.coverprofile @@ -0,0 +1,11 @@ +mode: atomic +github.com/tidepool-org/platform/id/id.go:10.38,11.16 1 7 +github.com/tidepool-org/platform/id/id.go:11.16,13.3 1 2 +github.com/tidepool-org/platform/id/id.go:14.2,16.16 3 5 +github.com/tidepool-org/platform/id/id.go:16.16,18.3 1 0 +github.com/tidepool-org/platform/id/id.go:18.8,18.24 1 5 +github.com/tidepool-org/platform/id/id.go:18.24,20.3 1 0 +github.com/tidepool-org/platform/id/id.go:21.2,21.39 1 5 +github.com/tidepool-org/platform/id/id.go:24.43,25.16 1 2 +github.com/tidepool-org/platform/id/id.go:25.16,26.13 1 1 +github.com/tidepool-org/platform/id/id.go:28.2,28.14 1 1 diff --git a/vendor/github.com/tidepool-org/platform/log/cover.out b/vendor/github.com/tidepool-org/platform/log/cover.out new file mode 100644 index 000000000..9229a92f7 --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/log/cover.out @@ -0,0 +1,62 @@ +mode: atomic +github.com/tidepool-org/platform/log/context.go:9.79,11.2 1 10 +github.com/tidepool-org/platform/log/context.go:13.52,14.16 1 20 +github.com/tidepool-org/platform/log/context.go:14.16,15.61 1 15 +github.com/tidepool-org/platform/log/context.go:15.61,17.4 1 10 +github.com/tidepool-org/platform/log/context.go:19.2,19.12 1 10 +github.com/tidepool-org/platform/log/context.go:22.91,25.2 2 3 +github.com/tidepool-org/platform/log/context.go:27.110,28.53 1 6 +github.com/tidepool-org/platform/log/context.go:28.53,31.3 2 2 +github.com/tidepool-org/platform/log/context.go:32.2,32.17 1 4 +github.com/tidepool-org/platform/log/context.go:35.76,38.2 2 3 +github.com/tidepool-org/platform/log/context.go:40.95,41.53 1 6 +github.com/tidepool-org/platform/log/context.go:41.53,44.3 2 2 +github.com/tidepool-org/platform/log/context.go:45.2,45.17 1 4 +github.com/tidepool-org/platform/log/default.go:10.37,17.2 1 49 +github.com/tidepool-org/platform/log/default.go:19.27,21.2 1 33 +github.com/tidepool-org/platform/log/logger.go:13.91,14.23 1 49 +github.com/tidepool-org/platform/log/logger.go:14.23,16.3 1 1 +github.com/tidepool-org/platform/log/logger.go:17.2,17.23 1 48 +github.com/tidepool-org/platform/log/logger.go:17.23,19.3 1 1 +github.com/tidepool-org/platform/log/logger.go:21.2,24.12 3 47 +github.com/tidepool-org/platform/log/logger.go:24.12,26.3 1 1 +github.com/tidepool-org/platform/log/logger.go:28.2,34.8 1 46 +github.com/tidepool-org/platform/log/logger.go:45.51,47.2 1 7 +github.com/tidepool-org/platform/log/logger.go:49.40,51.2 1 5 +github.com/tidepool-org/platform/log/logger.go:53.39,55.2 1 1 +github.com/tidepool-org/platform/log/logger.go:57.39,59.2 1 11 +github.com/tidepool-org/platform/log/logger.go:61.40,63.2 1 1 +github.com/tidepool-org/platform/log/logger.go:65.62,67.2 1 1 +github.com/tidepool-org/platform/log/logger.go:69.61,71.2 1 1 +github.com/tidepool-org/platform/log/logger.go:73.61,75.2 1 1 +github.com/tidepool-org/platform/log/logger.go:77.62,79.2 1 1 +github.com/tidepool-org/platform/log/logger.go:81.46,83.16 2 4 +github.com/tidepool-org/platform/log/logger.go:83.16,85.3 1 2 +github.com/tidepool-org/platform/log/logger.go:86.2,86.36 1 4 +github.com/tidepool-org/platform/log/logger.go:89.66,91.2 1 14 +github.com/tidepool-org/platform/log/logger.go:93.51,101.2 1 22 +github.com/tidepool-org/platform/log/logger.go:103.63,105.2 1 2 +github.com/tidepool-org/platform/log/logger.go:107.63,115.2 1 3 +github.com/tidepool-org/platform/log/logger.go:117.48,119.9 2 27 +github.com/tidepool-org/platform/log/logger.go:119.9,122.3 2 1 +github.com/tidepool-org/platform/log/logger.go:124.2,130.3 1 27 +github.com/tidepool-org/platform/log/logger.go:133.32,135.2 1 4 +github.com/tidepool-org/platform/log/logger.go:137.51,139.12 2 29 +github.com/tidepool-org/platform/log/logger.go:139.12,141.3 1 1 +github.com/tidepool-org/platform/log/logger.go:143.2,143.19 1 28 +github.com/tidepool-org/platform/log/logger.go:143.19,145.3 1 4 +github.com/tidepool-org/platform/log/logger.go:147.2,153.19 2 24 +github.com/tidepool-org/platform/log/logger.go:153.19,155.3 1 23 +github.com/tidepool-org/platform/log/logger.go:157.2,157.77 1 24 +github.com/tidepool-org/platform/log/logger.go:157.77,159.3 1 1 +github.com/tidepool-org/platform/log/logger.go:162.58,164.35 2 49 +github.com/tidepool-org/platform/log/logger.go:164.35,165.34 1 52 +github.com/tidepool-org/platform/log/logger.go:165.34,167.4 1 200 +github.com/tidepool-org/platform/log/logger.go:169.2,169.15 1 49 +github.com/tidepool-org/platform/log/logger.go:172.42,174.31 2 46 +github.com/tidepool-org/platform/log/logger.go:174.31,175.33 1 92 +github.com/tidepool-org/platform/log/logger.go:175.33,176.17 1 135 +github.com/tidepool-org/platform/log/logger.go:176.17,177.21 1 133 +github.com/tidepool-org/platform/log/logger.go:177.21,179.6 1 127 +github.com/tidepool-org/platform/log/logger.go:179.11,181.6 1 6 +github.com/tidepool-org/platform/log/logger.go:185.2,185.15 1 46 diff --git a/vendor/github.com/tidepool-org/platform/log/log.coverprofile b/vendor/github.com/tidepool-org/platform/log/log.coverprofile new file mode 100644 index 000000000..ea4c56ba3 --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/log/log.coverprofile @@ -0,0 +1,62 @@ +mode: atomic +github.com/tidepool-org/platform/log/context.go:9.79,11.2 1 10 +github.com/tidepool-org/platform/log/context.go:13.52,14.16 1 20 +github.com/tidepool-org/platform/log/context.go:14.16,15.61 1 15 +github.com/tidepool-org/platform/log/context.go:15.61,17.4 1 10 +github.com/tidepool-org/platform/log/context.go:19.2,19.12 1 10 +github.com/tidepool-org/platform/log/context.go:22.91,25.2 2 3 +github.com/tidepool-org/platform/log/context.go:27.110,28.53 1 6 +github.com/tidepool-org/platform/log/context.go:28.53,31.3 2 2 +github.com/tidepool-org/platform/log/context.go:32.2,32.17 1 4 +github.com/tidepool-org/platform/log/context.go:35.76,38.2 2 3 +github.com/tidepool-org/platform/log/context.go:40.95,41.53 1 6 +github.com/tidepool-org/platform/log/context.go:41.53,44.3 2 2 +github.com/tidepool-org/platform/log/context.go:45.2,45.17 1 4 +github.com/tidepool-org/platform/log/default.go:10.37,17.2 1 49 +github.com/tidepool-org/platform/log/default.go:19.27,21.2 1 33 +github.com/tidepool-org/platform/log/logger.go:13.91,14.23 1 49 +github.com/tidepool-org/platform/log/logger.go:14.23,16.3 1 1 +github.com/tidepool-org/platform/log/logger.go:17.2,17.23 1 48 +github.com/tidepool-org/platform/log/logger.go:17.23,19.3 1 1 +github.com/tidepool-org/platform/log/logger.go:21.2,24.12 3 47 +github.com/tidepool-org/platform/log/logger.go:24.12,26.3 1 1 +github.com/tidepool-org/platform/log/logger.go:28.2,34.8 1 46 +github.com/tidepool-org/platform/log/logger.go:45.51,47.2 1 7 +github.com/tidepool-org/platform/log/logger.go:49.40,51.2 1 5 +github.com/tidepool-org/platform/log/logger.go:53.39,55.2 1 1 +github.com/tidepool-org/platform/log/logger.go:57.39,59.2 1 11 +github.com/tidepool-org/platform/log/logger.go:61.40,63.2 1 1 +github.com/tidepool-org/platform/log/logger.go:65.62,67.2 1 1 +github.com/tidepool-org/platform/log/logger.go:69.61,71.2 1 1 +github.com/tidepool-org/platform/log/logger.go:73.61,75.2 1 1 +github.com/tidepool-org/platform/log/logger.go:77.62,79.2 1 1 +github.com/tidepool-org/platform/log/logger.go:81.46,83.16 2 4 +github.com/tidepool-org/platform/log/logger.go:83.16,85.3 1 2 +github.com/tidepool-org/platform/log/logger.go:86.2,86.36 1 4 +github.com/tidepool-org/platform/log/logger.go:89.66,91.2 1 14 +github.com/tidepool-org/platform/log/logger.go:93.51,101.2 1 22 +github.com/tidepool-org/platform/log/logger.go:103.63,105.2 1 2 +github.com/tidepool-org/platform/log/logger.go:107.63,115.2 1 3 +github.com/tidepool-org/platform/log/logger.go:117.48,119.9 2 27 +github.com/tidepool-org/platform/log/logger.go:119.9,122.3 2 1 +github.com/tidepool-org/platform/log/logger.go:124.2,130.3 1 27 +github.com/tidepool-org/platform/log/logger.go:133.32,135.2 1 4 +github.com/tidepool-org/platform/log/logger.go:137.51,139.12 2 29 +github.com/tidepool-org/platform/log/logger.go:139.12,141.3 1 1 +github.com/tidepool-org/platform/log/logger.go:143.2,143.19 1 28 +github.com/tidepool-org/platform/log/logger.go:143.19,145.3 1 4 +github.com/tidepool-org/platform/log/logger.go:147.2,153.19 2 24 +github.com/tidepool-org/platform/log/logger.go:153.19,155.3 1 23 +github.com/tidepool-org/platform/log/logger.go:157.2,157.77 1 24 +github.com/tidepool-org/platform/log/logger.go:157.77,159.3 1 1 +github.com/tidepool-org/platform/log/logger.go:162.58,164.35 2 49 +github.com/tidepool-org/platform/log/logger.go:164.35,165.34 1 52 +github.com/tidepool-org/platform/log/logger.go:165.34,167.4 1 200 +github.com/tidepool-org/platform/log/logger.go:169.2,169.15 1 49 +github.com/tidepool-org/platform/log/logger.go:172.42,174.31 2 46 +github.com/tidepool-org/platform/log/logger.go:174.31,175.33 1 92 +github.com/tidepool-org/platform/log/logger.go:175.33,176.17 1 127 +github.com/tidepool-org/platform/log/logger.go:176.17,177.21 1 125 +github.com/tidepool-org/platform/log/logger.go:177.21,179.6 1 119 +github.com/tidepool-org/platform/log/logger.go:179.11,181.6 1 6 +github.com/tidepool-org/platform/log/logger.go:185.2,185.15 1 46 diff --git a/vendor/github.com/tidepool-org/platform/log/null/cover.out b/vendor/github.com/tidepool-org/platform/log/null/cover.out new file mode 100644 index 000000000..64cf59d5d --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/log/null/cover.out @@ -0,0 +1,6 @@ +mode: atomic +github.com/tidepool-org/platform/log/null/logger.go:7.29,10.2 2 1 +github.com/tidepool-org/platform/log/null/serializer.go:10.37,12.2 1 5 +github.com/tidepool-org/platform/log/null/serializer.go:16.57,17.19 1 3 +github.com/tidepool-org/platform/log/null/serializer.go:17.19,19.3 1 1 +github.com/tidepool-org/platform/log/null/serializer.go:21.2,21.12 1 2 diff --git a/vendor/github.com/tidepool-org/platform/log/null/logger.go b/vendor/github.com/tidepool-org/platform/log/null/logger.go new file mode 100644 index 000000000..e9bb864bd --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/log/null/logger.go @@ -0,0 +1,10 @@ +package null + +import "github.com/tidepool-org/platform/log" + +// CONCURRENCY: SAFE + +func NewLogger() log.Logger { + logger, _ := log.NewLogger(NewSerializer(), log.DefaultLevelRanks(), log.DefaultLevel()) // Safely ignore error; cannot fail + return logger +} diff --git a/vendor/github.com/tidepool-org/platform/log/null/null.coverprofile b/vendor/github.com/tidepool-org/platform/log/null/null.coverprofile new file mode 100644 index 000000000..64cf59d5d --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/log/null/null.coverprofile @@ -0,0 +1,6 @@ +mode: atomic +github.com/tidepool-org/platform/log/null/logger.go:7.29,10.2 2 1 +github.com/tidepool-org/platform/log/null/serializer.go:10.37,12.2 1 5 +github.com/tidepool-org/platform/log/null/serializer.go:16.57,17.19 1 3 +github.com/tidepool-org/platform/log/null/serializer.go:17.19,19.3 1 1 +github.com/tidepool-org/platform/log/null/serializer.go:21.2,21.12 1 2 diff --git a/vendor/github.com/tidepool-org/platform/log/null/serializer.go b/vendor/github.com/tidepool-org/platform/log/null/serializer.go new file mode 100644 index 000000000..6535943fb --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/log/null/serializer.go @@ -0,0 +1,22 @@ +package null + +import ( + "github.com/tidepool-org/platform/errors" + "github.com/tidepool-org/platform/log" +) + +// CONCURRENCY: SAFE + +func NewSerializer() log.Serializer { + return &serializer{} +} + +type serializer struct{} + +func (s *serializer) Serialize(fields log.Fields) error { + if fields == nil { + return errors.New("fields are missing") + } + + return nil +} diff --git a/vendor/github.com/tidepool-org/platform/metadata/cover.out b/vendor/github.com/tidepool-org/platform/metadata/cover.out new file mode 100644 index 000000000..c55e0e0de --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/metadata/cover.out @@ -0,0 +1,33 @@ +mode: atomic +github.com/tidepool-org/platform/metadata/metadata.go:16.61,17.22 1 7 +github.com/tidepool-org/platform/metadata/metadata.go:17.22,19.3 1 1 +github.com/tidepool-org/platform/metadata/metadata.go:20.2,22.14 3 6 +github.com/tidepool-org/platform/metadata/metadata.go:25.30,27.2 1 258 +github.com/tidepool-org/platform/metadata/metadata.go:29.57,30.48 1 7 +github.com/tidepool-org/platform/metadata/metadata.go:30.48,31.57 1 11 +github.com/tidepool-org/platform/metadata/metadata.go:31.57,33.4 1 11 +github.com/tidepool-org/platform/metadata/metadata.go:37.60,38.36 1 213 +github.com/tidepool-org/platform/metadata/metadata.go:38.36,40.3 1 2 +github.com/tidepool-org/platform/metadata/metadata.go:42.2,42.47 1 213 +github.com/tidepool-org/platform/metadata/metadata.go:42.47,44.3 1 1 +github.com/tidepool-org/platform/metadata/metadata.go:44.8,44.59 1 212 +github.com/tidepool-org/platform/metadata/metadata.go:44.59,46.3 1 1 +github.com/tidepool-org/platform/metadata/metadata.go:49.48,51.9 2 2 +github.com/tidepool-org/platform/metadata/metadata.go:51.9,53.3 1 1 +github.com/tidepool-org/platform/metadata/metadata.go:54.2,54.14 1 1 +github.com/tidepool-org/platform/metadata/metadata.go:57.55,59.2 1 3 +github.com/tidepool-org/platform/metadata/metadata.go:61.39,63.2 1 1 +github.com/tidepool-org/platform/metadata/metadata.go:67.70,68.22 1 2 +github.com/tidepool-org/platform/metadata/metadata.go:68.22,70.3 1 1 +github.com/tidepool-org/platform/metadata/metadata.go:71.2,73.14 3 1 +github.com/tidepool-org/platform/metadata/metadata.go:76.40,78.2 1 24 +github.com/tidepool-org/platform/metadata/metadata.go:80.61,81.48 1 4 +github.com/tidepool-org/platform/metadata/metadata.go:81.48,83.3 1 5 +github.com/tidepool-org/platform/metadata/metadata.go:86.65,87.36 1 8 +github.com/tidepool-org/platform/metadata/metadata.go:87.36,89.3 1 2 +github.com/tidepool-org/platform/metadata/metadata.go:89.8,89.48 1 6 +github.com/tidepool-org/platform/metadata/metadata.go:89.48,91.3 1 1 +github.com/tidepool-org/platform/metadata/metadata.go:93.2,93.34 1 8 +github.com/tidepool-org/platform/metadata/metadata.go:93.34,94.89 1 206 +github.com/tidepool-org/platform/metadata/metadata.go:94.89,96.4 1 205 +github.com/tidepool-org/platform/metadata/metadata.go:96.9,98.4 1 1 diff --git a/vendor/github.com/tidepool-org/platform/metadata/metadata.coverprofile b/vendor/github.com/tidepool-org/platform/metadata/metadata.coverprofile new file mode 100644 index 000000000..bf53a2f37 --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/metadata/metadata.coverprofile @@ -0,0 +1,33 @@ +mode: atomic +github.com/tidepool-org/platform/metadata/metadata.go:16.61,17.22 1 5 +github.com/tidepool-org/platform/metadata/metadata.go:17.22,19.3 1 1 +github.com/tidepool-org/platform/metadata/metadata.go:20.2,22.14 3 4 +github.com/tidepool-org/platform/metadata/metadata.go:25.30,27.2 1 253 +github.com/tidepool-org/platform/metadata/metadata.go:29.57,30.48 1 5 +github.com/tidepool-org/platform/metadata/metadata.go:30.48,31.57 1 9 +github.com/tidepool-org/platform/metadata/metadata.go:31.57,33.4 1 9 +github.com/tidepool-org/platform/metadata/metadata.go:37.60,38.36 1 212 +github.com/tidepool-org/platform/metadata/metadata.go:38.36,40.3 1 2 +github.com/tidepool-org/platform/metadata/metadata.go:42.2,42.47 1 212 +github.com/tidepool-org/platform/metadata/metadata.go:42.47,44.3 1 1 +github.com/tidepool-org/platform/metadata/metadata.go:44.8,44.59 1 211 +github.com/tidepool-org/platform/metadata/metadata.go:44.59,46.3 1 1 +github.com/tidepool-org/platform/metadata/metadata.go:49.48,51.9 2 2 +github.com/tidepool-org/platform/metadata/metadata.go:51.9,53.3 1 1 +github.com/tidepool-org/platform/metadata/metadata.go:54.2,54.14 1 1 +github.com/tidepool-org/platform/metadata/metadata.go:57.55,59.2 1 3 +github.com/tidepool-org/platform/metadata/metadata.go:61.39,63.2 1 1 +github.com/tidepool-org/platform/metadata/metadata.go:67.70,68.22 1 2 +github.com/tidepool-org/platform/metadata/metadata.go:68.22,70.3 1 1 +github.com/tidepool-org/platform/metadata/metadata.go:71.2,73.14 3 1 +github.com/tidepool-org/platform/metadata/metadata.go:76.40,78.2 1 24 +github.com/tidepool-org/platform/metadata/metadata.go:80.61,81.48 1 4 +github.com/tidepool-org/platform/metadata/metadata.go:81.48,83.3 1 3 +github.com/tidepool-org/platform/metadata/metadata.go:86.65,87.36 1 8 +github.com/tidepool-org/platform/metadata/metadata.go:87.36,89.3 1 2 +github.com/tidepool-org/platform/metadata/metadata.go:89.8,89.48 1 6 +github.com/tidepool-org/platform/metadata/metadata.go:89.48,91.3 1 1 +github.com/tidepool-org/platform/metadata/metadata.go:93.2,93.34 1 8 +github.com/tidepool-org/platform/metadata/metadata.go:93.34,94.89 1 205 +github.com/tidepool-org/platform/metadata/metadata.go:94.89,96.4 1 204 +github.com/tidepool-org/platform/metadata/metadata.go:96.9,98.4 1 1 diff --git a/vendor/github.com/tidepool-org/platform/net/cover.out b/vendor/github.com/tidepool-org/platform/net/cover.out new file mode 100644 index 000000000..cc37000e6 --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/net/cover.out @@ -0,0 +1,46 @@ +mode: atomic +github.com/tidepool-org/platform/net/net.go:15.42,17.2 1 13 +github.com/tidepool-org/platform/net/net.go:19.78,21.2 1 13 +github.com/tidepool-org/platform/net/net.go:23.44,24.17 1 39 +github.com/tidepool-org/platform/net/net.go:24.17,26.3 1 3 +github.com/tidepool-org/platform/net/net.go:26.8,26.64 1 36 +github.com/tidepool-org/platform/net/net.go:26.64,28.3 1 12 +github.com/tidepool-org/platform/net/net.go:28.8,28.66 1 24 +github.com/tidepool-org/platform/net/net.go:28.66,30.3 1 3 +github.com/tidepool-org/platform/net/net.go:31.2,31.12 1 21 +github.com/tidepool-org/platform/net/net.go:34.54,36.16 2 13 +github.com/tidepool-org/platform/net/net.go:36.16,38.3 1 5 +github.com/tidepool-org/platform/net/net.go:39.2,40.18 2 8 +github.com/tidepool-org/platform/net/net.go:40.18,42.3 1 0 +github.com/tidepool-org/platform/net/net.go:43.2,43.21 1 8 +github.com/tidepool-org/platform/net/net.go:46.46,48.2 1 32 +github.com/tidepool-org/platform/net/net.go:50.82,52.2 1 32 +github.com/tidepool-org/platform/net/net.go:54.48,55.17 1 96 +github.com/tidepool-org/platform/net/net.go:55.17,57.3 1 3 +github.com/tidepool-org/platform/net/net.go:57.8,57.56 1 93 +github.com/tidepool-org/platform/net/net.go:57.56,59.3 1 54 +github.com/tidepool-org/platform/net/net.go:59.8,59.70 1 39 +github.com/tidepool-org/platform/net/net.go:59.70,61.3 1 3 +github.com/tidepool-org/platform/net/net.go:62.2,62.12 1 36 +github.com/tidepool-org/platform/net/net.go:65.48,67.2 1 7 +github.com/tidepool-org/platform/net/net.go:69.84,71.2 1 7 +github.com/tidepool-org/platform/net/net.go:73.50,74.17 1 21 +github.com/tidepool-org/platform/net/net.go:74.17,76.3 1 3 +github.com/tidepool-org/platform/net/net.go:76.8,76.54 1 18 +github.com/tidepool-org/platform/net/net.go:76.54,78.3 1 9 +github.com/tidepool-org/platform/net/net.go:78.8,78.72 1 9 +github.com/tidepool-org/platform/net/net.go:78.72,80.3 1 3 +github.com/tidepool-org/platform/net/net.go:81.2,81.12 1 6 +github.com/tidepool-org/platform/net/net.go:84.36,86.2 1 7 +github.com/tidepool-org/platform/net/net.go:88.72,90.2 1 7 +github.com/tidepool-org/platform/net/net.go:92.38,93.17 1 21 +github.com/tidepool-org/platform/net/net.go:93.17,95.3 1 3 +github.com/tidepool-org/platform/net/net.go:95.8,95.105 1 18 +github.com/tidepool-org/platform/net/net.go:95.105,97.3 1 9 +github.com/tidepool-org/platform/net/net.go:97.8,97.60 1 9 +github.com/tidepool-org/platform/net/net.go:97.60,99.3 1 3 +github.com/tidepool-org/platform/net/net.go:100.2,100.12 1 6 +github.com/tidepool-org/platform/net/net.go:103.62,105.2 1 18 +github.com/tidepool-org/platform/net/net.go:107.66,109.2 1 74 +github.com/tidepool-org/platform/net/net.go:111.68,113.2 1 14 +github.com/tidepool-org/platform/net/net.go:115.56,117.2 1 14 diff --git a/vendor/github.com/tidepool-org/platform/net/net.coverprofile b/vendor/github.com/tidepool-org/platform/net/net.coverprofile new file mode 100644 index 000000000..cc37000e6 --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/net/net.coverprofile @@ -0,0 +1,46 @@ +mode: atomic +github.com/tidepool-org/platform/net/net.go:15.42,17.2 1 13 +github.com/tidepool-org/platform/net/net.go:19.78,21.2 1 13 +github.com/tidepool-org/platform/net/net.go:23.44,24.17 1 39 +github.com/tidepool-org/platform/net/net.go:24.17,26.3 1 3 +github.com/tidepool-org/platform/net/net.go:26.8,26.64 1 36 +github.com/tidepool-org/platform/net/net.go:26.64,28.3 1 12 +github.com/tidepool-org/platform/net/net.go:28.8,28.66 1 24 +github.com/tidepool-org/platform/net/net.go:28.66,30.3 1 3 +github.com/tidepool-org/platform/net/net.go:31.2,31.12 1 21 +github.com/tidepool-org/platform/net/net.go:34.54,36.16 2 13 +github.com/tidepool-org/platform/net/net.go:36.16,38.3 1 5 +github.com/tidepool-org/platform/net/net.go:39.2,40.18 2 8 +github.com/tidepool-org/platform/net/net.go:40.18,42.3 1 0 +github.com/tidepool-org/platform/net/net.go:43.2,43.21 1 8 +github.com/tidepool-org/platform/net/net.go:46.46,48.2 1 32 +github.com/tidepool-org/platform/net/net.go:50.82,52.2 1 32 +github.com/tidepool-org/platform/net/net.go:54.48,55.17 1 96 +github.com/tidepool-org/platform/net/net.go:55.17,57.3 1 3 +github.com/tidepool-org/platform/net/net.go:57.8,57.56 1 93 +github.com/tidepool-org/platform/net/net.go:57.56,59.3 1 54 +github.com/tidepool-org/platform/net/net.go:59.8,59.70 1 39 +github.com/tidepool-org/platform/net/net.go:59.70,61.3 1 3 +github.com/tidepool-org/platform/net/net.go:62.2,62.12 1 36 +github.com/tidepool-org/platform/net/net.go:65.48,67.2 1 7 +github.com/tidepool-org/platform/net/net.go:69.84,71.2 1 7 +github.com/tidepool-org/platform/net/net.go:73.50,74.17 1 21 +github.com/tidepool-org/platform/net/net.go:74.17,76.3 1 3 +github.com/tidepool-org/platform/net/net.go:76.8,76.54 1 18 +github.com/tidepool-org/platform/net/net.go:76.54,78.3 1 9 +github.com/tidepool-org/platform/net/net.go:78.8,78.72 1 9 +github.com/tidepool-org/platform/net/net.go:78.72,80.3 1 3 +github.com/tidepool-org/platform/net/net.go:81.2,81.12 1 6 +github.com/tidepool-org/platform/net/net.go:84.36,86.2 1 7 +github.com/tidepool-org/platform/net/net.go:88.72,90.2 1 7 +github.com/tidepool-org/platform/net/net.go:92.38,93.17 1 21 +github.com/tidepool-org/platform/net/net.go:93.17,95.3 1 3 +github.com/tidepool-org/platform/net/net.go:95.8,95.105 1 18 +github.com/tidepool-org/platform/net/net.go:95.105,97.3 1 9 +github.com/tidepool-org/platform/net/net.go:97.8,97.60 1 9 +github.com/tidepool-org/platform/net/net.go:97.60,99.3 1 3 +github.com/tidepool-org/platform/net/net.go:100.2,100.12 1 6 +github.com/tidepool-org/platform/net/net.go:103.62,105.2 1 18 +github.com/tidepool-org/platform/net/net.go:107.66,109.2 1 74 +github.com/tidepool-org/platform/net/net.go:111.68,113.2 1 14 +github.com/tidepool-org/platform/net/net.go:115.56,117.2 1 14 diff --git a/vendor/github.com/tidepool-org/platform/origin/cover.out b/vendor/github.com/tidepool-org/platform/origin/cover.out new file mode 100644 index 000000000..dfb5e30cb --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/origin/cover.out @@ -0,0 +1,10 @@ +mode: atomic +github.com/tidepool-org/platform/origin/origin.go:20.23,27.2 1 62 +github.com/tidepool-org/platform/origin/origin.go:38.57,39.22 1 2 +github.com/tidepool-org/platform/origin/origin.go:39.22,41.3 1 1 +github.com/tidepool-org/platform/origin/origin.go:42.2,44.14 3 1 +github.com/tidepool-org/platform/origin/origin.go:47.26,49.2 1 36 +github.com/tidepool-org/platform/origin/origin.go:51.55,58.2 6 3 +github.com/tidepool-org/platform/origin/origin.go:60.58,63.22 3 27 +github.com/tidepool-org/platform/origin/origin.go:63.22,65.3 1 26 +github.com/tidepool-org/platform/origin/origin.go:66.2,68.97 3 27 diff --git a/vendor/github.com/tidepool-org/platform/origin/origin.coverprofile b/vendor/github.com/tidepool-org/platform/origin/origin.coverprofile new file mode 100644 index 000000000..dfb5e30cb --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/origin/origin.coverprofile @@ -0,0 +1,10 @@ +mode: atomic +github.com/tidepool-org/platform/origin/origin.go:20.23,27.2 1 62 +github.com/tidepool-org/platform/origin/origin.go:38.57,39.22 1 2 +github.com/tidepool-org/platform/origin/origin.go:39.22,41.3 1 1 +github.com/tidepool-org/platform/origin/origin.go:42.2,44.14 3 1 +github.com/tidepool-org/platform/origin/origin.go:47.26,49.2 1 36 +github.com/tidepool-org/platform/origin/origin.go:51.55,58.2 6 3 +github.com/tidepool-org/platform/origin/origin.go:60.58,63.22 3 27 +github.com/tidepool-org/platform/origin/origin.go:63.22,65.3 1 26 +github.com/tidepool-org/platform/origin/origin.go:66.2,68.97 3 27 diff --git a/vendor/github.com/tidepool-org/platform/page/cover.out b/vendor/github.com/tidepool-org/platform/page/cover.out new file mode 100644 index 000000000..96b5f5663 --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/page/cover.out @@ -0,0 +1,12 @@ +mode: atomic +github.com/tidepool-org/platform/page/pagination.go:26.34,31.2 1 30 +github.com/tidepool-org/platform/page/pagination.go:33.59,34.45 1 6 +github.com/tidepool-org/platform/page/pagination.go:34.45,36.3 1 3 +github.com/tidepool-org/platform/page/pagination.go:37.2,37.45 1 6 +github.com/tidepool-org/platform/page/pagination.go:37.45,39.3 1 3 +github.com/tidepool-org/platform/page/pagination.go:42.62,45.2 2 5 +github.com/tidepool-org/platform/page/pagination.go:47.61,49.37 2 3 +github.com/tidepool-org/platform/page/pagination.go:49.37,51.3 1 2 +github.com/tidepool-org/platform/page/pagination.go:52.2,52.37 1 3 +github.com/tidepool-org/platform/page/pagination.go:52.37,54.3 1 2 +github.com/tidepool-org/platform/page/pagination.go:55.2,55.68 1 3 diff --git a/vendor/github.com/tidepool-org/platform/page/page.coverprofile b/vendor/github.com/tidepool-org/platform/page/page.coverprofile new file mode 100644 index 000000000..96b5f5663 --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/page/page.coverprofile @@ -0,0 +1,12 @@ +mode: atomic +github.com/tidepool-org/platform/page/pagination.go:26.34,31.2 1 30 +github.com/tidepool-org/platform/page/pagination.go:33.59,34.45 1 6 +github.com/tidepool-org/platform/page/pagination.go:34.45,36.3 1 3 +github.com/tidepool-org/platform/page/pagination.go:37.2,37.45 1 6 +github.com/tidepool-org/platform/page/pagination.go:37.45,39.3 1 3 +github.com/tidepool-org/platform/page/pagination.go:42.62,45.2 2 5 +github.com/tidepool-org/platform/page/pagination.go:47.61,49.37 2 3 +github.com/tidepool-org/platform/page/pagination.go:49.37,51.3 1 2 +github.com/tidepool-org/platform/page/pagination.go:52.2,52.37 1 3 +github.com/tidepool-org/platform/page/pagination.go:52.37,54.3 1 2 +github.com/tidepool-org/platform/page/pagination.go:55.2,55.68 1 3 diff --git a/vendor/github.com/tidepool-org/platform/permission/cover.out b/vendor/github.com/tidepool-org/platform/permission/cover.out new file mode 100644 index 000000000..fa20e3a94 --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/permission/cover.out @@ -0,0 +1,7 @@ +mode: atomic +github.com/tidepool-org/platform/permission/permission.go:22.63,23.51 1 0 +github.com/tidepool-org/platform/permission/permission.go:23.51,24.38 1 0 +github.com/tidepool-org/platform/permission/permission.go:24.38,26.4 1 0 +github.com/tidepool-org/platform/permission/permission.go:27.3,27.37 1 0 +github.com/tidepool-org/platform/permission/permission.go:27.37,29.4 1 0 +github.com/tidepool-org/platform/permission/permission.go:31.2,31.20 1 0 diff --git a/vendor/github.com/tidepool-org/platform/permission/permission.coverprofile b/vendor/github.com/tidepool-org/platform/permission/permission.coverprofile new file mode 100644 index 000000000..fa20e3a94 --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/permission/permission.coverprofile @@ -0,0 +1,7 @@ +mode: atomic +github.com/tidepool-org/platform/permission/permission.go:22.63,23.51 1 0 +github.com/tidepool-org/platform/permission/permission.go:23.51,24.38 1 0 +github.com/tidepool-org/platform/permission/permission.go:24.38,26.4 1 0 +github.com/tidepool-org/platform/permission/permission.go:27.3,27.37 1 0 +github.com/tidepool-org/platform/permission/permission.go:27.37,29.4 1 0 +github.com/tidepool-org/platform/permission/permission.go:31.2,31.20 1 0 diff --git a/vendor/github.com/tidepool-org/platform/permission/permission.go b/vendor/github.com/tidepool-org/platform/permission/permission.go new file mode 100644 index 000000000..1d5bac961 --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/permission/permission.go @@ -0,0 +1,32 @@ +package permission + +import ( + "context" +) + +type Permission map[string]interface{} +type Permissions map[string]Permission + +const ( + Follow = "follow" + Custodian = "custodian" + Owner = "root" + Read = "view" + Write = "upload" +) + +type Client interface { + GetUserPermissions(ctx context.Context, requestUserID string, targetUserID string) (Permissions, error) +} + +func FixOwnerPermissions(permissions Permissions) Permissions { + if ownerPermission, ok := permissions[Owner]; ok { + if _, ok = permissions[Write]; !ok { + permissions[Write] = ownerPermission + } + if _, ok = permissions[Read]; !ok { + permissions[Read] = ownerPermission + } + } + return permissions +} diff --git a/vendor/github.com/tidepool-org/platform/platform/client.go b/vendor/github.com/tidepool-org/platform/platform/client.go new file mode 100644 index 000000000..aadac65d4 --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/platform/client.go @@ -0,0 +1,110 @@ +package platform + +import ( + "context" + "io" + "net/http" + + "github.com/tidepool-org/platform/auth" + "github.com/tidepool-org/platform/client" + "github.com/tidepool-org/platform/errors" + "github.com/tidepool-org/platform/request" +) + +type AuthorizeAs int + +const ( + AuthorizeAsService AuthorizeAs = iota + AuthorizeAsUser +) + +type Client struct { + *client.Client + authorizeAs AuthorizeAs + serviceSecret string + httpClient *http.Client +} + +func NewClient(cfg *Config, authorizeAs AuthorizeAs) (*Client, error) { + if cfg == nil { + return nil, errors.New("config is missing") + } else if err := cfg.Validate(); err != nil { + return nil, errors.Wrap(err, "config is invalid") + } + if authorizeAs != AuthorizeAsService && authorizeAs != AuthorizeAsUser { + return nil, errors.New("authorize as is invalid") + } + + clnt, err := client.New(cfg.Config) + if err != nil { + return nil, err + } + + // FUTURE: Use once all services support service secret + // if authorizeAs == AuthorizeAsService { + // if cfg.ServiceSecret == "" { + // return errors.New("service secret is missing") + // } + // } + + return &Client{ + Client: clnt, + authorizeAs: authorizeAs, + serviceSecret: cfg.ServiceSecret, + httpClient: &http.Client{}, + }, nil +} + +func (c *Client) IsAuthorizeAsService() bool { + return c.authorizeAs == AuthorizeAsService +} + +func (c *Client) Mutators(ctx context.Context) ([]request.RequestMutator, error) { + if ctx == nil { + return nil, errors.New("context is missing") + } + + var authorizationMutator request.RequestMutator + if c.IsAuthorizeAsService() { + if c.serviceSecret != "" { + authorizationMutator = NewServiceSecretHeaderMutator(c.serviceSecret) + } else if serverSessionToken := auth.ServerSessionTokenFromContext(ctx); serverSessionToken != "" { + authorizationMutator = NewSessionTokenHeaderMutator(serverSessionToken) + } else { + // TODO: Should this really error? It might be nice to allow other + // clients the option of handling authentication on their own if + // they'd like, rather than enforcing that this method must be + // used. + return nil, errors.New("service secret is missing") + } + } else { + details := request.GetAuthDetails(ctx) + if details == nil { + return nil, errors.New("details is missing") + } + authorizationMutator = NewSessionTokenHeaderMutator(details.Token()) + } + return []request.RequestMutator{authorizationMutator, NewTraceMutator(ctx)}, nil +} + +func (c *Client) HTTPClient() *http.Client { + return c.httpClient +} + +func (c *Client) RequestStream(ctx context.Context, method string, url string, mutators []request.RequestMutator, requestBody interface{}, inspectors ...request.ResponseInspector) (io.ReadCloser, error) { + clientMutators, err := c.Mutators(ctx) + if err != nil { + return nil, err + } + + return c.RequestStreamWithHTTPClient(ctx, method, url, append(mutators, clientMutators...), requestBody, inspectors, c.HTTPClient()) +} + +func (c *Client) RequestData(ctx context.Context, method string, url string, mutators []request.RequestMutator, requestBody interface{}, responseBody interface{}, inspectors ...request.ResponseInspector) error { + clientMutators, err := c.Mutators(ctx) + if err != nil { + return err + } + + return c.RequestDataWithHTTPClient(ctx, method, url, append(mutators, clientMutators...), requestBody, responseBody, inspectors, c.HTTPClient()) +} diff --git a/vendor/github.com/tidepool-org/platform/platform/config.go b/vendor/github.com/tidepool-org/platform/platform/config.go new file mode 100644 index 000000000..f9de53581 --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/platform/config.go @@ -0,0 +1,76 @@ +package platform + +import ( + "github.com/kelseyhightower/envconfig" + + "github.com/tidepool-org/platform/client" + "github.com/tidepool-org/platform/config" +) + +// Config extends client.Config with additional properties. +type Config struct { + *client.Config + ServiceSecret string `envconfig:"TIDEPOOL_SERVICE_SECRET"` // this should be overridden for loaders using envconfig +} + +func NewConfig() *Config { + return &Config{ + Config: client.NewConfig(), + } +} + +func (c *Config) Load(loader ConfigLoader) error { + return loader.Load(c) +} + +// ConfigLoader abstracts the method by which config values are loaded. +type ConfigLoader interface { + Load(*Config) error +} + +// configReporterLoader adapts config.Reporter to implement ConfigLoader. +type configReporterLoader struct { + Reporter config.Reporter + client.ConfigLoader +} + +func NewConfigReporterLoader(reporter config.Reporter) *configReporterLoader { + return &configReporterLoader{ + ConfigLoader: client.NewConfigReporterLoader(reporter), + Reporter: reporter, + } +} + +// LoadPlatform implements ConfigLoader. +func (l *configReporterLoader) Load(cfg *Config) error { + if err := l.ConfigLoader.Load(cfg.Config); err != nil { + return err + } + cfg.ServiceSecret = l.Reporter.GetWithDefault("service_secret", cfg.ServiceSecret) + return nil +} + +// envconfigLoader adapts envconfig to implement ConfigLoader. +type envconfigLoader struct { + client.ConfigLoader +} + +// NewEnvconfigLoader loads values via envconfig. +// +// If loader is nil, it defaults to envconfig for client values. +func NewEnvconfigLoader(loader client.ConfigLoader) *envconfigLoader { + if loader == nil { + loader = client.NewEnvconfigLoader() + } + return &envconfigLoader{ + ConfigLoader: loader, + } +} + +// Load implements ConfigLoader. +func (l *envconfigLoader) Load(cfg *Config) error { + if err := l.ConfigLoader.Load(cfg.Config); err != nil { + return err + } + return envconfig.Process(client.EnvconfigEmptyPrefix, cfg) +} diff --git a/vendor/github.com/tidepool-org/platform/platform/cover.out b/vendor/github.com/tidepool-org/platform/platform/cover.out new file mode 100644 index 000000000..58281f135 --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/platform/cover.out @@ -0,0 +1,56 @@ +mode: atomic +github.com/tidepool-org/platform/platform/client.go:30.71,31.16 1 35 +github.com/tidepool-org/platform/platform/client.go:31.16,33.3 1 1 +github.com/tidepool-org/platform/platform/client.go:33.8,33.46 1 34 +github.com/tidepool-org/platform/platform/client.go:33.46,35.3 1 1 +github.com/tidepool-org/platform/platform/client.go:36.2,36.73 1 33 +github.com/tidepool-org/platform/platform/client.go:36.73,38.3 1 1 +github.com/tidepool-org/platform/platform/client.go:40.2,41.16 2 32 +github.com/tidepool-org/platform/platform/client.go:41.16,43.3 1 0 +github.com/tidepool-org/platform/platform/client.go:51.2,52.24 2 32 +github.com/tidepool-org/platform/platform/client.go:52.24,54.3 1 0 +github.com/tidepool-org/platform/platform/client.go:54.8,56.3 1 32 +github.com/tidepool-org/platform/platform/client.go:58.2,67.8 2 32 +github.com/tidepool-org/platform/platform/client.go:70.46,72.2 1 23 +github.com/tidepool-org/platform/platform/client.go:74.82,75.16 1 27 +github.com/tidepool-org/platform/platform/client.go:75.16,77.3 1 6 +github.com/tidepool-org/platform/platform/client.go:79.2,80.30 2 21 +github.com/tidepool-org/platform/platform/client.go:80.30,81.28 1 11 +github.com/tidepool-org/platform/platform/client.go:81.28,83.4 1 9 +github.com/tidepool-org/platform/platform/client.go:83.9,83.101 1 2 +github.com/tidepool-org/platform/platform/client.go:83.101,85.4 1 1 +github.com/tidepool-org/platform/platform/client.go:85.9,87.4 1 1 +github.com/tidepool-org/platform/platform/client.go:88.8,90.21 2 10 +github.com/tidepool-org/platform/platform/client.go:90.21,92.4 1 1 +github.com/tidepool-org/platform/platform/client.go:93.3,93.71 1 9 +github.com/tidepool-org/platform/platform/client.go:95.2,95.82 1 19 +github.com/tidepool-org/platform/platform/client.go:98.44,100.2 1 18 +github.com/tidepool-org/platform/platform/client.go:102.204,104.16 2 10 +github.com/tidepool-org/platform/platform/client.go:104.16,106.3 1 2 +github.com/tidepool-org/platform/platform/client.go:108.2,108.134 1 8 +github.com/tidepool-org/platform/platform/client.go:111.211,113.16 2 10 +github.com/tidepool-org/platform/platform/client.go:113.16,115.3 1 2 +github.com/tidepool-org/platform/platform/client.go:117.2,117.146 1 8 +github.com/tidepool-org/platform/platform/config.go:13.26,17.2 1 46 +github.com/tidepool-org/platform/platform/config.go:19.61,20.54 1 5 +github.com/tidepool-org/platform/platform/config.go:20.54,22.3 1 1 +github.com/tidepool-org/platform/platform/config.go:24.2,26.12 2 4 +github.com/tidepool-org/platform/platform/mutator.go:16.83,20.2 1 17 +github.com/tidepool-org/platform/platform/mutator.go:22.76,23.33 1 6 +github.com/tidepool-org/platform/platform/mutator.go:23.33,25.3 1 1 +github.com/tidepool-org/platform/platform/mutator.go:27.2,27.43 1 5 +github.com/tidepool-org/platform/platform/mutator.go:34.98,38.2 1 5 +github.com/tidepool-org/platform/platform/mutator.go:40.82,41.36 1 2 +github.com/tidepool-org/platform/platform/mutator.go:41.36,43.3 1 1 +github.com/tidepool-org/platform/platform/mutator.go:45.2,45.46 1 1 +github.com/tidepool-org/platform/platform/mutator.go:52.86,56.2 1 15 +github.com/tidepool-org/platform/platform/mutator.go:58.77,59.33 1 6 +github.com/tidepool-org/platform/platform/mutator.go:59.33,61.3 1 1 +github.com/tidepool-org/platform/platform/mutator.go:63.2,63.43 1 5 +github.com/tidepool-org/platform/platform/mutator.go:70.57,74.2 1 26 +github.com/tidepool-org/platform/platform/mutator.go:76.63,77.16 1 10 +github.com/tidepool-org/platform/platform/mutator.go:77.16,79.3 1 1 +github.com/tidepool-org/platform/platform/mutator.go:81.2,81.22 1 9 +github.com/tidepool-org/platform/platform/mutator.go:81.22,82.59 1 9 +github.com/tidepool-org/platform/platform/mutator.go:82.59,84.4 1 0 +github.com/tidepool-org/platform/platform/mutator.go:87.2,87.12 1 9 diff --git a/vendor/github.com/tidepool-org/platform/platform/mutator.go b/vendor/github.com/tidepool-org/platform/platform/mutator.go new file mode 100644 index 000000000..a083f817b --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/platform/mutator.go @@ -0,0 +1,88 @@ +package platform + +import ( + "context" + "net/http" + + "github.com/tidepool-org/platform/auth" + "github.com/tidepool-org/platform/errors" + "github.com/tidepool-org/platform/request" +) + +type SessionTokenHeaderMutator struct { + *request.HeaderMutator +} + +func NewSessionTokenHeaderMutator(sessionToken string) *SessionTokenHeaderMutator { + return &SessionTokenHeaderMutator{ + HeaderMutator: request.NewHeaderMutator(auth.TidepoolSessionTokenHeaderKey, sessionToken), + } +} + +func (s *SessionTokenHeaderMutator) MutateRequest(req *http.Request) error { + if s.HeaderMutator.Value == "" { + return errors.New("session token is missing") + } + + return s.HeaderMutator.MutateRequest(req) +} + +type RestrictedTokenParameterMutator struct { + *request.ParameterMutator +} + +func NewRestrictedTokenParameterMutator(restrictedToken string) *RestrictedTokenParameterMutator { + return &RestrictedTokenParameterMutator{ + ParameterMutator: request.NewParameterMutator(auth.TidepoolRestrictedTokenParameterKey, restrictedToken), + } +} + +func (r *RestrictedTokenParameterMutator) MutateRequest(req *http.Request) error { + if r.ParameterMutator.Value == "" { + return errors.New("restricted token is missing") + } + + return r.ParameterMutator.MutateRequest(req) +} + +type ServiceSecretHeaderMutator struct { + *request.HeaderMutator +} + +func NewServiceSecretHeaderMutator(serviceSecret string) *ServiceSecretHeaderMutator { + return &ServiceSecretHeaderMutator{ + HeaderMutator: request.NewHeaderMutator(auth.TidepoolServiceSecretHeaderKey, serviceSecret), + } +} + +func (s *ServiceSecretHeaderMutator) MutateRequest(req *http.Request) error { + if s.HeaderMutator.Value == "" { + return errors.New("service secret is missing") + } + + return s.HeaderMutator.MutateRequest(req) +} + +type TraceMutator struct { + Context context.Context +} + +func NewTraceMutator(ctx context.Context) *TraceMutator { + return &TraceMutator{ + Context: ctx, + } +} + +func (t *TraceMutator) MutateRequest(req *http.Request) error { + if req == nil { + return errors.New("request is missing") + } + + if t.Context != nil { + if err := request.CopyTrace(t.Context, req); err != nil { + return errors.Wrapf(err, "unable to copy trace") + } + } + + return nil +} diff --git a/vendor/github.com/tidepool-org/platform/platform/platform.coverprofile b/vendor/github.com/tidepool-org/platform/platform/platform.coverprofile new file mode 100644 index 000000000..58281f135 --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/platform/platform.coverprofile @@ -0,0 +1,56 @@ +mode: atomic +github.com/tidepool-org/platform/platform/client.go:30.71,31.16 1 35 +github.com/tidepool-org/platform/platform/client.go:31.16,33.3 1 1 +github.com/tidepool-org/platform/platform/client.go:33.8,33.46 1 34 +github.com/tidepool-org/platform/platform/client.go:33.46,35.3 1 1 +github.com/tidepool-org/platform/platform/client.go:36.2,36.73 1 33 +github.com/tidepool-org/platform/platform/client.go:36.73,38.3 1 1 +github.com/tidepool-org/platform/platform/client.go:40.2,41.16 2 32 +github.com/tidepool-org/platform/platform/client.go:41.16,43.3 1 0 +github.com/tidepool-org/platform/platform/client.go:51.2,52.24 2 32 +github.com/tidepool-org/platform/platform/client.go:52.24,54.3 1 0 +github.com/tidepool-org/platform/platform/client.go:54.8,56.3 1 32 +github.com/tidepool-org/platform/platform/client.go:58.2,67.8 2 32 +github.com/tidepool-org/platform/platform/client.go:70.46,72.2 1 23 +github.com/tidepool-org/platform/platform/client.go:74.82,75.16 1 27 +github.com/tidepool-org/platform/platform/client.go:75.16,77.3 1 6 +github.com/tidepool-org/platform/platform/client.go:79.2,80.30 2 21 +github.com/tidepool-org/platform/platform/client.go:80.30,81.28 1 11 +github.com/tidepool-org/platform/platform/client.go:81.28,83.4 1 9 +github.com/tidepool-org/platform/platform/client.go:83.9,83.101 1 2 +github.com/tidepool-org/platform/platform/client.go:83.101,85.4 1 1 +github.com/tidepool-org/platform/platform/client.go:85.9,87.4 1 1 +github.com/tidepool-org/platform/platform/client.go:88.8,90.21 2 10 +github.com/tidepool-org/platform/platform/client.go:90.21,92.4 1 1 +github.com/tidepool-org/platform/platform/client.go:93.3,93.71 1 9 +github.com/tidepool-org/platform/platform/client.go:95.2,95.82 1 19 +github.com/tidepool-org/platform/platform/client.go:98.44,100.2 1 18 +github.com/tidepool-org/platform/platform/client.go:102.204,104.16 2 10 +github.com/tidepool-org/platform/platform/client.go:104.16,106.3 1 2 +github.com/tidepool-org/platform/platform/client.go:108.2,108.134 1 8 +github.com/tidepool-org/platform/platform/client.go:111.211,113.16 2 10 +github.com/tidepool-org/platform/platform/client.go:113.16,115.3 1 2 +github.com/tidepool-org/platform/platform/client.go:117.2,117.146 1 8 +github.com/tidepool-org/platform/platform/config.go:13.26,17.2 1 46 +github.com/tidepool-org/platform/platform/config.go:19.61,20.54 1 5 +github.com/tidepool-org/platform/platform/config.go:20.54,22.3 1 1 +github.com/tidepool-org/platform/platform/config.go:24.2,26.12 2 4 +github.com/tidepool-org/platform/platform/mutator.go:16.83,20.2 1 17 +github.com/tidepool-org/platform/platform/mutator.go:22.76,23.33 1 6 +github.com/tidepool-org/platform/platform/mutator.go:23.33,25.3 1 1 +github.com/tidepool-org/platform/platform/mutator.go:27.2,27.43 1 5 +github.com/tidepool-org/platform/platform/mutator.go:34.98,38.2 1 5 +github.com/tidepool-org/platform/platform/mutator.go:40.82,41.36 1 2 +github.com/tidepool-org/platform/platform/mutator.go:41.36,43.3 1 1 +github.com/tidepool-org/platform/platform/mutator.go:45.2,45.46 1 1 +github.com/tidepool-org/platform/platform/mutator.go:52.86,56.2 1 15 +github.com/tidepool-org/platform/platform/mutator.go:58.77,59.33 1 6 +github.com/tidepool-org/platform/platform/mutator.go:59.33,61.3 1 1 +github.com/tidepool-org/platform/platform/mutator.go:63.2,63.43 1 5 +github.com/tidepool-org/platform/platform/mutator.go:70.57,74.2 1 26 +github.com/tidepool-org/platform/platform/mutator.go:76.63,77.16 1 10 +github.com/tidepool-org/platform/platform/mutator.go:77.16,79.3 1 1 +github.com/tidepool-org/platform/platform/mutator.go:81.2,81.22 1 9 +github.com/tidepool-org/platform/platform/mutator.go:81.22,82.59 1 9 +github.com/tidepool-org/platform/platform/mutator.go:82.59,84.4 1 0 +github.com/tidepool-org/platform/platform/mutator.go:87.2,87.12 1 9 diff --git a/vendor/github.com/tidepool-org/platform/pointer/cover.out b/vendor/github.com/tidepool-org/platform/pointer/cover.out new file mode 100644 index 000000000..48af71c14 --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/pointer/cover.out @@ -0,0 +1,115 @@ +mode: atomic +github.com/tidepool-org/platform/pointer/clone.go:5.36,6.19 1 2 +github.com/tidepool-org/platform/pointer/clone.go:6.19,8.3 1 1 +github.com/tidepool-org/platform/pointer/clone.go:9.2,10.15 2 1 +github.com/tidepool-org/platform/pointer/clone.go:13.58,14.19 1 2 +github.com/tidepool-org/platform/pointer/clone.go:14.19,16.3 1 1 +github.com/tidepool-org/platform/pointer/clone.go:17.2,18.15 2 1 +github.com/tidepool-org/platform/pointer/clone.go:21.45,22.19 1 2 +github.com/tidepool-org/platform/pointer/clone.go:22.19,24.3 1 1 +github.com/tidepool-org/platform/pointer/clone.go:25.2,26.15 2 1 +github.com/tidepool-org/platform/pointer/clone.go:29.33,30.19 1 2 +github.com/tidepool-org/platform/pointer/clone.go:30.19,32.3 1 1 +github.com/tidepool-org/platform/pointer/clone.go:33.2,34.15 2 1 +github.com/tidepool-org/platform/pointer/clone.go:37.42,38.19 1 2 +github.com/tidepool-org/platform/pointer/clone.go:38.19,40.3 1 1 +github.com/tidepool-org/platform/pointer/clone.go:41.2,42.15 2 1 +github.com/tidepool-org/platform/pointer/clone.go:45.51,46.19 1 4 +github.com/tidepool-org/platform/pointer/clone.go:46.19,48.3 1 1 +github.com/tidepool-org/platform/pointer/clone.go:49.2,50.20 2 3 +github.com/tidepool-org/platform/pointer/clone.go:50.20,53.3 2 2 +github.com/tidepool-org/platform/pointer/clone.go:54.2,54.15 1 3 +github.com/tidepool-org/platform/pointer/clone.go:57.46,58.19 1 2 +github.com/tidepool-org/platform/pointer/clone.go:58.19,60.3 1 1 +github.com/tidepool-org/platform/pointer/clone.go:61.2,62.15 2 1 +github.com/tidepool-org/platform/pointer/default.go:5.56,6.18 1 2 +github.com/tidepool-org/platform/pointer/default.go:6.18,8.3 1 1 +github.com/tidepool-org/platform/pointer/default.go:9.2,9.14 1 1 +github.com/tidepool-org/platform/pointer/default.go:12.87,13.18 1 2 +github.com/tidepool-org/platform/pointer/default.go:13.18,15.3 1 1 +github.com/tidepool-org/platform/pointer/default.go:16.2,16.14 1 1 +github.com/tidepool-org/platform/pointer/default.go:19.68,20.18 1 2 +github.com/tidepool-org/platform/pointer/default.go:20.18,22.3 1 1 +github.com/tidepool-org/platform/pointer/default.go:23.2,23.14 1 1 +github.com/tidepool-org/platform/pointer/default.go:26.52,27.18 1 2 +github.com/tidepool-org/platform/pointer/default.go:27.18,29.3 1 1 +github.com/tidepool-org/platform/pointer/default.go:30.2,30.14 1 1 +github.com/tidepool-org/platform/pointer/default.go:33.64,34.18 1 2 +github.com/tidepool-org/platform/pointer/default.go:34.18,36.3 1 1 +github.com/tidepool-org/platform/pointer/default.go:37.2,37.14 1 1 +github.com/tidepool-org/platform/pointer/default.go:40.75,41.18 1 4 +github.com/tidepool-org/platform/pointer/default.go:41.18,43.3 1 1 +github.com/tidepool-org/platform/pointer/default.go:44.2,44.14 1 3 +github.com/tidepool-org/platform/pointer/default.go:47.71,48.18 1 2 +github.com/tidepool-org/platform/pointer/default.go:48.18,50.3 1 1 +github.com/tidepool-org/platform/pointer/default.go:51.2,51.14 1 1 +github.com/tidepool-org/platform/pointer/equal.go:5.39,6.30 1 9 +github.com/tidepool-org/platform/pointer/equal.go:6.30,8.3 1 4 +github.com/tidepool-org/platform/pointer/equal.go:8.8,8.33 1 5 +github.com/tidepool-org/platform/pointer/equal.go:8.33,10.3 1 1 +github.com/tidepool-org/platform/pointer/equal.go:11.2,11.17 1 4 +github.com/tidepool-org/platform/pointer/equal.go:14.61,15.30 1 5 +github.com/tidepool-org/platform/pointer/equal.go:15.30,17.3 1 2 +github.com/tidepool-org/platform/pointer/equal.go:17.8,17.33 1 3 +github.com/tidepool-org/platform/pointer/equal.go:17.33,19.3 1 1 +github.com/tidepool-org/platform/pointer/equal.go:20.2,20.17 1 2 +github.com/tidepool-org/platform/pointer/equal.go:23.48,24.30 1 5 +github.com/tidepool-org/platform/pointer/equal.go:24.30,26.3 1 2 +github.com/tidepool-org/platform/pointer/equal.go:26.8,26.33 1 3 +github.com/tidepool-org/platform/pointer/equal.go:26.33,28.3 1 1 +github.com/tidepool-org/platform/pointer/equal.go:29.2,29.17 1 2 +github.com/tidepool-org/platform/pointer/equal.go:32.36,33.30 1 5 +github.com/tidepool-org/platform/pointer/equal.go:33.30,35.3 1 2 +github.com/tidepool-org/platform/pointer/equal.go:35.8,35.33 1 3 +github.com/tidepool-org/platform/pointer/equal.go:35.33,37.3 1 1 +github.com/tidepool-org/platform/pointer/equal.go:38.2,38.17 1 2 +github.com/tidepool-org/platform/pointer/equal.go:41.45,42.30 1 5 +github.com/tidepool-org/platform/pointer/equal.go:42.30,44.3 1 2 +github.com/tidepool-org/platform/pointer/equal.go:44.8,44.33 1 3 +github.com/tidepool-org/platform/pointer/equal.go:44.33,46.3 1 1 +github.com/tidepool-org/platform/pointer/equal.go:47.2,47.17 1 2 +github.com/tidepool-org/platform/pointer/equal.go:50.54,51.30 1 12 +github.com/tidepool-org/platform/pointer/equal.go:51.30,53.3 1 4 +github.com/tidepool-org/platform/pointer/equal.go:53.8,53.33 1 8 +github.com/tidepool-org/platform/pointer/equal.go:53.33,55.3 1 1 +github.com/tidepool-org/platform/pointer/equal.go:56.2,56.24 1 7 +github.com/tidepool-org/platform/pointer/equal.go:56.24,58.3 1 4 +github.com/tidepool-org/platform/pointer/equal.go:59.2,59.24 1 3 +github.com/tidepool-org/platform/pointer/equal.go:59.24,60.33 1 4 +github.com/tidepool-org/platform/pointer/equal.go:60.33,62.4 1 1 +github.com/tidepool-org/platform/pointer/equal.go:64.2,64.13 1 2 +github.com/tidepool-org/platform/pointer/equal.go:67.49,68.30 1 7 +github.com/tidepool-org/platform/pointer/equal.go:68.30,70.3 1 2 +github.com/tidepool-org/platform/pointer/equal.go:70.8,70.33 1 5 +github.com/tidepool-org/platform/pointer/equal.go:70.33,72.3 1 1 +github.com/tidepool-org/platform/pointer/equal.go:73.2,73.20 1 4 +github.com/tidepool-org/platform/pointer/from.go:5.33,7.2 1 13 +github.com/tidepool-org/platform/pointer/from.go:9.55,11.2 1 7 +github.com/tidepool-org/platform/pointer/from.go:13.42,15.2 1 7 +github.com/tidepool-org/platform/pointer/from.go:17.30,19.2 1 7 +github.com/tidepool-org/platform/pointer/from.go:21.36,23.2 1 0 +github.com/tidepool-org/platform/pointer/from.go:25.39,27.2 1 7 +github.com/tidepool-org/platform/pointer/from.go:29.48,31.2 1 21 +github.com/tidepool-org/platform/pointer/from.go:33.43,35.2 1 11 +github.com/tidepool-org/platform/pointer/from.go:37.33,39.2 1 0 +github.com/tidepool-org/platform/pointer/to.go:5.29,6.16 1 2 +github.com/tidepool-org/platform/pointer/to.go:6.16,8.3 1 1 +github.com/tidepool-org/platform/pointer/to.go:9.2,9.13 1 1 +github.com/tidepool-org/platform/pointer/to.go:12.51,13.16 1 2 +github.com/tidepool-org/platform/pointer/to.go:13.16,15.3 1 1 +github.com/tidepool-org/platform/pointer/to.go:16.2,16.13 1 1 +github.com/tidepool-org/platform/pointer/to.go:19.38,20.16 1 2 +github.com/tidepool-org/platform/pointer/to.go:20.16,22.3 1 1 +github.com/tidepool-org/platform/pointer/to.go:23.2,23.13 1 1 +github.com/tidepool-org/platform/pointer/to.go:26.26,27.16 1 2 +github.com/tidepool-org/platform/pointer/to.go:27.16,29.3 1 1 +github.com/tidepool-org/platform/pointer/to.go:30.2,30.13 1 1 +github.com/tidepool-org/platform/pointer/to.go:33.35,34.16 1 2 +github.com/tidepool-org/platform/pointer/to.go:34.16,36.3 1 1 +github.com/tidepool-org/platform/pointer/to.go:37.2,37.13 1 1 +github.com/tidepool-org/platform/pointer/to.go:40.44,41.16 1 4 +github.com/tidepool-org/platform/pointer/to.go:41.16,43.3 1 1 +github.com/tidepool-org/platform/pointer/to.go:44.2,44.13 1 3 +github.com/tidepool-org/platform/pointer/to.go:47.39,48.16 1 2 +github.com/tidepool-org/platform/pointer/to.go:48.16,50.3 1 1 +github.com/tidepool-org/platform/pointer/to.go:51.2,51.13 1 1 diff --git a/vendor/github.com/tidepool-org/platform/pointer/pointer.coverprofile b/vendor/github.com/tidepool-org/platform/pointer/pointer.coverprofile new file mode 100644 index 000000000..48af71c14 --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/pointer/pointer.coverprofile @@ -0,0 +1,115 @@ +mode: atomic +github.com/tidepool-org/platform/pointer/clone.go:5.36,6.19 1 2 +github.com/tidepool-org/platform/pointer/clone.go:6.19,8.3 1 1 +github.com/tidepool-org/platform/pointer/clone.go:9.2,10.15 2 1 +github.com/tidepool-org/platform/pointer/clone.go:13.58,14.19 1 2 +github.com/tidepool-org/platform/pointer/clone.go:14.19,16.3 1 1 +github.com/tidepool-org/platform/pointer/clone.go:17.2,18.15 2 1 +github.com/tidepool-org/platform/pointer/clone.go:21.45,22.19 1 2 +github.com/tidepool-org/platform/pointer/clone.go:22.19,24.3 1 1 +github.com/tidepool-org/platform/pointer/clone.go:25.2,26.15 2 1 +github.com/tidepool-org/platform/pointer/clone.go:29.33,30.19 1 2 +github.com/tidepool-org/platform/pointer/clone.go:30.19,32.3 1 1 +github.com/tidepool-org/platform/pointer/clone.go:33.2,34.15 2 1 +github.com/tidepool-org/platform/pointer/clone.go:37.42,38.19 1 2 +github.com/tidepool-org/platform/pointer/clone.go:38.19,40.3 1 1 +github.com/tidepool-org/platform/pointer/clone.go:41.2,42.15 2 1 +github.com/tidepool-org/platform/pointer/clone.go:45.51,46.19 1 4 +github.com/tidepool-org/platform/pointer/clone.go:46.19,48.3 1 1 +github.com/tidepool-org/platform/pointer/clone.go:49.2,50.20 2 3 +github.com/tidepool-org/platform/pointer/clone.go:50.20,53.3 2 2 +github.com/tidepool-org/platform/pointer/clone.go:54.2,54.15 1 3 +github.com/tidepool-org/platform/pointer/clone.go:57.46,58.19 1 2 +github.com/tidepool-org/platform/pointer/clone.go:58.19,60.3 1 1 +github.com/tidepool-org/platform/pointer/clone.go:61.2,62.15 2 1 +github.com/tidepool-org/platform/pointer/default.go:5.56,6.18 1 2 +github.com/tidepool-org/platform/pointer/default.go:6.18,8.3 1 1 +github.com/tidepool-org/platform/pointer/default.go:9.2,9.14 1 1 +github.com/tidepool-org/platform/pointer/default.go:12.87,13.18 1 2 +github.com/tidepool-org/platform/pointer/default.go:13.18,15.3 1 1 +github.com/tidepool-org/platform/pointer/default.go:16.2,16.14 1 1 +github.com/tidepool-org/platform/pointer/default.go:19.68,20.18 1 2 +github.com/tidepool-org/platform/pointer/default.go:20.18,22.3 1 1 +github.com/tidepool-org/platform/pointer/default.go:23.2,23.14 1 1 +github.com/tidepool-org/platform/pointer/default.go:26.52,27.18 1 2 +github.com/tidepool-org/platform/pointer/default.go:27.18,29.3 1 1 +github.com/tidepool-org/platform/pointer/default.go:30.2,30.14 1 1 +github.com/tidepool-org/platform/pointer/default.go:33.64,34.18 1 2 +github.com/tidepool-org/platform/pointer/default.go:34.18,36.3 1 1 +github.com/tidepool-org/platform/pointer/default.go:37.2,37.14 1 1 +github.com/tidepool-org/platform/pointer/default.go:40.75,41.18 1 4 +github.com/tidepool-org/platform/pointer/default.go:41.18,43.3 1 1 +github.com/tidepool-org/platform/pointer/default.go:44.2,44.14 1 3 +github.com/tidepool-org/platform/pointer/default.go:47.71,48.18 1 2 +github.com/tidepool-org/platform/pointer/default.go:48.18,50.3 1 1 +github.com/tidepool-org/platform/pointer/default.go:51.2,51.14 1 1 +github.com/tidepool-org/platform/pointer/equal.go:5.39,6.30 1 9 +github.com/tidepool-org/platform/pointer/equal.go:6.30,8.3 1 4 +github.com/tidepool-org/platform/pointer/equal.go:8.8,8.33 1 5 +github.com/tidepool-org/platform/pointer/equal.go:8.33,10.3 1 1 +github.com/tidepool-org/platform/pointer/equal.go:11.2,11.17 1 4 +github.com/tidepool-org/platform/pointer/equal.go:14.61,15.30 1 5 +github.com/tidepool-org/platform/pointer/equal.go:15.30,17.3 1 2 +github.com/tidepool-org/platform/pointer/equal.go:17.8,17.33 1 3 +github.com/tidepool-org/platform/pointer/equal.go:17.33,19.3 1 1 +github.com/tidepool-org/platform/pointer/equal.go:20.2,20.17 1 2 +github.com/tidepool-org/platform/pointer/equal.go:23.48,24.30 1 5 +github.com/tidepool-org/platform/pointer/equal.go:24.30,26.3 1 2 +github.com/tidepool-org/platform/pointer/equal.go:26.8,26.33 1 3 +github.com/tidepool-org/platform/pointer/equal.go:26.33,28.3 1 1 +github.com/tidepool-org/platform/pointer/equal.go:29.2,29.17 1 2 +github.com/tidepool-org/platform/pointer/equal.go:32.36,33.30 1 5 +github.com/tidepool-org/platform/pointer/equal.go:33.30,35.3 1 2 +github.com/tidepool-org/platform/pointer/equal.go:35.8,35.33 1 3 +github.com/tidepool-org/platform/pointer/equal.go:35.33,37.3 1 1 +github.com/tidepool-org/platform/pointer/equal.go:38.2,38.17 1 2 +github.com/tidepool-org/platform/pointer/equal.go:41.45,42.30 1 5 +github.com/tidepool-org/platform/pointer/equal.go:42.30,44.3 1 2 +github.com/tidepool-org/platform/pointer/equal.go:44.8,44.33 1 3 +github.com/tidepool-org/platform/pointer/equal.go:44.33,46.3 1 1 +github.com/tidepool-org/platform/pointer/equal.go:47.2,47.17 1 2 +github.com/tidepool-org/platform/pointer/equal.go:50.54,51.30 1 12 +github.com/tidepool-org/platform/pointer/equal.go:51.30,53.3 1 4 +github.com/tidepool-org/platform/pointer/equal.go:53.8,53.33 1 8 +github.com/tidepool-org/platform/pointer/equal.go:53.33,55.3 1 1 +github.com/tidepool-org/platform/pointer/equal.go:56.2,56.24 1 7 +github.com/tidepool-org/platform/pointer/equal.go:56.24,58.3 1 4 +github.com/tidepool-org/platform/pointer/equal.go:59.2,59.24 1 3 +github.com/tidepool-org/platform/pointer/equal.go:59.24,60.33 1 4 +github.com/tidepool-org/platform/pointer/equal.go:60.33,62.4 1 1 +github.com/tidepool-org/platform/pointer/equal.go:64.2,64.13 1 2 +github.com/tidepool-org/platform/pointer/equal.go:67.49,68.30 1 7 +github.com/tidepool-org/platform/pointer/equal.go:68.30,70.3 1 2 +github.com/tidepool-org/platform/pointer/equal.go:70.8,70.33 1 5 +github.com/tidepool-org/platform/pointer/equal.go:70.33,72.3 1 1 +github.com/tidepool-org/platform/pointer/equal.go:73.2,73.20 1 4 +github.com/tidepool-org/platform/pointer/from.go:5.33,7.2 1 13 +github.com/tidepool-org/platform/pointer/from.go:9.55,11.2 1 7 +github.com/tidepool-org/platform/pointer/from.go:13.42,15.2 1 7 +github.com/tidepool-org/platform/pointer/from.go:17.30,19.2 1 7 +github.com/tidepool-org/platform/pointer/from.go:21.36,23.2 1 0 +github.com/tidepool-org/platform/pointer/from.go:25.39,27.2 1 7 +github.com/tidepool-org/platform/pointer/from.go:29.48,31.2 1 21 +github.com/tidepool-org/platform/pointer/from.go:33.43,35.2 1 11 +github.com/tidepool-org/platform/pointer/from.go:37.33,39.2 1 0 +github.com/tidepool-org/platform/pointer/to.go:5.29,6.16 1 2 +github.com/tidepool-org/platform/pointer/to.go:6.16,8.3 1 1 +github.com/tidepool-org/platform/pointer/to.go:9.2,9.13 1 1 +github.com/tidepool-org/platform/pointer/to.go:12.51,13.16 1 2 +github.com/tidepool-org/platform/pointer/to.go:13.16,15.3 1 1 +github.com/tidepool-org/platform/pointer/to.go:16.2,16.13 1 1 +github.com/tidepool-org/platform/pointer/to.go:19.38,20.16 1 2 +github.com/tidepool-org/platform/pointer/to.go:20.16,22.3 1 1 +github.com/tidepool-org/platform/pointer/to.go:23.2,23.13 1 1 +github.com/tidepool-org/platform/pointer/to.go:26.26,27.16 1 2 +github.com/tidepool-org/platform/pointer/to.go:27.16,29.3 1 1 +github.com/tidepool-org/platform/pointer/to.go:30.2,30.13 1 1 +github.com/tidepool-org/platform/pointer/to.go:33.35,34.16 1 2 +github.com/tidepool-org/platform/pointer/to.go:34.16,36.3 1 1 +github.com/tidepool-org/platform/pointer/to.go:37.2,37.13 1 1 +github.com/tidepool-org/platform/pointer/to.go:40.44,41.16 1 4 +github.com/tidepool-org/platform/pointer/to.go:41.16,43.3 1 1 +github.com/tidepool-org/platform/pointer/to.go:44.2,44.13 1 3 +github.com/tidepool-org/platform/pointer/to.go:47.39,48.16 1 2 +github.com/tidepool-org/platform/pointer/to.go:48.16,50.3 1 1 +github.com/tidepool-org/platform/pointer/to.go:51.2,51.13 1 1 diff --git a/vendor/github.com/tidepool-org/platform/request/cover.out b/vendor/github.com/tidepool-org/platform/request/cover.out new file mode 100644 index 000000000..f1210206a --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/request/cover.out @@ -0,0 +1,380 @@ +mode: atomic +github.com/tidepool-org/platform/request/condition.go:14.32,16.2 1 1 +github.com/tidepool-org/platform/request/condition.go:18.58,20.2 1 4 +github.com/tidepool-org/platform/request/condition.go:22.61,24.2 1 5 +github.com/tidepool-org/platform/request/condition.go:26.60,27.23 1 3 +github.com/tidepool-org/platform/request/condition.go:27.23,29.3 1 2 +github.com/tidepool-org/platform/request/condition.go:30.2,30.12 1 1 +github.com/tidepool-org/platform/request/errors.go:29.48,31.2 1 43 +github.com/tidepool-org/platform/request/errors.go:33.75,35.2 1 1 +github.com/tidepool-org/platform/request/errors.go:37.35,39.2 1 2 +github.com/tidepool-org/platform/request/errors.go:41.30,43.2 1 2 +github.com/tidepool-org/platform/request/errors.go:45.35,47.2 1 9 +github.com/tidepool-org/platform/request/errors.go:49.32,51.2 1 3 +github.com/tidepool-org/platform/request/errors.go:53.36,55.2 1 3 +github.com/tidepool-org/platform/request/errors.go:57.51,59.2 1 4 +github.com/tidepool-org/platform/request/errors.go:61.76,63.2 1 4 +github.com/tidepool-org/platform/request/errors.go:65.85,66.21 1 4 +github.com/tidepool-org/platform/request/errors.go:66.21,68.3 1 2 +github.com/tidepool-org/platform/request/errors.go:69.2,69.40 1 2 +github.com/tidepool-org/platform/request/errors.go:72.36,74.2 1 2 +github.com/tidepool-org/platform/request/errors.go:76.43,78.2 1 1 +github.com/tidepool-org/platform/request/errors.go:80.43,82.2 1 12 +github.com/tidepool-org/platform/request/errors.go:84.46,86.2 1 5 +github.com/tidepool-org/platform/request/errors.go:88.46,90.2 1 5 +github.com/tidepool-org/platform/request/errors.go:92.32,94.2 1 1 +github.com/tidepool-org/platform/request/errors.go:96.33,98.2 1 4 +github.com/tidepool-org/platform/request/errors.go:100.66,102.2 1 1 +github.com/tidepool-org/platform/request/errors.go:104.53,106.2 1 1 +github.com/tidepool-org/platform/request/errors.go:108.53,110.2 1 1 +github.com/tidepool-org/platform/request/errors.go:112.40,113.16 1 17 +github.com/tidepool-org/platform/request/errors.go:113.16,114.27 1 16 +github.com/tidepool-org/platform/request/errors.go:115.33,116.37 1 1 +github.com/tidepool-org/platform/request/errors.go:117.28,118.32 1 1 +github.com/tidepool-org/platform/request/errors.go:119.33,120.34 1 3 +github.com/tidepool-org/platform/request/errors.go:121.30,122.31 1 1 +github.com/tidepool-org/platform/request/errors.go:123.34,124.30 1 5 +github.com/tidepool-org/platform/request/errors.go:125.34,126.43 1 1 +github.com/tidepool-org/platform/request/errors.go:129.2,129.39 1 5 +github.com/tidepool-org/platform/request/errors.go:132.49,134.2 1 21 +github.com/tidepool-org/platform/request/errors.go:136.45,138.2 1 3 +github.com/tidepool-org/platform/request/errors.go:140.42,142.2 1 3 +github.com/tidepool-org/platform/request/errors.go:144.46,146.2 1 3 +github.com/tidepool-org/platform/request/inspector.go:17.46,19.2 1 6 +github.com/tidepool-org/platform/request/inspector.go:21.70,22.16 1 4 +github.com/tidepool-org/platform/request/inspector.go:22.16,24.3 1 1 +github.com/tidepool-org/platform/request/inspector.go:26.2,27.12 2 3 +github.com/tidepool-org/platform/request/mutator.go:22.64,27.2 1 52 +github.com/tidepool-org/platform/request/mutator.go:29.64,30.16 1 5 +github.com/tidepool-org/platform/request/mutator.go:30.16,32.3 1 1 +github.com/tidepool-org/platform/request/mutator.go:33.2,33.17 1 4 +github.com/tidepool-org/platform/request/mutator.go:33.17,35.3 1 1 +github.com/tidepool-org/platform/request/mutator.go:37.2,38.12 2 3 +github.com/tidepool-org/platform/request/mutator.go:41.71,42.16 1 42 +github.com/tidepool-org/platform/request/mutator.go:42.16,44.3 1 0 +github.com/tidepool-org/platform/request/mutator.go:45.2,45.17 1 42 +github.com/tidepool-org/platform/request/mutator.go:45.17,47.3 1 7 +github.com/tidepool-org/platform/request/mutator.go:49.2,50.12 2 35 +github.com/tidepool-org/platform/request/mutator.go:58.70,63.2 1 10 +github.com/tidepool-org/platform/request/mutator.go:65.67,66.16 1 7 +github.com/tidepool-org/platform/request/mutator.go:66.16,68.3 1 2 +github.com/tidepool-org/platform/request/mutator.go:69.2,69.17 1 5 +github.com/tidepool-org/platform/request/mutator.go:69.17,71.3 1 1 +github.com/tidepool-org/platform/request/mutator.go:73.2,76.12 4 4 +github.com/tidepool-org/platform/request/mutator.go:83.76,87.2 1 7 +github.com/tidepool-org/platform/request/mutator.go:89.68,90.16 1 5 +github.com/tidepool-org/platform/request/mutator.go:90.16,92.3 1 1 +github.com/tidepool-org/platform/request/mutator.go:94.2,95.39 2 4 +github.com/tidepool-org/platform/request/mutator.go:95.39,96.16 1 13 +github.com/tidepool-org/platform/request/mutator.go:96.16,98.4 1 1 +github.com/tidepool-org/platform/request/mutator.go:99.3,99.24 1 12 +github.com/tidepool-org/platform/request/mutator.go:101.2,103.12 2 3 +github.com/tidepool-org/platform/request/mutator.go:110.88,114.2 1 7 +github.com/tidepool-org/platform/request/mutator.go:116.73,117.16 1 5 +github.com/tidepool-org/platform/request/mutator.go:117.16,119.3 1 1 +github.com/tidepool-org/platform/request/mutator.go:121.2,122.40 2 4 +github.com/tidepool-org/platform/request/mutator.go:122.40,123.16 1 11 +github.com/tidepool-org/platform/request/mutator.go:123.16,125.4 1 1 +github.com/tidepool-org/platform/request/mutator.go:126.3,126.32 1 10 +github.com/tidepool-org/platform/request/mutator.go:126.32,128.4 1 18 +github.com/tidepool-org/platform/request/mutator.go:130.2,132.12 2 3 +github.com/tidepool-org/platform/request/parser.go:21.69,22.16 1 0 +github.com/tidepool-org/platform/request/parser.go:22.16,24.3 1 0 +github.com/tidepool-org/platform/request/parser.go:25.2,25.21 1 0 +github.com/tidepool-org/platform/request/parser.go:25.21,27.3 1 0 +github.com/tidepool-org/platform/request/parser.go:29.2,30.69 2 0 +github.com/tidepool-org/platform/request/parser.go:33.71,34.16 1 0 +github.com/tidepool-org/platform/request/parser.go:34.16,36.3 1 0 +github.com/tidepool-org/platform/request/parser.go:37.2,37.21 1 0 +github.com/tidepool-org/platform/request/parser.go:37.21,39.3 1 0 +github.com/tidepool-org/platform/request/parser.go:41.2,42.69 2 0 +github.com/tidepool-org/platform/request/parser.go:45.88,46.66 1 0 +github.com/tidepool-org/platform/request/parser.go:46.66,48.3 1 0 +github.com/tidepool-org/platform/request/parser.go:49.2,49.56 1 0 +github.com/tidepool-org/platform/request/parser.go:49.56,51.3 1 0 +github.com/tidepool-org/platform/request/parser.go:52.2,52.41 1 0 +github.com/tidepool-org/platform/request/parser.go:55.93,56.65 1 0 +github.com/tidepool-org/platform/request/parser.go:56.65,58.3 1 0 +github.com/tidepool-org/platform/request/parser.go:59.2,59.63 1 0 +github.com/tidepool-org/platform/request/parser.go:59.63,61.3 1 0 +github.com/tidepool-org/platform/request/parser.go:62.2,62.48 1 0 +github.com/tidepool-org/platform/request/parser.go:65.129,67.64 2 0 +github.com/tidepool-org/platform/request/parser.go:67.64,69.3 1 0 +github.com/tidepool-org/platform/request/parser.go:71.2,75.23 4 0 +github.com/tidepool-org/platform/request/parser.go:78.126,80.63 2 0 +github.com/tidepool-org/platform/request/parser.go:80.63,82.3 1 0 +github.com/tidepool-org/platform/request/parser.go:84.2,88.23 4 0 +github.com/tidepool-org/platform/request/parser.go:91.74,92.19 1 0 +github.com/tidepool-org/platform/request/parser.go:92.19,94.3 1 0 +github.com/tidepool-org/platform/request/parser.go:95.2,95.19 1 0 +github.com/tidepool-org/platform/request/parser.go:95.19,97.3 1 0 +github.com/tidepool-org/platform/request/parser.go:99.2,99.63 1 0 +github.com/tidepool-org/platform/request/parser.go:99.63,100.20 1 0 +github.com/tidepool-org/platform/request/parser.go:100.20,102.4 1 0 +github.com/tidepool-org/platform/request/parser.go:103.3,103.30 1 0 +github.com/tidepool-org/platform/request/parser.go:106.2,106.12 1 0 +github.com/tidepool-org/platform/request/parser.go:109.77,111.33 2 0 +github.com/tidepool-org/platform/request/parser.go:111.33,112.60 1 0 +github.com/tidepool-org/platform/request/parser.go:112.60,114.4 1 0 +github.com/tidepool-org/platform/request/parser.go:117.2,118.43 2 0 +github.com/tidepool-org/platform/request/parser.go:118.43,120.3 1 0 +github.com/tidepool-org/platform/request/parser.go:121.2,121.26 1 0 +github.com/tidepool-org/platform/request/parser.go:124.78,126.33 2 0 +github.com/tidepool-org/platform/request/parser.go:126.33,127.62 1 0 +github.com/tidepool-org/platform/request/parser.go:127.62,129.4 1 0 +github.com/tidepool-org/platform/request/parser.go:132.2,133.45 2 0 +github.com/tidepool-org/platform/request/parser.go:133.45,135.3 1 0 +github.com/tidepool-org/platform/request/parser.go:136.2,136.27 1 0 +github.com/tidepool-org/platform/request/parser.go:139.95,140.16 1 0 +github.com/tidepool-org/platform/request/parser.go:140.16,142.3 1 0 +github.com/tidepool-org/platform/request/parser.go:143.2,143.20 1 0 +github.com/tidepool-org/platform/request/parser.go:143.20,145.3 1 0 +github.com/tidepool-org/platform/request/parser.go:147.2,148.16 2 0 +github.com/tidepool-org/platform/request/parser.go:148.16,150.3 1 0 +github.com/tidepool-org/platform/request/parser.go:152.2,152.72 1 0 +github.com/tidepool-org/platform/request/parser.go:155.98,157.41 2 0 +github.com/tidepool-org/platform/request/parser.go:157.41,159.3 1 0 +github.com/tidepool-org/platform/request/parser.go:161.2,161.71 1 0 +github.com/tidepool-org/platform/request/parser.go:161.71,163.3 1 0 +github.com/tidepool-org/platform/request/parser.go:164.2,164.84 1 0 +github.com/tidepool-org/platform/request/parser.go:164.84,166.3 1 0 +github.com/tidepool-org/platform/request/parser.go:167.2,167.69 1 0 +github.com/tidepool-org/platform/request/parser.go:170.104,172.49 2 0 +github.com/tidepool-org/platform/request/parser.go:172.49,174.3 1 0 +github.com/tidepool-org/platform/request/parser.go:175.2,176.23 2 0 +github.com/tidepool-org/platform/request/parser.go:179.76,180.36 1 31 +github.com/tidepool-org/platform/request/parser.go:180.36,182.3 1 10 +github.com/tidepool-org/platform/request/parser.go:182.8,182.47 1 21 +github.com/tidepool-org/platform/request/parser.go:182.47,184.3 1 5 +github.com/tidepool-org/platform/request/parser.go:184.8,184.24 1 16 +github.com/tidepool-org/platform/request/parser.go:184.24,186.3 1 11 +github.com/tidepool-org/platform/request/parser.go:187.2,187.37 1 5 +github.com/tidepool-org/platform/request/parser.go:190.76,191.93 1 8 +github.com/tidepool-org/platform/request/parser.go:191.93,193.3 1 4 +github.com/tidepool-org/platform/request/parser.go:193.8,193.75 1 4 +github.com/tidepool-org/platform/request/parser.go:193.75,194.65 1 4 +github.com/tidepool-org/platform/request/parser.go:194.65,195.68 1 2 +github.com/tidepool-org/platform/request/parser.go:195.68,197.5 1 1 +github.com/tidepool-org/platform/request/parser.go:200.2,200.37 1 3 +github.com/tidepool-org/platform/request/parser.go:203.76,204.93 1 6 +github.com/tidepool-org/platform/request/parser.go:204.93,206.3 1 4 +github.com/tidepool-org/platform/request/parser.go:206.8,206.72 1 2 +github.com/tidepool-org/platform/request/parser.go:206.72,208.3 1 1 +github.com/tidepool-org/platform/request/parser.go:209.2,209.37 1 1 +github.com/tidepool-org/platform/request/parser.go:212.89,213.93 1 6 +github.com/tidepool-org/platform/request/parser.go:213.93,215.3 1 4 +github.com/tidepool-org/platform/request/parser.go:215.8,215.81 1 2 +github.com/tidepool-org/platform/request/parser.go:215.81,217.3 1 1 +github.com/tidepool-org/platform/request/parser.go:218.2,218.37 1 1 +github.com/tidepool-org/platform/request/parser.go:221.67,222.93 1 6 +github.com/tidepool-org/platform/request/parser.go:222.93,224.3 1 4 +github.com/tidepool-org/platform/request/parser.go:224.8,224.75 1 2 +github.com/tidepool-org/platform/request/parser.go:224.75,226.3 1 1 +github.com/tidepool-org/platform/request/parser.go:227.2,227.37 1 1 +github.com/tidepool-org/platform/request/request.go:17.62,18.16 1 0 +github.com/tidepool-org/platform/request/request.go:18.16,20.3 1 0 +github.com/tidepool-org/platform/request/request.go:21.2,21.16 1 0 +github.com/tidepool-org/platform/request/request.go:21.16,23.3 1 0 +github.com/tidepool-org/platform/request/request.go:25.2,25.70 1 0 +github.com/tidepool-org/platform/request/request.go:25.70,27.3 1 0 +github.com/tidepool-org/platform/request/request.go:28.2,28.70 1 0 +github.com/tidepool-org/platform/request/request.go:28.70,30.3 1 0 +github.com/tidepool-org/platform/request/request.go:32.2,32.12 1 0 +github.com/tidepool-org/platform/request/request.go:35.47,37.2 1 0 +github.com/tidepool-org/platform/request/request.go:39.51,41.2 1 0 +github.com/tidepool-org/platform/request/request.go:43.51,45.2 1 0 +github.com/tidepool-org/platform/request/request.go:67.69,73.2 1 0 +github.com/tidepool-org/platform/request/request.go:81.35,83.2 1 0 +github.com/tidepool-org/platform/request/request.go:85.36,87.2 1 0 +github.com/tidepool-org/platform/request/request.go:89.33,91.2 1 0 +github.com/tidepool-org/platform/request/request.go:93.35,95.2 1 0 +github.com/tidepool-org/platform/request/request.go:97.35,99.2 1 0 +github.com/tidepool-org/platform/request/request.go:101.34,103.2 1 0 +github.com/tidepool-org/platform/request/request.go:105.115,106.16 1 6 +github.com/tidepool-org/platform/request/request.go:106.16,108.3 1 1 +github.com/tidepool-org/platform/request/request.go:110.2,111.24 2 5 +github.com/tidepool-org/platform/request/request.go:111.24,113.3 1 2 +github.com/tidepool-org/platform/request/request.go:113.8,113.50 1 3 +github.com/tidepool-org/platform/request/request.go:113.50,115.3 1 1 +github.com/tidepool-org/platform/request/request.go:116.2,116.19 1 2 +github.com/tidepool-org/platform/request/request.go:119.124,120.16 1 6 +github.com/tidepool-org/platform/request/request.go:120.16,122.3 1 1 +github.com/tidepool-org/platform/request/request.go:124.2,125.24 2 5 +github.com/tidepool-org/platform/request/request.go:125.24,127.3 1 2 +github.com/tidepool-org/platform/request/request.go:127.8,127.50 1 3 +github.com/tidepool-org/platform/request/request.go:127.50,129.3 1 1 +github.com/tidepool-org/platform/request/request.go:130.2,130.20 1 2 +github.com/tidepool-org/platform/request/request.go:137.82,139.2 1 0 +github.com/tidepool-org/platform/request/request.go:141.54,142.16 1 5 +github.com/tidepool-org/platform/request/request.go:142.16,143.64 1 5 +github.com/tidepool-org/platform/request/request.go:143.64,145.4 1 0 +github.com/tidepool-org/platform/request/request.go:147.2,147.12 1 5 +github.com/tidepool-org/platform/request/request.go:152.91,154.2 1 0 +github.com/tidepool-org/platform/request/request.go:156.58,157.16 1 0 +github.com/tidepool-org/platform/request/request.go:157.16,158.73 1 0 +github.com/tidepool-org/platform/request/request.go:158.73,160.4 1 0 +github.com/tidepool-org/platform/request/request.go:162.2,162.11 1 0 +github.com/tidepool-org/platform/request/request.go:167.91,169.2 1 0 +github.com/tidepool-org/platform/request/request.go:171.58,172.16 1 0 +github.com/tidepool-org/platform/request/request.go:172.16,173.73 1 0 +github.com/tidepool-org/platform/request/request.go:173.73,175.4 1 0 +github.com/tidepool-org/platform/request/request.go:177.2,177.11 1 0 +github.com/tidepool-org/platform/request/request.go:186.38,188.2 1 9 +github.com/tidepool-org/platform/request/request.go:190.36,192.2 1 6 +github.com/tidepool-org/platform/request/request.go:194.39,196.2 1 4 +github.com/tidepool-org/platform/request/request.go:198.70,200.2 1 5 +github.com/tidepool-org/platform/request/request.go:202.65,203.16 1 35 +github.com/tidepool-org/platform/request/request.go:203.16,204.80 1 35 +github.com/tidepool-org/platform/request/request.go:204.80,206.4 1 7 +github.com/tidepool-org/platform/request/request.go:208.2,208.12 1 28 +github.com/tidepool-org/platform/request/request.go:211.53,212.71 1 5 +github.com/tidepool-org/platform/request/request.go:212.71,214.3 1 3 +github.com/tidepool-org/platform/request/request.go:215.2,215.12 1 2 +github.com/tidepool-org/platform/request/request.go:218.56,219.71 1 27 +github.com/tidepool-org/platform/request/request.go:219.71,221.3 1 2 +github.com/tidepool-org/platform/request/responder.go:23.78,25.16 2 3 +github.com/tidepool-org/platform/request/responder.go:25.16,26.13 1 2 +github.com/tidepool-org/platform/request/responder.go:28.2,28.18 1 1 +github.com/tidepool-org/platform/request/responder.go:31.83,32.16 1 45 +github.com/tidepool-org/platform/request/responder.go:32.16,34.3 1 2 +github.com/tidepool-org/platform/request/responder.go:35.2,35.16 1 43 +github.com/tidepool-org/platform/request/responder.go:35.16,37.3 1 2 +github.com/tidepool-org/platform/request/responder.go:38.2,41.8 1 41 +github.com/tidepool-org/platform/request/responder.go:44.52,45.19 1 4 +github.com/tidepool-org/platform/request/responder.go:45.19,47.3 1 3 +github.com/tidepool-org/platform/request/responder.go:50.87,51.51 1 3 +github.com/tidepool-org/platform/request/responder.go:51.51,53.3 1 1 +github.com/tidepool-org/platform/request/responder.go:53.8,55.3 1 2 +github.com/tidepool-org/platform/request/responder.go:58.72,60.51 1 3 +github.com/tidepool-org/platform/request/responder.go:60.51,62.3 1 1 +github.com/tidepool-org/platform/request/responder.go:62.8,64.3 1 2 +github.com/tidepool-org/platform/request/responder.go:67.86,68.51 1 33 +github.com/tidepool-org/platform/request/responder.go:68.51,70.3 1 4 +github.com/tidepool-org/platform/request/responder.go:70.8,72.90 2 29 +github.com/tidepool-org/platform/request/responder.go:72.90,74.4 1 0 +github.com/tidepool-org/platform/request/responder.go:74.9,74.68 1 29 +github.com/tidepool-org/platform/request/responder.go:74.68,76.4 1 29 +github.com/tidepool-org/platform/request/responder.go:80.85,82.2 1 3 +github.com/tidepool-org/platform/request/responder.go:84.91,85.19 1 4 +github.com/tidepool-org/platform/request/responder.go:85.19,87.3 1 1 +github.com/tidepool-org/platform/request/responder.go:87.8,87.58 1 3 +github.com/tidepool-org/platform/request/responder.go:87.58,89.3 1 1 +github.com/tidepool-org/platform/request/responder.go:89.8,91.62 2 2 +github.com/tidepool-org/platform/request/responder.go:91.62,93.4 1 2 +github.com/tidepool-org/platform/request/responder.go:97.89,98.17 1 8 +github.com/tidepool-org/platform/request/responder.go:98.17,100.3 1 1 +github.com/tidepool-org/platform/request/responder.go:100.8,100.64 1 7 +github.com/tidepool-org/platform/request/responder.go:100.64,102.3 1 1 +github.com/tidepool-org/platform/request/responder.go:102.8,102.71 1 6 +github.com/tidepool-org/platform/request/responder.go:102.71,104.3 1 1 +github.com/tidepool-org/platform/request/responder.go:104.8,106.3 1 5 +github.com/tidepool-org/platform/request/responder.go:109.83,110.16 1 24 +github.com/tidepool-org/platform/request/responder.go:110.16,112.3 1 1 +github.com/tidepool-org/platform/request/responder.go:112.8,114.81 2 23 +github.com/tidepool-org/platform/request/responder.go:114.81,116.4 1 1 +github.com/tidepool-org/platform/request/responder.go:116.9,118.4 1 22 +github.com/tidepool-org/platform/request/responder.go:122.81,123.16 1 19 +github.com/tidepool-org/platform/request/responder.go:123.16,125.3 1 1 +github.com/tidepool-org/platform/request/responder.go:125.8,125.45 1 18 +github.com/tidepool-org/platform/request/responder.go:125.45,127.3 1 16 +github.com/tidepool-org/platform/request/responder.go:128.2,128.59 1 19 +github.com/tidepool-org/platform/request/responder.go:131.81,132.16 1 5 +github.com/tidepool-org/platform/request/responder.go:132.16,134.3 1 1 +github.com/tidepool-org/platform/request/responder.go:135.2,135.89 1 4 +github.com/tidepool-org/platform/request/responder.go:135.89,137.3 1 2 +github.com/tidepool-org/platform/request/responder.go:137.8,139.3 1 2 +github.com/tidepool-org/platform/request/responder.go:140.2,140.13 1 4 +github.com/tidepool-org/platform/request/responder.go:143.70,144.35 1 42 +github.com/tidepool-org/platform/request/responder.go:144.35,145.77 1 42 +github.com/tidepool-org/platform/request/responder.go:145.77,147.4 1 7 +github.com/tidepool-org/platform/request/responder.go:149.2,149.12 1 35 +github.com/tidepool-org/platform/request/responder.go:152.54,153.47 1 7 +github.com/tidepool-org/platform/request/responder.go:153.47,155.3 1 5 +github.com/tidepool-org/platform/request/responder.go:156.2,156.12 1 2 +github.com/tidepool-org/platform/request/values_parser.go:19.53,21.2 1 0 +github.com/tidepool-org/platform/request/values_parser.go:23.85,25.19 2 0 +github.com/tidepool-org/platform/request/values_parser.go:25.19,27.3 1 0 +github.com/tidepool-org/platform/request/values_parser.go:29.2,33.3 1 0 +github.com/tidepool-org/platform/request/values_parser.go:36.44,38.2 1 0 +github.com/tidepool-org/platform/request/values_parser.go:40.35,42.2 1 0 +github.com/tidepool-org/platform/request/values_parser.go:44.44,46.2 1 0 +github.com/tidepool-org/platform/request/values_parser.go:48.33,50.2 1 0 +github.com/tidepool-org/platform/request/values_parser.go:52.37,54.2 1 0 +github.com/tidepool-org/platform/request/values_parser.go:56.34,58.2 1 0 +github.com/tidepool-org/platform/request/values_parser.go:60.32,62.2 1 0 +github.com/tidepool-org/platform/request/values_parser.go:64.41,66.2 1 0 +github.com/tidepool-org/platform/request/values_parser.go:68.32,70.2 1 0 +github.com/tidepool-org/platform/request/values_parser.go:72.71,75.2 2 0 +github.com/tidepool-org/platform/request/values_parser.go:77.40,78.21 1 0 +github.com/tidepool-org/platform/request/values_parser.go:78.21,80.3 1 0 +github.com/tidepool-org/platform/request/values_parser.go:82.2,83.35 2 0 +github.com/tidepool-org/platform/request/values_parser.go:83.35,85.3 1 0 +github.com/tidepool-org/platform/request/values_parser.go:87.2,87.19 1 0 +github.com/tidepool-org/platform/request/values_parser.go:90.57,91.21 1 0 +github.com/tidepool-org/platform/request/values_parser.go:91.21,93.3 1 0 +github.com/tidepool-org/platform/request/values_parser.go:95.2,96.11 2 0 +github.com/tidepool-org/platform/request/values_parser.go:99.47,101.9 2 0 +github.com/tidepool-org/platform/request/values_parser.go:101.9,103.3 1 0 +github.com/tidepool-org/platform/request/values_parser.go:105.2,106.16 2 0 +github.com/tidepool-org/platform/request/values_parser.go:106.16,109.3 2 0 +github.com/tidepool-org/platform/request/values_parser.go:111.2,111.19 1 0 +github.com/tidepool-org/platform/request/values_parser.go:114.53,116.9 2 0 +github.com/tidepool-org/platform/request/values_parser.go:116.9,118.3 1 0 +github.com/tidepool-org/platform/request/values_parser.go:120.2,121.16 2 0 +github.com/tidepool-org/platform/request/values_parser.go:121.16,124.3 2 0 +github.com/tidepool-org/platform/request/values_parser.go:126.2,126.22 1 0 +github.com/tidepool-org/platform/request/values_parser.go:129.45,131.9 2 0 +github.com/tidepool-org/platform/request/values_parser.go:131.9,133.3 1 0 +github.com/tidepool-org/platform/request/values_parser.go:135.2,136.16 2 0 +github.com/tidepool-org/platform/request/values_parser.go:136.16,139.3 2 0 +github.com/tidepool-org/platform/request/values_parser.go:141.2,143.18 2 0 +github.com/tidepool-org/platform/request/values_parser.go:146.51,148.9 2 0 +github.com/tidepool-org/platform/request/values_parser.go:148.9,150.3 1 0 +github.com/tidepool-org/platform/request/values_parser.go:152.2,152.18 1 0 +github.com/tidepool-org/platform/request/values_parser.go:155.58,156.21 1 0 +github.com/tidepool-org/platform/request/values_parser.go:156.21,158.3 1 0 +github.com/tidepool-org/platform/request/values_parser.go:160.2,161.9 2 0 +github.com/tidepool-org/platform/request/values_parser.go:161.9,163.3 1 0 +github.com/tidepool-org/platform/request/values_parser.go:165.2,166.26 2 0 +github.com/tidepool-org/platform/request/values_parser.go:166.26,168.3 1 0 +github.com/tidepool-org/platform/request/values_parser.go:170.2,173.39 3 0 +github.com/tidepool-org/platform/request/values_parser.go:173.39,175.3 1 0 +github.com/tidepool-org/platform/request/values_parser.go:177.2,177.26 1 0 +github.com/tidepool-org/platform/request/values_parser.go:180.67,182.9 2 0 +github.com/tidepool-org/platform/request/values_parser.go:182.9,184.3 1 0 +github.com/tidepool-org/platform/request/values_parser.go:186.2,187.16 2 0 +github.com/tidepool-org/platform/request/values_parser.go:187.16,190.3 2 0 +github.com/tidepool-org/platform/request/values_parser.go:192.2,192.19 1 0 +github.com/tidepool-org/platform/request/values_parser.go:197.76,199.9 2 0 +github.com/tidepool-org/platform/request/values_parser.go:199.9,201.3 1 0 +github.com/tidepool-org/platform/request/values_parser.go:203.2,205.16 3 0 +github.com/tidepool-org/platform/request/values_parser.go:205.16,208.3 2 0 +github.com/tidepool-org/platform/request/values_parser.go:210.2,210.19 1 0 +github.com/tidepool-org/platform/request/values_parser.go:213.67,215.9 2 0 +github.com/tidepool-org/platform/request/values_parser.go:215.9,217.3 1 0 +github.com/tidepool-org/platform/request/values_parser.go:219.2,220.12 2 0 +github.com/tidepool-org/platform/request/values_parser.go:223.57,225.9 2 0 +github.com/tidepool-org/platform/request/values_parser.go:225.9,227.3 1 0 +github.com/tidepool-org/platform/request/values_parser.go:229.2,230.12 2 0 +github.com/tidepool-org/platform/request/values_parser.go:233.59,235.9 2 0 +github.com/tidepool-org/platform/request/values_parser.go:235.9,237.3 1 0 +github.com/tidepool-org/platform/request/values_parser.go:239.2,240.22 2 0 +github.com/tidepool-org/platform/request/values_parser.go:243.36,244.21 1 0 +github.com/tidepool-org/platform/request/values_parser.go:244.21,246.3 1 0 +github.com/tidepool-org/platform/request/values_parser.go:248.2,248.35 1 0 +github.com/tidepool-org/platform/request/values_parser.go:248.35,249.56 1 0 +github.com/tidepool-org/platform/request/values_parser.go:249.56,251.4 1 0 +github.com/tidepool-org/platform/request/values_parser.go:254.2,254.18 1 0 +github.com/tidepool-org/platform/request/values_parser.go:257.77,263.2 1 0 +github.com/tidepool-org/platform/request/values_parser.go:265.77,271.2 1 0 +github.com/tidepool-org/platform/request/values_parser.go:273.68,279.2 1 0 +github.com/tidepool-org/platform/request/values_parser.go:281.85,283.2 1 0 +github.com/tidepool-org/platform/request/values_parser.go:285.83,287.2 1 0 +github.com/tidepool-org/platform/request/values_parser.go:289.87,291.2 1 0 +github.com/tidepool-org/platform/request/values_parser.go:293.55,294.21 1 0 +github.com/tidepool-org/platform/request/values_parser.go:294.21,296.3 1 0 +github.com/tidepool-org/platform/request/values_parser.go:298.2,299.9 2 0 +github.com/tidepool-org/platform/request/values_parser.go:299.9,301.3 1 0 +github.com/tidepool-org/platform/request/values_parser.go:303.2,304.26 2 0 +github.com/tidepool-org/platform/request/values_parser.go:304.26,306.3 1 0 +github.com/tidepool-org/platform/request/values_parser.go:308.2,310.28 2 0 diff --git a/vendor/github.com/tidepool-org/platform/request/request.coverprofile b/vendor/github.com/tidepool-org/platform/request/request.coverprofile new file mode 100644 index 000000000..3e2fd3c6a --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/request/request.coverprofile @@ -0,0 +1,375 @@ +mode: atomic +github.com/tidepool-org/platform/request/condition.go:14.32,16.2 1 1 +github.com/tidepool-org/platform/request/condition.go:18.58,20.2 1 4 +github.com/tidepool-org/platform/request/condition.go:22.61,24.2 1 5 +github.com/tidepool-org/platform/request/condition.go:26.60,27.23 1 3 +github.com/tidepool-org/platform/request/condition.go:27.23,29.3 1 2 +github.com/tidepool-org/platform/request/condition.go:30.2,30.12 1 1 +github.com/tidepool-org/platform/request/errors.go:29.48,31.2 1 43 +github.com/tidepool-org/platform/request/errors.go:33.75,35.2 1 1 +github.com/tidepool-org/platform/request/errors.go:37.35,39.2 1 2 +github.com/tidepool-org/platform/request/errors.go:41.30,43.2 1 2 +github.com/tidepool-org/platform/request/errors.go:45.35,47.2 1 9 +github.com/tidepool-org/platform/request/errors.go:49.32,51.2 1 3 +github.com/tidepool-org/platform/request/errors.go:53.36,55.2 1 3 +github.com/tidepool-org/platform/request/errors.go:57.51,59.2 1 4 +github.com/tidepool-org/platform/request/errors.go:61.76,63.2 1 4 +github.com/tidepool-org/platform/request/errors.go:65.85,66.21 1 4 +github.com/tidepool-org/platform/request/errors.go:66.21,68.3 1 2 +github.com/tidepool-org/platform/request/errors.go:69.2,69.40 1 2 +github.com/tidepool-org/platform/request/errors.go:72.36,74.2 1 2 +github.com/tidepool-org/platform/request/errors.go:76.43,78.2 1 1 +github.com/tidepool-org/platform/request/errors.go:80.43,82.2 1 10 +github.com/tidepool-org/platform/request/errors.go:84.46,86.2 1 5 +github.com/tidepool-org/platform/request/errors.go:88.46,90.2 1 5 +github.com/tidepool-org/platform/request/errors.go:92.32,94.2 1 1 +github.com/tidepool-org/platform/request/errors.go:96.33,98.2 1 4 +github.com/tidepool-org/platform/request/errors.go:100.66,102.2 1 1 +github.com/tidepool-org/platform/request/errors.go:104.53,106.2 1 1 +github.com/tidepool-org/platform/request/errors.go:108.53,110.2 1 1 +github.com/tidepool-org/platform/request/errors.go:112.40,113.16 1 17 +github.com/tidepool-org/platform/request/errors.go:113.16,114.27 1 16 +github.com/tidepool-org/platform/request/errors.go:115.33,116.37 1 1 +github.com/tidepool-org/platform/request/errors.go:117.28,118.32 1 1 +github.com/tidepool-org/platform/request/errors.go:119.33,120.34 1 3 +github.com/tidepool-org/platform/request/errors.go:121.30,122.31 1 1 +github.com/tidepool-org/platform/request/errors.go:123.34,124.30 1 5 +github.com/tidepool-org/platform/request/errors.go:125.34,126.43 1 1 +github.com/tidepool-org/platform/request/errors.go:129.2,129.39 1 5 +github.com/tidepool-org/platform/request/errors.go:132.49,134.2 1 21 +github.com/tidepool-org/platform/request/errors.go:136.45,138.2 1 3 +github.com/tidepool-org/platform/request/errors.go:140.42,142.2 1 3 +github.com/tidepool-org/platform/request/errors.go:144.46,146.2 1 3 +github.com/tidepool-org/platform/request/inspector.go:17.46,19.2 1 6 +github.com/tidepool-org/platform/request/inspector.go:21.70,22.16 1 4 +github.com/tidepool-org/platform/request/inspector.go:22.16,24.3 1 1 +github.com/tidepool-org/platform/request/inspector.go:26.2,27.12 2 3 +github.com/tidepool-org/platform/request/mutator.go:22.64,27.2 1 52 +github.com/tidepool-org/platform/request/mutator.go:29.64,30.16 1 5 +github.com/tidepool-org/platform/request/mutator.go:30.16,32.3 1 1 +github.com/tidepool-org/platform/request/mutator.go:33.2,33.17 1 4 +github.com/tidepool-org/platform/request/mutator.go:33.17,35.3 1 1 +github.com/tidepool-org/platform/request/mutator.go:37.2,38.12 2 3 +github.com/tidepool-org/platform/request/mutator.go:41.71,42.16 1 42 +github.com/tidepool-org/platform/request/mutator.go:42.16,44.3 1 0 +github.com/tidepool-org/platform/request/mutator.go:45.2,45.17 1 42 +github.com/tidepool-org/platform/request/mutator.go:45.17,47.3 1 7 +github.com/tidepool-org/platform/request/mutator.go:49.2,50.12 2 35 +github.com/tidepool-org/platform/request/mutator.go:58.70,63.2 1 10 +github.com/tidepool-org/platform/request/mutator.go:65.67,66.16 1 7 +github.com/tidepool-org/platform/request/mutator.go:66.16,68.3 1 2 +github.com/tidepool-org/platform/request/mutator.go:69.2,69.17 1 5 +github.com/tidepool-org/platform/request/mutator.go:69.17,71.3 1 1 +github.com/tidepool-org/platform/request/mutator.go:73.2,76.12 4 4 +github.com/tidepool-org/platform/request/mutator.go:83.76,87.2 1 7 +github.com/tidepool-org/platform/request/mutator.go:89.68,90.16 1 5 +github.com/tidepool-org/platform/request/mutator.go:90.16,92.3 1 1 +github.com/tidepool-org/platform/request/mutator.go:94.2,95.39 2 4 +github.com/tidepool-org/platform/request/mutator.go:95.39,96.16 1 10 +github.com/tidepool-org/platform/request/mutator.go:96.16,98.4 1 1 +github.com/tidepool-org/platform/request/mutator.go:99.3,99.24 1 9 +github.com/tidepool-org/platform/request/mutator.go:101.2,103.12 2 3 +github.com/tidepool-org/platform/request/mutator.go:110.88,114.2 1 7 +github.com/tidepool-org/platform/request/mutator.go:116.73,117.16 1 5 +github.com/tidepool-org/platform/request/mutator.go:117.16,119.3 1 1 +github.com/tidepool-org/platform/request/mutator.go:121.2,122.40 2 4 +github.com/tidepool-org/platform/request/mutator.go:122.40,123.16 1 15 +github.com/tidepool-org/platform/request/mutator.go:123.16,125.4 1 1 +github.com/tidepool-org/platform/request/mutator.go:126.3,126.32 1 14 +github.com/tidepool-org/platform/request/mutator.go:126.32,128.4 1 24 +github.com/tidepool-org/platform/request/mutator.go:130.2,132.12 2 3 +github.com/tidepool-org/platform/request/parser.go:20.69,21.16 1 0 +github.com/tidepool-org/platform/request/parser.go:21.16,23.3 1 0 +github.com/tidepool-org/platform/request/parser.go:24.2,24.21 1 0 +github.com/tidepool-org/platform/request/parser.go:24.21,26.3 1 0 +github.com/tidepool-org/platform/request/parser.go:28.2,29.69 2 0 +github.com/tidepool-org/platform/request/parser.go:32.71,33.16 1 0 +github.com/tidepool-org/platform/request/parser.go:33.16,35.3 1 0 +github.com/tidepool-org/platform/request/parser.go:36.2,36.21 1 0 +github.com/tidepool-org/platform/request/parser.go:36.21,38.3 1 0 +github.com/tidepool-org/platform/request/parser.go:40.2,41.69 2 0 +github.com/tidepool-org/platform/request/parser.go:44.88,45.66 1 0 +github.com/tidepool-org/platform/request/parser.go:45.66,47.3 1 0 +github.com/tidepool-org/platform/request/parser.go:48.2,48.56 1 0 +github.com/tidepool-org/platform/request/parser.go:48.56,50.3 1 0 +github.com/tidepool-org/platform/request/parser.go:51.2,51.41 1 0 +github.com/tidepool-org/platform/request/parser.go:54.93,55.65 1 0 +github.com/tidepool-org/platform/request/parser.go:55.65,57.3 1 0 +github.com/tidepool-org/platform/request/parser.go:58.2,58.63 1 0 +github.com/tidepool-org/platform/request/parser.go:58.63,60.3 1 0 +github.com/tidepool-org/platform/request/parser.go:61.2,61.48 1 0 +github.com/tidepool-org/platform/request/parser.go:64.129,66.64 2 0 +github.com/tidepool-org/platform/request/parser.go:66.64,68.3 1 0 +github.com/tidepool-org/platform/request/parser.go:70.2,74.23 4 0 +github.com/tidepool-org/platform/request/parser.go:77.126,79.63 2 0 +github.com/tidepool-org/platform/request/parser.go:79.63,81.3 1 0 +github.com/tidepool-org/platform/request/parser.go:83.2,87.23 4 0 +github.com/tidepool-org/platform/request/parser.go:90.74,91.19 1 0 +github.com/tidepool-org/platform/request/parser.go:91.19,93.3 1 0 +github.com/tidepool-org/platform/request/parser.go:94.2,94.19 1 0 +github.com/tidepool-org/platform/request/parser.go:94.19,96.3 1 0 +github.com/tidepool-org/platform/request/parser.go:98.2,98.63 1 0 +github.com/tidepool-org/platform/request/parser.go:98.63,99.20 1 0 +github.com/tidepool-org/platform/request/parser.go:99.20,101.4 1 0 +github.com/tidepool-org/platform/request/parser.go:102.3,102.30 1 0 +github.com/tidepool-org/platform/request/parser.go:105.2,105.12 1 0 +github.com/tidepool-org/platform/request/parser.go:108.77,110.33 2 0 +github.com/tidepool-org/platform/request/parser.go:110.33,111.60 1 0 +github.com/tidepool-org/platform/request/parser.go:111.60,113.4 1 0 +github.com/tidepool-org/platform/request/parser.go:116.2,117.43 2 0 +github.com/tidepool-org/platform/request/parser.go:117.43,119.3 1 0 +github.com/tidepool-org/platform/request/parser.go:120.2,120.26 1 0 +github.com/tidepool-org/platform/request/parser.go:123.78,125.33 2 0 +github.com/tidepool-org/platform/request/parser.go:125.33,126.62 1 0 +github.com/tidepool-org/platform/request/parser.go:126.62,128.4 1 0 +github.com/tidepool-org/platform/request/parser.go:131.2,132.45 2 0 +github.com/tidepool-org/platform/request/parser.go:132.45,134.3 1 0 +github.com/tidepool-org/platform/request/parser.go:135.2,135.27 1 0 +github.com/tidepool-org/platform/request/parser.go:138.95,139.16 1 0 +github.com/tidepool-org/platform/request/parser.go:139.16,141.3 1 0 +github.com/tidepool-org/platform/request/parser.go:142.2,142.20 1 0 +github.com/tidepool-org/platform/request/parser.go:142.20,144.3 1 0 +github.com/tidepool-org/platform/request/parser.go:146.2,147.16 2 0 +github.com/tidepool-org/platform/request/parser.go:147.16,149.3 1 0 +github.com/tidepool-org/platform/request/parser.go:151.2,151.72 1 0 +github.com/tidepool-org/platform/request/parser.go:154.98,156.41 2 0 +github.com/tidepool-org/platform/request/parser.go:156.41,158.3 1 0 +github.com/tidepool-org/platform/request/parser.go:160.2,160.71 1 0 +github.com/tidepool-org/platform/request/parser.go:160.71,162.3 1 0 +github.com/tidepool-org/platform/request/parser.go:163.2,163.84 1 0 +github.com/tidepool-org/platform/request/parser.go:163.84,165.3 1 0 +github.com/tidepool-org/platform/request/parser.go:166.2,166.69 1 0 +github.com/tidepool-org/platform/request/parser.go:169.104,171.49 2 0 +github.com/tidepool-org/platform/request/parser.go:171.49,173.3 1 0 +github.com/tidepool-org/platform/request/parser.go:174.2,175.23 2 0 +github.com/tidepool-org/platform/request/parser.go:178.76,179.36 1 25 +github.com/tidepool-org/platform/request/parser.go:179.36,181.3 1 8 +github.com/tidepool-org/platform/request/parser.go:181.8,181.47 1 17 +github.com/tidepool-org/platform/request/parser.go:181.47,183.3 1 4 +github.com/tidepool-org/platform/request/parser.go:183.8,183.24 1 13 +github.com/tidepool-org/platform/request/parser.go:183.24,185.3 1 9 +github.com/tidepool-org/platform/request/parser.go:186.2,186.37 1 4 +github.com/tidepool-org/platform/request/parser.go:189.76,190.93 1 8 +github.com/tidepool-org/platform/request/parser.go:190.93,192.3 1 4 +github.com/tidepool-org/platform/request/parser.go:192.8,192.75 1 4 +github.com/tidepool-org/platform/request/parser.go:192.75,193.65 1 4 +github.com/tidepool-org/platform/request/parser.go:193.65,194.68 1 2 +github.com/tidepool-org/platform/request/parser.go:194.68,196.5 1 1 +github.com/tidepool-org/platform/request/parser.go:199.2,199.37 1 3 +github.com/tidepool-org/platform/request/parser.go:202.76,203.93 1 6 +github.com/tidepool-org/platform/request/parser.go:203.93,205.3 1 4 +github.com/tidepool-org/platform/request/parser.go:205.8,205.72 1 2 +github.com/tidepool-org/platform/request/parser.go:205.72,207.3 1 1 +github.com/tidepool-org/platform/request/parser.go:208.2,208.37 1 1 +github.com/tidepool-org/platform/request/parser.go:211.67,212.93 1 6 +github.com/tidepool-org/platform/request/parser.go:212.93,214.3 1 4 +github.com/tidepool-org/platform/request/parser.go:214.8,214.75 1 2 +github.com/tidepool-org/platform/request/parser.go:214.75,216.3 1 1 +github.com/tidepool-org/platform/request/parser.go:217.2,217.37 1 1 +github.com/tidepool-org/platform/request/request.go:17.62,18.16 1 0 +github.com/tidepool-org/platform/request/request.go:18.16,20.3 1 0 +github.com/tidepool-org/platform/request/request.go:21.2,21.16 1 0 +github.com/tidepool-org/platform/request/request.go:21.16,23.3 1 0 +github.com/tidepool-org/platform/request/request.go:25.2,25.70 1 0 +github.com/tidepool-org/platform/request/request.go:25.70,27.3 1 0 +github.com/tidepool-org/platform/request/request.go:28.2,28.70 1 0 +github.com/tidepool-org/platform/request/request.go:28.70,30.3 1 0 +github.com/tidepool-org/platform/request/request.go:32.2,32.12 1 0 +github.com/tidepool-org/platform/request/request.go:35.47,37.2 1 0 +github.com/tidepool-org/platform/request/request.go:39.51,41.2 1 0 +github.com/tidepool-org/platform/request/request.go:43.51,45.2 1 0 +github.com/tidepool-org/platform/request/request.go:67.69,73.2 1 0 +github.com/tidepool-org/platform/request/request.go:81.35,83.2 1 0 +github.com/tidepool-org/platform/request/request.go:85.36,87.2 1 0 +github.com/tidepool-org/platform/request/request.go:89.33,91.2 1 0 +github.com/tidepool-org/platform/request/request.go:93.35,95.2 1 0 +github.com/tidepool-org/platform/request/request.go:97.35,99.2 1 0 +github.com/tidepool-org/platform/request/request.go:101.34,103.2 1 0 +github.com/tidepool-org/platform/request/request.go:105.115,106.16 1 6 +github.com/tidepool-org/platform/request/request.go:106.16,108.3 1 1 +github.com/tidepool-org/platform/request/request.go:110.2,111.24 2 5 +github.com/tidepool-org/platform/request/request.go:111.24,113.3 1 2 +github.com/tidepool-org/platform/request/request.go:113.8,113.50 1 3 +github.com/tidepool-org/platform/request/request.go:113.50,115.3 1 1 +github.com/tidepool-org/platform/request/request.go:116.2,116.19 1 2 +github.com/tidepool-org/platform/request/request.go:119.124,120.16 1 6 +github.com/tidepool-org/platform/request/request.go:120.16,122.3 1 1 +github.com/tidepool-org/platform/request/request.go:124.2,125.24 2 5 +github.com/tidepool-org/platform/request/request.go:125.24,127.3 1 2 +github.com/tidepool-org/platform/request/request.go:127.8,127.50 1 3 +github.com/tidepool-org/platform/request/request.go:127.50,129.3 1 1 +github.com/tidepool-org/platform/request/request.go:130.2,130.20 1 2 +github.com/tidepool-org/platform/request/request.go:137.82,139.2 1 0 +github.com/tidepool-org/platform/request/request.go:141.54,142.16 1 5 +github.com/tidepool-org/platform/request/request.go:142.16,143.64 1 5 +github.com/tidepool-org/platform/request/request.go:143.64,145.4 1 0 +github.com/tidepool-org/platform/request/request.go:147.2,147.12 1 5 +github.com/tidepool-org/platform/request/request.go:152.91,154.2 1 0 +github.com/tidepool-org/platform/request/request.go:156.58,157.16 1 0 +github.com/tidepool-org/platform/request/request.go:157.16,158.73 1 0 +github.com/tidepool-org/platform/request/request.go:158.73,160.4 1 0 +github.com/tidepool-org/platform/request/request.go:162.2,162.11 1 0 +github.com/tidepool-org/platform/request/request.go:167.91,169.2 1 0 +github.com/tidepool-org/platform/request/request.go:171.58,172.16 1 0 +github.com/tidepool-org/platform/request/request.go:172.16,173.73 1 0 +github.com/tidepool-org/platform/request/request.go:173.73,175.4 1 0 +github.com/tidepool-org/platform/request/request.go:177.2,177.11 1 0 +github.com/tidepool-org/platform/request/request.go:186.38,188.2 1 9 +github.com/tidepool-org/platform/request/request.go:190.36,192.2 1 6 +github.com/tidepool-org/platform/request/request.go:194.39,196.2 1 4 +github.com/tidepool-org/platform/request/request.go:198.70,200.2 1 5 +github.com/tidepool-org/platform/request/request.go:202.65,203.16 1 35 +github.com/tidepool-org/platform/request/request.go:203.16,204.80 1 35 +github.com/tidepool-org/platform/request/request.go:204.80,206.4 1 7 +github.com/tidepool-org/platform/request/request.go:208.2,208.12 1 28 +github.com/tidepool-org/platform/request/request.go:211.53,212.71 1 5 +github.com/tidepool-org/platform/request/request.go:212.71,214.3 1 3 +github.com/tidepool-org/platform/request/request.go:215.2,215.12 1 2 +github.com/tidepool-org/platform/request/request.go:218.56,219.71 1 27 +github.com/tidepool-org/platform/request/request.go:219.71,221.3 1 2 +github.com/tidepool-org/platform/request/responder.go:23.78,25.16 2 3 +github.com/tidepool-org/platform/request/responder.go:25.16,26.13 1 2 +github.com/tidepool-org/platform/request/responder.go:28.2,28.18 1 1 +github.com/tidepool-org/platform/request/responder.go:31.83,32.16 1 45 +github.com/tidepool-org/platform/request/responder.go:32.16,34.3 1 2 +github.com/tidepool-org/platform/request/responder.go:35.2,35.16 1 43 +github.com/tidepool-org/platform/request/responder.go:35.16,37.3 1 2 +github.com/tidepool-org/platform/request/responder.go:38.2,41.8 1 41 +github.com/tidepool-org/platform/request/responder.go:44.52,45.19 1 4 +github.com/tidepool-org/platform/request/responder.go:45.19,47.3 1 3 +github.com/tidepool-org/platform/request/responder.go:50.87,51.51 1 3 +github.com/tidepool-org/platform/request/responder.go:51.51,53.3 1 1 +github.com/tidepool-org/platform/request/responder.go:53.8,55.3 1 2 +github.com/tidepool-org/platform/request/responder.go:58.72,60.51 1 3 +github.com/tidepool-org/platform/request/responder.go:60.51,62.3 1 1 +github.com/tidepool-org/platform/request/responder.go:62.8,64.3 1 2 +github.com/tidepool-org/platform/request/responder.go:67.86,68.51 1 33 +github.com/tidepool-org/platform/request/responder.go:68.51,70.3 1 4 +github.com/tidepool-org/platform/request/responder.go:70.8,72.90 2 29 +github.com/tidepool-org/platform/request/responder.go:72.90,74.4 1 0 +github.com/tidepool-org/platform/request/responder.go:74.9,74.68 1 29 +github.com/tidepool-org/platform/request/responder.go:74.68,76.4 1 29 +github.com/tidepool-org/platform/request/responder.go:80.85,82.2 1 3 +github.com/tidepool-org/platform/request/responder.go:84.91,85.19 1 4 +github.com/tidepool-org/platform/request/responder.go:85.19,87.3 1 1 +github.com/tidepool-org/platform/request/responder.go:87.8,87.58 1 3 +github.com/tidepool-org/platform/request/responder.go:87.58,89.3 1 1 +github.com/tidepool-org/platform/request/responder.go:89.8,91.62 2 2 +github.com/tidepool-org/platform/request/responder.go:91.62,93.4 1 2 +github.com/tidepool-org/platform/request/responder.go:97.89,98.17 1 8 +github.com/tidepool-org/platform/request/responder.go:98.17,100.3 1 1 +github.com/tidepool-org/platform/request/responder.go:100.8,100.64 1 7 +github.com/tidepool-org/platform/request/responder.go:100.64,102.3 1 1 +github.com/tidepool-org/platform/request/responder.go:102.8,102.71 1 6 +github.com/tidepool-org/platform/request/responder.go:102.71,104.3 1 1 +github.com/tidepool-org/platform/request/responder.go:104.8,106.3 1 5 +github.com/tidepool-org/platform/request/responder.go:109.83,110.16 1 24 +github.com/tidepool-org/platform/request/responder.go:110.16,112.3 1 1 +github.com/tidepool-org/platform/request/responder.go:112.8,114.81 2 23 +github.com/tidepool-org/platform/request/responder.go:114.81,116.4 1 1 +github.com/tidepool-org/platform/request/responder.go:116.9,118.4 1 22 +github.com/tidepool-org/platform/request/responder.go:122.81,123.16 1 19 +github.com/tidepool-org/platform/request/responder.go:123.16,125.3 1 1 +github.com/tidepool-org/platform/request/responder.go:125.8,125.45 1 18 +github.com/tidepool-org/platform/request/responder.go:125.45,127.3 1 16 +github.com/tidepool-org/platform/request/responder.go:128.2,128.59 1 19 +github.com/tidepool-org/platform/request/responder.go:131.81,132.16 1 5 +github.com/tidepool-org/platform/request/responder.go:132.16,134.3 1 1 +github.com/tidepool-org/platform/request/responder.go:135.2,135.89 1 4 +github.com/tidepool-org/platform/request/responder.go:135.89,137.3 1 2 +github.com/tidepool-org/platform/request/responder.go:137.8,139.3 1 2 +github.com/tidepool-org/platform/request/responder.go:140.2,140.13 1 4 +github.com/tidepool-org/platform/request/responder.go:143.70,144.35 1 42 +github.com/tidepool-org/platform/request/responder.go:144.35,145.77 1 42 +github.com/tidepool-org/platform/request/responder.go:145.77,147.4 1 7 +github.com/tidepool-org/platform/request/responder.go:149.2,149.12 1 35 +github.com/tidepool-org/platform/request/responder.go:152.54,153.47 1 7 +github.com/tidepool-org/platform/request/responder.go:153.47,155.3 1 5 +github.com/tidepool-org/platform/request/responder.go:156.2,156.12 1 2 +github.com/tidepool-org/platform/request/values_parser.go:19.53,21.2 1 0 +github.com/tidepool-org/platform/request/values_parser.go:23.85,25.19 2 0 +github.com/tidepool-org/platform/request/values_parser.go:25.19,27.3 1 0 +github.com/tidepool-org/platform/request/values_parser.go:29.2,33.3 1 0 +github.com/tidepool-org/platform/request/values_parser.go:36.44,38.2 1 0 +github.com/tidepool-org/platform/request/values_parser.go:40.35,42.2 1 0 +github.com/tidepool-org/platform/request/values_parser.go:44.44,46.2 1 0 +github.com/tidepool-org/platform/request/values_parser.go:48.33,50.2 1 0 +github.com/tidepool-org/platform/request/values_parser.go:52.37,54.2 1 0 +github.com/tidepool-org/platform/request/values_parser.go:56.34,58.2 1 0 +github.com/tidepool-org/platform/request/values_parser.go:60.32,62.2 1 0 +github.com/tidepool-org/platform/request/values_parser.go:64.41,66.2 1 0 +github.com/tidepool-org/platform/request/values_parser.go:68.32,70.2 1 0 +github.com/tidepool-org/platform/request/values_parser.go:72.71,75.2 2 0 +github.com/tidepool-org/platform/request/values_parser.go:77.40,78.21 1 0 +github.com/tidepool-org/platform/request/values_parser.go:78.21,80.3 1 0 +github.com/tidepool-org/platform/request/values_parser.go:82.2,83.35 2 0 +github.com/tidepool-org/platform/request/values_parser.go:83.35,85.3 1 0 +github.com/tidepool-org/platform/request/values_parser.go:87.2,87.19 1 0 +github.com/tidepool-org/platform/request/values_parser.go:90.57,91.21 1 0 +github.com/tidepool-org/platform/request/values_parser.go:91.21,93.3 1 0 +github.com/tidepool-org/platform/request/values_parser.go:95.2,96.11 2 0 +github.com/tidepool-org/platform/request/values_parser.go:99.47,101.9 2 0 +github.com/tidepool-org/platform/request/values_parser.go:101.9,103.3 1 0 +github.com/tidepool-org/platform/request/values_parser.go:105.2,106.16 2 0 +github.com/tidepool-org/platform/request/values_parser.go:106.16,109.3 2 0 +github.com/tidepool-org/platform/request/values_parser.go:111.2,111.19 1 0 +github.com/tidepool-org/platform/request/values_parser.go:114.53,116.9 2 0 +github.com/tidepool-org/platform/request/values_parser.go:116.9,118.3 1 0 +github.com/tidepool-org/platform/request/values_parser.go:120.2,121.16 2 0 +github.com/tidepool-org/platform/request/values_parser.go:121.16,124.3 2 0 +github.com/tidepool-org/platform/request/values_parser.go:126.2,126.22 1 0 +github.com/tidepool-org/platform/request/values_parser.go:129.45,131.9 2 0 +github.com/tidepool-org/platform/request/values_parser.go:131.9,133.3 1 0 +github.com/tidepool-org/platform/request/values_parser.go:135.2,136.16 2 0 +github.com/tidepool-org/platform/request/values_parser.go:136.16,139.3 2 0 +github.com/tidepool-org/platform/request/values_parser.go:141.2,143.18 2 0 +github.com/tidepool-org/platform/request/values_parser.go:146.51,148.9 2 0 +github.com/tidepool-org/platform/request/values_parser.go:148.9,150.3 1 0 +github.com/tidepool-org/platform/request/values_parser.go:152.2,152.18 1 0 +github.com/tidepool-org/platform/request/values_parser.go:155.58,156.21 1 0 +github.com/tidepool-org/platform/request/values_parser.go:156.21,158.3 1 0 +github.com/tidepool-org/platform/request/values_parser.go:160.2,161.9 2 0 +github.com/tidepool-org/platform/request/values_parser.go:161.9,163.3 1 0 +github.com/tidepool-org/platform/request/values_parser.go:165.2,166.26 2 0 +github.com/tidepool-org/platform/request/values_parser.go:166.26,168.3 1 0 +github.com/tidepool-org/platform/request/values_parser.go:170.2,173.39 3 0 +github.com/tidepool-org/platform/request/values_parser.go:173.39,175.3 1 0 +github.com/tidepool-org/platform/request/values_parser.go:177.2,177.26 1 0 +github.com/tidepool-org/platform/request/values_parser.go:180.67,182.9 2 0 +github.com/tidepool-org/platform/request/values_parser.go:182.9,184.3 1 0 +github.com/tidepool-org/platform/request/values_parser.go:186.2,187.16 2 0 +github.com/tidepool-org/platform/request/values_parser.go:187.16,190.3 2 0 +github.com/tidepool-org/platform/request/values_parser.go:192.2,192.19 1 0 +github.com/tidepool-org/platform/request/values_parser.go:197.76,199.9 2 0 +github.com/tidepool-org/platform/request/values_parser.go:199.9,201.3 1 0 +github.com/tidepool-org/platform/request/values_parser.go:203.2,205.16 3 0 +github.com/tidepool-org/platform/request/values_parser.go:205.16,208.3 2 0 +github.com/tidepool-org/platform/request/values_parser.go:210.2,210.19 1 0 +github.com/tidepool-org/platform/request/values_parser.go:213.67,215.9 2 0 +github.com/tidepool-org/platform/request/values_parser.go:215.9,217.3 1 0 +github.com/tidepool-org/platform/request/values_parser.go:219.2,220.12 2 0 +github.com/tidepool-org/platform/request/values_parser.go:223.57,225.9 2 0 +github.com/tidepool-org/platform/request/values_parser.go:225.9,227.3 1 0 +github.com/tidepool-org/platform/request/values_parser.go:229.2,230.12 2 0 +github.com/tidepool-org/platform/request/values_parser.go:233.59,235.9 2 0 +github.com/tidepool-org/platform/request/values_parser.go:235.9,237.3 1 0 +github.com/tidepool-org/platform/request/values_parser.go:239.2,240.22 2 0 +github.com/tidepool-org/platform/request/values_parser.go:243.36,244.21 1 0 +github.com/tidepool-org/platform/request/values_parser.go:244.21,246.3 1 0 +github.com/tidepool-org/platform/request/values_parser.go:248.2,248.35 1 0 +github.com/tidepool-org/platform/request/values_parser.go:248.35,249.56 1 0 +github.com/tidepool-org/platform/request/values_parser.go:249.56,251.4 1 0 +github.com/tidepool-org/platform/request/values_parser.go:254.2,254.18 1 0 +github.com/tidepool-org/platform/request/values_parser.go:257.77,263.2 1 0 +github.com/tidepool-org/platform/request/values_parser.go:265.77,271.2 1 0 +github.com/tidepool-org/platform/request/values_parser.go:273.68,279.2 1 0 +github.com/tidepool-org/platform/request/values_parser.go:281.85,283.2 1 0 +github.com/tidepool-org/platform/request/values_parser.go:285.83,287.2 1 0 +github.com/tidepool-org/platform/request/values_parser.go:289.87,291.2 1 0 +github.com/tidepool-org/platform/request/values_parser.go:293.55,294.21 1 0 +github.com/tidepool-org/platform/request/values_parser.go:294.21,296.3 1 0 +github.com/tidepool-org/platform/request/values_parser.go:298.2,299.9 2 0 +github.com/tidepool-org/platform/request/values_parser.go:299.9,301.3 1 0 +github.com/tidepool-org/platform/request/values_parser.go:303.2,304.26 2 0 +github.com/tidepool-org/platform/request/values_parser.go:304.26,306.3 1 0 +github.com/tidepool-org/platform/request/values_parser.go:308.2,310.28 2 0 diff --git a/vendor/github.com/tidepool-org/platform/request/request.go b/vendor/github.com/tidepool-org/platform/request/request.go index 032890d8e..1e49aa2cb 100644 --- a/vendor/github.com/tidepool-org/platform/request/request.go +++ b/vendor/github.com/tidepool-org/platform/request/request.go @@ -53,7 +53,13 @@ const ( MethodRestrictedToken Method = "restricted token" ) -type Details interface { +// AuthDetails provides specifics about a request's authentication. +// +// After authentication is performed, a sentinel value implementing this +// interface is added to the request's context. Later handlers use its +// existence to indicate that a request's authentication information has been +// validated. +type AuthDetails interface { Method() Method IsService() bool @@ -64,41 +70,41 @@ type Details interface { Token() string } -func NewDetails(method Method, userID string, token string) Details { - return &details{ +func NewAuthDetails(method Method, userID string, token string) AuthDetails { + return &authDetails{ method: method, userID: userID, token: token, } } -type details struct { +type authDetails struct { method Method userID string token string } -func (d *details) Method() Method { +func (d *authDetails) Method() Method { return d.method } -func (d *details) IsService() bool { +func (d *authDetails) IsService() bool { return d.method == MethodServiceSecret || (d.method == MethodSessionToken && d.userID == "") } -func (d *details) IsUser() bool { +func (d *authDetails) IsUser() bool { return !d.IsService() } -func (d *details) UserID() string { +func (d *authDetails) UserID() string { return d.userID } -func (d *details) HasToken() bool { +func (d *authDetails) HasToken() bool { return d.method != MethodServiceSecret } -func (d *details) Token() string { +func (d *authDetails) Token() string { return d.token } @@ -132,15 +138,15 @@ func DecodeOptionalRequestPathParameter(req *rest.Request, key string, validator type contextKey string -const detailsContextKey contextKey = "details" +const authDetailsContextKey contextKey = "details" -func NewContextWithDetails(ctx context.Context, details Details) context.Context { - return context.WithValue(ctx, detailsContextKey, details) +func NewContextWithAuthDetails(ctx context.Context, details AuthDetails) context.Context { + return context.WithValue(ctx, authDetailsContextKey, details) } -func DetailsFromContext(ctx context.Context) Details { +func GetAuthDetails(ctx context.Context) AuthDetails { if ctx != nil { - if details, ok := ctx.Value(detailsContextKey).(Details); ok { + if details, ok := ctx.Value(authDetailsContextKey).(AuthDetails); ok { return details } } diff --git a/vendor/github.com/tidepool-org/platform/request/responder.go b/vendor/github.com/tidepool-org/platform/request/responder.go index 706ec60a7..708673437 100644 --- a/vendor/github.com/tidepool-org/platform/request/responder.go +++ b/vendor/github.com/tidepool-org/platform/request/responder.go @@ -12,7 +12,7 @@ import ( ) type Sanitizable interface { - Sanitize(details Details) error + Sanitize(details AuthDetails) error } type Responder struct { @@ -151,7 +151,7 @@ func (r *Responder) mutateResponse(mutators []ResponseMutator) error { func (r *Responder) sanitize(data interface{}) error { if sanitizable, ok := data.(Sanitizable); ok { - return sanitizable.Sanitize(DetailsFromContext(r.req.Context())) + return sanitizable.Sanitize(GetAuthDetails(r.req.Context())) } return nil } diff --git a/vendor/github.com/tidepool-org/platform/service/cover.out b/vendor/github.com/tidepool-org/platform/service/cover.out new file mode 100644 index 000000000..8205a0fed --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/service/cover.out @@ -0,0 +1,80 @@ +mode: atomic +github.com/tidepool-org/platform/service/error.go:17.62,18.21 1 4 +github.com/tidepool-org/platform/service/error.go:18.21,20.3 1 1 +github.com/tidepool-org/platform/service/error.go:21.2,22.10 2 4 +github.com/tidepool-org/platform/service/error.go:25.58,26.21 1 4 +github.com/tidepool-org/platform/service/error.go:26.21,28.3 1 1 +github.com/tidepool-org/platform/service/error.go:29.2,30.10 2 4 +github.com/tidepool-org/platform/service/error.go:33.51,36.2 2 3 +github.com/tidepool-org/platform/service/errors.go:10.42,17.2 1 1 +github.com/tidepool-org/platform/service/errors.go:19.36,26.2 1 1 +github.com/tidepool-org/platform/service/errors.go:28.33,35.2 1 1 +github.com/tidepool-org/platform/service/errors.go:37.34,44.2 1 1 +github.com/tidepool-org/platform/service/errors.go:46.52,52.2 1 4 +github.com/tidepool-org/platform/service/errors.go:54.52,60.2 1 4 +github.com/tidepool-org/platform/service/errors.go:62.50,68.2 1 4 +github.com/tidepool-org/platform/service/errors.go:70.51,76.2 1 4 +github.com/tidepool-org/platform/service/errors.go:78.49,84.2 1 4 +github.com/tidepool-org/platform/service/errors.go:86.51,92.2 1 4 +github.com/tidepool-org/platform/service/errors.go:94.50,100.2 1 4 +github.com/tidepool-org/platform/service/errors.go:102.68,108.2 1 1 +github.com/tidepool-org/platform/service/errors.go:110.35,116.2 1 1 +github.com/tidepool-org/platform/service/errors.go:118.85,124.2 1 4 +github.com/tidepool-org/platform/service/errors.go:126.101,132.2 1 4 +github.com/tidepool-org/platform/service/errors.go:134.76,136.45 2 3 +github.com/tidepool-org/platform/service/errors.go:136.45,138.3 1 3 +github.com/tidepool-org/platform/service/errors.go:139.2,144.3 2 3 +github.com/tidepool-org/platform/service/errors.go:147.60,148.52 1 28 +github.com/tidepool-org/platform/service/errors.go:148.52,150.3 1 12 +github.com/tidepool-org/platform/service/errors.go:151.2,151.23 1 16 +github.com/tidepool-org/platform/service/request.go:26.51,27.16 1 4 +github.com/tidepool-org/platform/service/request.go:27.16,28.60 1 3 +github.com/tidepool-org/platform/service/request.go:28.60,30.4 1 1 +github.com/tidepool-org/platform/service/request.go:32.2,32.12 1 3 +github.com/tidepool-org/platform/service/request.go:35.57,36.16 1 3 +github.com/tidepool-org/platform/service/request.go:36.16,37.18 1 2 +github.com/tidepool-org/platform/service/request.go:37.18,39.4 1 1 +github.com/tidepool-org/platform/service/request.go:39.9,41.4 1 1 +github.com/tidepool-org/platform/service/request.go:45.53,46.16 1 4 +github.com/tidepool-org/platform/service/request.go:46.16,47.64 1 3 +github.com/tidepool-org/platform/service/request.go:47.64,49.4 1 1 +github.com/tidepool-org/platform/service/request.go:51.2,51.12 1 3 +github.com/tidepool-org/platform/service/request.go:54.61,55.16 1 3 +github.com/tidepool-org/platform/service/request.go:55.16,56.20 1 2 +github.com/tidepool-org/platform/service/request.go:56.20,58.4 1 1 +github.com/tidepool-org/platform/service/request.go:58.9,60.4 1 1 +github.com/tidepool-org/platform/service/request.go:64.63,65.16 1 4 +github.com/tidepool-org/platform/service/request.go:65.16,66.75 1 3 +github.com/tidepool-org/platform/service/request.go:66.75,68.4 1 1 +github.com/tidepool-org/platform/service/request.go:70.2,70.12 1 3 +github.com/tidepool-org/platform/service/request.go:73.72,74.16 1 3 +github.com/tidepool-org/platform/service/request.go:74.16,75.21 1 2 +github.com/tidepool-org/platform/service/request.go:75.21,77.4 1 1 +github.com/tidepool-org/platform/service/request.go:77.9,79.4 1 1 +github.com/tidepool-org/platform/service/request.go:83.55,84.16 1 7 +github.com/tidepool-org/platform/service/request.go:84.16,85.72 1 6 +github.com/tidepool-org/platform/service/request.go:85.72,87.4 1 3 +github.com/tidepool-org/platform/service/request.go:89.2,89.11 1 4 +github.com/tidepool-org/platform/service/request.go:92.69,93.16 1 3 +github.com/tidepool-org/platform/service/request.go:93.16,94.25 1 2 +github.com/tidepool-org/platform/service/request.go:94.25,96.4 1 1 +github.com/tidepool-org/platform/service/request.go:96.9,98.4 1 1 +github.com/tidepool-org/platform/service/request.go:102.55,103.16 1 7 +github.com/tidepool-org/platform/service/request.go:103.16,104.72 1 6 +github.com/tidepool-org/platform/service/request.go:104.72,106.4 1 3 +github.com/tidepool-org/platform/service/request.go:108.2,108.11 1 4 +github.com/tidepool-org/platform/service/request.go:111.69,112.16 1 3 +github.com/tidepool-org/platform/service/request.go:112.16,113.25 1 2 +github.com/tidepool-org/platform/service/request.go:113.25,115.4 1 1 +github.com/tidepool-org/platform/service/request.go:115.9,117.4 1 1 +github.com/tidepool-org/platform/service/request.go:121.92,122.26 1 5 +github.com/tidepool-org/platform/service/request.go:122.26,124.3 1 1 +github.com/tidepool-org/platform/service/request.go:125.2,125.31 1 4 +github.com/tidepool-org/platform/service/request.go:125.31,127.3 1 1 +github.com/tidepool-org/platform/service/request.go:129.2,129.79 1 3 +github.com/tidepool-org/platform/service/request.go:129.79,131.3 1 2 +github.com/tidepool-org/platform/service/request.go:132.2,132.79 1 3 +github.com/tidepool-org/platform/service/request.go:132.79,134.3 1 2 +github.com/tidepool-org/platform/service/request.go:136.2,136.12 1 3 +github.com/tidepool-org/platform/service/response.go:9.50,10.21 1 1 +github.com/tidepool-org/platform/service/response.go:10.21,12.3 1 1 diff --git a/vendor/github.com/tidepool-org/platform/service/request.go b/vendor/github.com/tidepool-org/platform/service/request.go index 593c3e189..fd6b83717 100644 --- a/vendor/github.com/tidepool-org/platform/service/request.go +++ b/vendor/github.com/tidepool-org/platform/service/request.go @@ -61,16 +61,16 @@ func SetRequestLogger(req *rest.Request, logger log.Logger) { } } -func GetRequestAuthDetails(req *rest.Request) request.Details { +func GetRequestAuthDetails(req *rest.Request) request.AuthDetails { if req != nil { - if details, ok := req.Env[_RequestEnvAuthDetails].(request.Details); ok { + if details, ok := req.Env[_RequestEnvAuthDetails].(request.AuthDetails); ok { return details } } return nil } -func SetRequestAuthDetails(req *rest.Request, details request.Details) { +func SetRequestAuthDetails(req *rest.Request, details request.AuthDetails) { if req != nil { if details != nil { req.Env[_RequestEnvAuthDetails] = details diff --git a/vendor/github.com/tidepool-org/platform/service/service.coverprofile b/vendor/github.com/tidepool-org/platform/service/service.coverprofile new file mode 100644 index 000000000..8205a0fed --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/service/service.coverprofile @@ -0,0 +1,80 @@ +mode: atomic +github.com/tidepool-org/platform/service/error.go:17.62,18.21 1 4 +github.com/tidepool-org/platform/service/error.go:18.21,20.3 1 1 +github.com/tidepool-org/platform/service/error.go:21.2,22.10 2 4 +github.com/tidepool-org/platform/service/error.go:25.58,26.21 1 4 +github.com/tidepool-org/platform/service/error.go:26.21,28.3 1 1 +github.com/tidepool-org/platform/service/error.go:29.2,30.10 2 4 +github.com/tidepool-org/platform/service/error.go:33.51,36.2 2 3 +github.com/tidepool-org/platform/service/errors.go:10.42,17.2 1 1 +github.com/tidepool-org/platform/service/errors.go:19.36,26.2 1 1 +github.com/tidepool-org/platform/service/errors.go:28.33,35.2 1 1 +github.com/tidepool-org/platform/service/errors.go:37.34,44.2 1 1 +github.com/tidepool-org/platform/service/errors.go:46.52,52.2 1 4 +github.com/tidepool-org/platform/service/errors.go:54.52,60.2 1 4 +github.com/tidepool-org/platform/service/errors.go:62.50,68.2 1 4 +github.com/tidepool-org/platform/service/errors.go:70.51,76.2 1 4 +github.com/tidepool-org/platform/service/errors.go:78.49,84.2 1 4 +github.com/tidepool-org/platform/service/errors.go:86.51,92.2 1 4 +github.com/tidepool-org/platform/service/errors.go:94.50,100.2 1 4 +github.com/tidepool-org/platform/service/errors.go:102.68,108.2 1 1 +github.com/tidepool-org/platform/service/errors.go:110.35,116.2 1 1 +github.com/tidepool-org/platform/service/errors.go:118.85,124.2 1 4 +github.com/tidepool-org/platform/service/errors.go:126.101,132.2 1 4 +github.com/tidepool-org/platform/service/errors.go:134.76,136.45 2 3 +github.com/tidepool-org/platform/service/errors.go:136.45,138.3 1 3 +github.com/tidepool-org/platform/service/errors.go:139.2,144.3 2 3 +github.com/tidepool-org/platform/service/errors.go:147.60,148.52 1 28 +github.com/tidepool-org/platform/service/errors.go:148.52,150.3 1 12 +github.com/tidepool-org/platform/service/errors.go:151.2,151.23 1 16 +github.com/tidepool-org/platform/service/request.go:26.51,27.16 1 4 +github.com/tidepool-org/platform/service/request.go:27.16,28.60 1 3 +github.com/tidepool-org/platform/service/request.go:28.60,30.4 1 1 +github.com/tidepool-org/platform/service/request.go:32.2,32.12 1 3 +github.com/tidepool-org/platform/service/request.go:35.57,36.16 1 3 +github.com/tidepool-org/platform/service/request.go:36.16,37.18 1 2 +github.com/tidepool-org/platform/service/request.go:37.18,39.4 1 1 +github.com/tidepool-org/platform/service/request.go:39.9,41.4 1 1 +github.com/tidepool-org/platform/service/request.go:45.53,46.16 1 4 +github.com/tidepool-org/platform/service/request.go:46.16,47.64 1 3 +github.com/tidepool-org/platform/service/request.go:47.64,49.4 1 1 +github.com/tidepool-org/platform/service/request.go:51.2,51.12 1 3 +github.com/tidepool-org/platform/service/request.go:54.61,55.16 1 3 +github.com/tidepool-org/platform/service/request.go:55.16,56.20 1 2 +github.com/tidepool-org/platform/service/request.go:56.20,58.4 1 1 +github.com/tidepool-org/platform/service/request.go:58.9,60.4 1 1 +github.com/tidepool-org/platform/service/request.go:64.63,65.16 1 4 +github.com/tidepool-org/platform/service/request.go:65.16,66.75 1 3 +github.com/tidepool-org/platform/service/request.go:66.75,68.4 1 1 +github.com/tidepool-org/platform/service/request.go:70.2,70.12 1 3 +github.com/tidepool-org/platform/service/request.go:73.72,74.16 1 3 +github.com/tidepool-org/platform/service/request.go:74.16,75.21 1 2 +github.com/tidepool-org/platform/service/request.go:75.21,77.4 1 1 +github.com/tidepool-org/platform/service/request.go:77.9,79.4 1 1 +github.com/tidepool-org/platform/service/request.go:83.55,84.16 1 7 +github.com/tidepool-org/platform/service/request.go:84.16,85.72 1 6 +github.com/tidepool-org/platform/service/request.go:85.72,87.4 1 3 +github.com/tidepool-org/platform/service/request.go:89.2,89.11 1 4 +github.com/tidepool-org/platform/service/request.go:92.69,93.16 1 3 +github.com/tidepool-org/platform/service/request.go:93.16,94.25 1 2 +github.com/tidepool-org/platform/service/request.go:94.25,96.4 1 1 +github.com/tidepool-org/platform/service/request.go:96.9,98.4 1 1 +github.com/tidepool-org/platform/service/request.go:102.55,103.16 1 7 +github.com/tidepool-org/platform/service/request.go:103.16,104.72 1 6 +github.com/tidepool-org/platform/service/request.go:104.72,106.4 1 3 +github.com/tidepool-org/platform/service/request.go:108.2,108.11 1 4 +github.com/tidepool-org/platform/service/request.go:111.69,112.16 1 3 +github.com/tidepool-org/platform/service/request.go:112.16,113.25 1 2 +github.com/tidepool-org/platform/service/request.go:113.25,115.4 1 1 +github.com/tidepool-org/platform/service/request.go:115.9,117.4 1 1 +github.com/tidepool-org/platform/service/request.go:121.92,122.26 1 5 +github.com/tidepool-org/platform/service/request.go:122.26,124.3 1 1 +github.com/tidepool-org/platform/service/request.go:125.2,125.31 1 4 +github.com/tidepool-org/platform/service/request.go:125.31,127.3 1 1 +github.com/tidepool-org/platform/service/request.go:129.2,129.79 1 3 +github.com/tidepool-org/platform/service/request.go:129.79,131.3 1 2 +github.com/tidepool-org/platform/service/request.go:132.2,132.79 1 3 +github.com/tidepool-org/platform/service/request.go:132.79,134.3 1 2 +github.com/tidepool-org/platform/service/request.go:136.2,136.12 1 3 +github.com/tidepool-org/platform/service/response.go:9.50,10.21 1 1 +github.com/tidepool-org/platform/service/response.go:10.21,12.3 1 1 diff --git a/vendor/github.com/tidepool-org/platform/structure/base/base.coverprofile b/vendor/github.com/tidepool-org/platform/structure/base/base.coverprofile new file mode 100644 index 000000000..7ab9d788f --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/structure/base/base.coverprofile @@ -0,0 +1,17 @@ +mode: atomic +github.com/tidepool-org/platform/structure/base/base.go:15.18,20.2 1 26 +github.com/tidepool-org/platform/structure/base/base.go:22.42,24.2 1 4 +github.com/tidepool-org/platform/structure/base/base.go:26.33,28.2 1 2 +github.com/tidepool-org/platform/structure/base/base.go:30.42,32.2 1 2 +github.com/tidepool-org/platform/structure/base/base.go:34.31,36.2 1 2 +github.com/tidepool-org/platform/structure/base/base.go:38.35,40.2 1 2 +github.com/tidepool-org/platform/structure/base/base.go:42.32,44.2 1 2 +github.com/tidepool-org/platform/structure/base/base.go:46.30,48.2 1 15 +github.com/tidepool-org/platform/structure/base/base.go:50.39,51.16 1 10 +github.com/tidepool-org/platform/structure/base/base.go:51.16,55.3 3 9 +github.com/tidepool-org/platform/structure/base/base.go:58.58,65.2 1 2 +github.com/tidepool-org/platform/structure/base/base.go:67.58,74.2 1 7 +github.com/tidepool-org/platform/structure/base/base.go:76.49,83.2 1 9 +github.com/tidepool-org/platform/structure/base/base.go:85.54,92.24 2 2 +github.com/tidepool-org/platform/structure/base/base.go:92.24,94.3 1 1 +github.com/tidepool-org/platform/structure/base/base.go:95.2,95.13 1 2 diff --git a/vendor/github.com/tidepool-org/platform/structure/base/cover.out b/vendor/github.com/tidepool-org/platform/structure/base/cover.out new file mode 100644 index 000000000..7ab9d788f --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/structure/base/cover.out @@ -0,0 +1,17 @@ +mode: atomic +github.com/tidepool-org/platform/structure/base/base.go:15.18,20.2 1 26 +github.com/tidepool-org/platform/structure/base/base.go:22.42,24.2 1 4 +github.com/tidepool-org/platform/structure/base/base.go:26.33,28.2 1 2 +github.com/tidepool-org/platform/structure/base/base.go:30.42,32.2 1 2 +github.com/tidepool-org/platform/structure/base/base.go:34.31,36.2 1 2 +github.com/tidepool-org/platform/structure/base/base.go:38.35,40.2 1 2 +github.com/tidepool-org/platform/structure/base/base.go:42.32,44.2 1 2 +github.com/tidepool-org/platform/structure/base/base.go:46.30,48.2 1 15 +github.com/tidepool-org/platform/structure/base/base.go:50.39,51.16 1 10 +github.com/tidepool-org/platform/structure/base/base.go:51.16,55.3 3 9 +github.com/tidepool-org/platform/structure/base/base.go:58.58,65.2 1 2 +github.com/tidepool-org/platform/structure/base/base.go:67.58,74.2 1 7 +github.com/tidepool-org/platform/structure/base/base.go:76.49,83.2 1 9 +github.com/tidepool-org/platform/structure/base/base.go:85.54,92.24 2 2 +github.com/tidepool-org/platform/structure/base/base.go:92.24,94.3 1 1 +github.com/tidepool-org/platform/structure/base/base.go:95.2,95.13 1 2 diff --git a/vendor/github.com/tidepool-org/platform/structure/cover.out b/vendor/github.com/tidepool-org/platform/structure/cover.out new file mode 100644 index 000000000..5b0230e69 --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/structure/cover.out @@ -0,0 +1,19 @@ +mode: atomic +github.com/tidepool-org/platform/structure/parser.go:88.69,89.27 1 0 +github.com/tidepool-org/platform/structure/parser.go:89.27,91.30 2 0 +github.com/tidepool-org/platform/structure/parser.go:91.30,93.4 1 0 +github.com/tidepool-org/platform/structure/parser.go:94.3,94.41 1 0 +github.com/tidepool-org/platform/structure/parser.go:95.8,97.3 1 0 +github.com/tidepool-org/platform/structure/parser.go:98.2,98.22 1 0 +github.com/tidepool-org/platform/structure/structure.go:13.25,19.2 1 1 +github.com/tidepool-org/platform/structure/structure.go:52.44,54.2 1 10 +github.com/tidepool-org/platform/structure/structure.go:56.46,58.2 1 3 +github.com/tidepool-org/platform/structure/structure.go:60.44,62.2 1 3 +github.com/tidepool-org/platform/structure/structure.go:64.66,65.23 1 9 +github.com/tidepool-org/platform/structure/structure.go:65.23,67.3 1 2 +github.com/tidepool-org/platform/structure/structure.go:69.2,71.3 1 7 +github.com/tidepool-org/platform/structure/structure.go:78.40,80.2 1 16 +github.com/tidepool-org/platform/structure/structure.go:82.44,84.2 1 5 +github.com/tidepool-org/platform/structure/structure.go:86.42,88.2 1 5 +github.com/tidepool-org/platform/structure/structure.go:90.64,94.2 1 26 +github.com/tidepool-org/platform/structure/structure.go:96.54,98.2 1 28 diff --git a/vendor/github.com/tidepool-org/platform/structure/normalizer/cover.out b/vendor/github.com/tidepool-org/platform/structure/normalizer/cover.out new file mode 100644 index 000000000..38629df28 --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/structure/normalizer/cover.out @@ -0,0 +1,16 @@ +mode: atomic +github.com/tidepool-org/platform/structure/normalizer/normalizer.go:12.24,14.2 1 26 +github.com/tidepool-org/platform/structure/normalizer/normalizer.go:16.58,20.2 1 27 +github.com/tidepool-org/platform/structure/normalizer/normalizer.go:22.48,24.2 1 4 +github.com/tidepool-org/platform/structure/normalizer/normalizer.go:26.39,28.2 1 2 +github.com/tidepool-org/platform/structure/normalizer/normalizer.go:30.48,32.2 1 2 +github.com/tidepool-org/platform/structure/normalizer/normalizer.go:34.37,36.2 1 2 +github.com/tidepool-org/platform/structure/normalizer/normalizer.go:38.41,40.2 1 2 +github.com/tidepool-org/platform/structure/normalizer/normalizer.go:42.38,44.2 1 2 +github.com/tidepool-org/platform/structure/normalizer/normalizer.go:46.36,48.2 1 10 +github.com/tidepool-org/platform/structure/normalizer/normalizer.go:50.45,52.2 1 8 +github.com/tidepool-org/platform/structure/normalizer/normalizer.go:54.75,57.2 2 2 +github.com/tidepool-org/platform/structure/normalizer/normalizer.go:59.79,63.2 1 2 +github.com/tidepool-org/platform/structure/normalizer/normalizer.go:65.79,69.2 1 5 +github.com/tidepool-org/platform/structure/normalizer/normalizer.go:71.70,75.2 1 5 +github.com/tidepool-org/platform/structure/normalizer/normalizer.go:77.75,81.2 1 2 diff --git a/vendor/github.com/tidepool-org/platform/structure/normalizer/normalizer.coverprofile b/vendor/github.com/tidepool-org/platform/structure/normalizer/normalizer.coverprofile new file mode 100644 index 000000000..38629df28 --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/structure/normalizer/normalizer.coverprofile @@ -0,0 +1,16 @@ +mode: atomic +github.com/tidepool-org/platform/structure/normalizer/normalizer.go:12.24,14.2 1 26 +github.com/tidepool-org/platform/structure/normalizer/normalizer.go:16.58,20.2 1 27 +github.com/tidepool-org/platform/structure/normalizer/normalizer.go:22.48,24.2 1 4 +github.com/tidepool-org/platform/structure/normalizer/normalizer.go:26.39,28.2 1 2 +github.com/tidepool-org/platform/structure/normalizer/normalizer.go:30.48,32.2 1 2 +github.com/tidepool-org/platform/structure/normalizer/normalizer.go:34.37,36.2 1 2 +github.com/tidepool-org/platform/structure/normalizer/normalizer.go:38.41,40.2 1 2 +github.com/tidepool-org/platform/structure/normalizer/normalizer.go:42.38,44.2 1 2 +github.com/tidepool-org/platform/structure/normalizer/normalizer.go:46.36,48.2 1 10 +github.com/tidepool-org/platform/structure/normalizer/normalizer.go:50.45,52.2 1 8 +github.com/tidepool-org/platform/structure/normalizer/normalizer.go:54.75,57.2 2 2 +github.com/tidepool-org/platform/structure/normalizer/normalizer.go:59.79,63.2 1 2 +github.com/tidepool-org/platform/structure/normalizer/normalizer.go:65.79,69.2 1 5 +github.com/tidepool-org/platform/structure/normalizer/normalizer.go:71.70,75.2 1 5 +github.com/tidepool-org/platform/structure/normalizer/normalizer.go:77.75,81.2 1 2 diff --git a/vendor/github.com/tidepool-org/platform/structure/parser/cover.out b/vendor/github.com/tidepool-org/platform/structure/parser/cover.out new file mode 100644 index 000000000..5029fc2dd --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/structure/parser/cover.out @@ -0,0 +1,214 @@ +mode: atomic +github.com/tidepool-org/platform/structure/parser/array_parser.go:18.44,20.2 1 1 +github.com/tidepool-org/platform/structure/parser/array_parser.go:22.76,24.18 2 113 +github.com/tidepool-org/platform/structure/parser/array_parser.go:24.18,26.3 1 69 +github.com/tidepool-org/platform/structure/parser/array_parser.go:28.2,32.3 1 113 +github.com/tidepool-org/platform/structure/parser/array_parser.go:35.43,37.2 1 4 +github.com/tidepool-org/platform/structure/parser/array_parser.go:39.34,41.2 1 2 +github.com/tidepool-org/platform/structure/parser/array_parser.go:43.43,45.2 1 1 +github.com/tidepool-org/platform/structure/parser/array_parser.go:47.32,49.2 1 2 +github.com/tidepool-org/platform/structure/parser/array_parser.go:51.36,53.2 1 2 +github.com/tidepool-org/platform/structure/parser/array_parser.go:55.33,57.2 1 2 +github.com/tidepool-org/platform/structure/parser/array_parser.go:59.31,61.2 1 9 +github.com/tidepool-org/platform/structure/parser/array_parser.go:63.40,65.2 1 1 +github.com/tidepool-org/platform/structure/parser/array_parser.go:67.31,69.2 1 11 +github.com/tidepool-org/platform/structure/parser/array_parser.go:71.68,74.2 2 2 +github.com/tidepool-org/platform/structure/parser/array_parser.go:76.36,77.20 1 16 +github.com/tidepool-org/platform/structure/parser/array_parser.go:77.20,79.3 1 1 +github.com/tidepool-org/platform/structure/parser/array_parser.go:81.2,82.34 2 15 +github.com/tidepool-org/platform/structure/parser/array_parser.go:82.34,84.3 1 37 +github.com/tidepool-org/platform/structure/parser/array_parser.go:86.2,86.19 1 15 +github.com/tidepool-org/platform/structure/parser/array_parser.go:89.53,90.20 1 3 +github.com/tidepool-org/platform/structure/parser/array_parser.go:90.20,92.3 1 1 +github.com/tidepool-org/platform/structure/parser/array_parser.go:94.2,94.52 1 2 +github.com/tidepool-org/platform/structure/parser/array_parser.go:97.43,99.9 2 5 +github.com/tidepool-org/platform/structure/parser/array_parser.go:99.9,101.3 1 3 +github.com/tidepool-org/platform/structure/parser/array_parser.go:103.2,104.9 2 2 +github.com/tidepool-org/platform/structure/parser/array_parser.go:104.9,107.3 2 1 +github.com/tidepool-org/platform/structure/parser/array_parser.go:109.2,109.19 1 1 +github.com/tidepool-org/platform/structure/parser/array_parser.go:112.49,114.9 2 7 +github.com/tidepool-org/platform/structure/parser/array_parser.go:114.9,116.3 1 3 +github.com/tidepool-org/platform/structure/parser/array_parser.go:118.2,119.21 2 4 +github.com/tidepool-org/platform/structure/parser/array_parser.go:119.21,121.18 2 2 +github.com/tidepool-org/platform/structure/parser/array_parser.go:121.18,124.4 2 1 +github.com/tidepool-org/platform/structure/parser/array_parser.go:125.3,125.35 1 1 +github.com/tidepool-org/platform/structure/parser/array_parser.go:128.2,128.22 1 3 +github.com/tidepool-org/platform/structure/parser/array_parser.go:131.41,133.9 2 9 +github.com/tidepool-org/platform/structure/parser/array_parser.go:133.9,135.3 1 3 +github.com/tidepool-org/platform/structure/parser/array_parser.go:137.2,138.17 2 6 +github.com/tidepool-org/platform/structure/parser/array_parser.go:138.17,140.22 2 3 +github.com/tidepool-org/platform/structure/parser/array_parser.go:140.22,143.4 2 1 +github.com/tidepool-org/platform/structure/parser/array_parser.go:144.3,144.47 1 2 +github.com/tidepool-org/platform/structure/parser/array_parser.go:144.47,147.4 2 1 +github.com/tidepool-org/platform/structure/parser/array_parser.go:148.3,148.31 1 1 +github.com/tidepool-org/platform/structure/parser/array_parser.go:151.2,151.18 1 4 +github.com/tidepool-org/platform/structure/parser/array_parser.go:154.47,156.9 2 15 +github.com/tidepool-org/platform/structure/parser/array_parser.go:156.9,158.3 1 3 +github.com/tidepool-org/platform/structure/parser/array_parser.go:160.2,161.9 2 12 +github.com/tidepool-org/platform/structure/parser/array_parser.go:161.9,164.3 2 3 +github.com/tidepool-org/platform/structure/parser/array_parser.go:166.2,166.21 1 9 +github.com/tidepool-org/platform/structure/parser/array_parser.go:169.54,171.9 2 7 +github.com/tidepool-org/platform/structure/parser/array_parser.go:171.9,173.3 1 3 +github.com/tidepool-org/platform/structure/parser/array_parser.go:175.2,176.25 2 4 +github.com/tidepool-org/platform/structure/parser/array_parser.go:176.25,178.20 2 3 +github.com/tidepool-org/platform/structure/parser/array_parser.go:178.20,181.4 2 1 +github.com/tidepool-org/platform/structure/parser/array_parser.go:183.3,185.38 3 2 +github.com/tidepool-org/platform/structure/parser/array_parser.go:185.38,187.70 2 4 +github.com/tidepool-org/platform/structure/parser/array_parser.go:187.70,189.5 1 3 +github.com/tidepool-org/platform/structure/parser/array_parser.go:190.4,190.62 1 4 +github.com/tidepool-org/platform/structure/parser/array_parser.go:194.2,194.26 1 3 +github.com/tidepool-org/platform/structure/parser/array_parser.go:197.63,199.9 2 6 +github.com/tidepool-org/platform/structure/parser/array_parser.go:199.9,201.3 1 3 +github.com/tidepool-org/platform/structure/parser/array_parser.go:203.2,204.9 2 3 +github.com/tidepool-org/platform/structure/parser/array_parser.go:204.9,207.3 2 1 +github.com/tidepool-org/platform/structure/parser/array_parser.go:209.2,210.16 2 2 +github.com/tidepool-org/platform/structure/parser/array_parser.go:210.16,213.3 2 1 +github.com/tidepool-org/platform/structure/parser/array_parser.go:215.2,215.19 1 1 +github.com/tidepool-org/platform/structure/parser/array_parser.go:218.63,220.9 2 10 +github.com/tidepool-org/platform/structure/parser/array_parser.go:220.9,222.3 1 6 +github.com/tidepool-org/platform/structure/parser/array_parser.go:224.2,225.9 2 4 +github.com/tidepool-org/platform/structure/parser/array_parser.go:225.9,228.3 2 2 +github.com/tidepool-org/platform/structure/parser/array_parser.go:230.2,230.21 1 2 +github.com/tidepool-org/platform/structure/parser/array_parser.go:233.53,235.9 2 10 +github.com/tidepool-org/platform/structure/parser/array_parser.go:235.9,237.3 1 6 +github.com/tidepool-org/platform/structure/parser/array_parser.go:239.2,240.9 2 4 +github.com/tidepool-org/platform/structure/parser/array_parser.go:240.9,243.3 2 2 +github.com/tidepool-org/platform/structure/parser/array_parser.go:245.2,245.20 1 2 +github.com/tidepool-org/platform/structure/parser/array_parser.go:248.55,250.9 2 7 +github.com/tidepool-org/platform/structure/parser/array_parser.go:250.9,252.3 1 4 +github.com/tidepool-org/platform/structure/parser/array_parser.go:254.2,254.18 1 3 +github.com/tidepool-org/platform/structure/parser/array_parser.go:257.35,258.20 1 6 +github.com/tidepool-org/platform/structure/parser/array_parser.go:258.20,260.3 1 2 +github.com/tidepool-org/platform/structure/parser/array_parser.go:262.2,262.34 1 4 +github.com/tidepool-org/platform/structure/parser/array_parser.go:262.34,263.27 1 9 +github.com/tidepool-org/platform/structure/parser/array_parser.go:263.27,265.4 1 5 +github.com/tidepool-org/platform/structure/parser/array_parser.go:268.2,268.18 1 4 +github.com/tidepool-org/platform/structure/parser/array_parser.go:271.75,277.2 1 2 +github.com/tidepool-org/platform/structure/parser/array_parser.go:279.75,285.2 1 6 +github.com/tidepool-org/platform/structure/parser/array_parser.go:287.66,293.2 1 5 +github.com/tidepool-org/platform/structure/parser/array_parser.go:295.81,297.2 1 5 +github.com/tidepool-org/platform/structure/parser/array_parser.go:299.79,301.2 1 5 +github.com/tidepool-org/platform/structure/parser/array_parser.go:303.83,305.2 1 1 +github.com/tidepool-org/platform/structure/parser/array_parser.go:307.56,308.20 1 76 +github.com/tidepool-org/platform/structure/parser/array_parser.go:308.20,310.3 1 11 +github.com/tidepool-org/platform/structure/parser/array_parser.go:312.2,312.49 1 65 +github.com/tidepool-org/platform/structure/parser/array_parser.go:312.49,314.3 1 22 +github.com/tidepool-org/platform/structure/parser/array_parser.go:316.2,319.21 3 43 +github.com/tidepool-org/platform/structure/parser/array_parser.go:319.21,321.3 1 1 +github.com/tidepool-org/platform/structure/parser/array_parser.go:323.2,323.23 1 42 +github.com/tidepool-org/platform/structure/parser/errors.go:17.48,19.2 1 8 +github.com/tidepool-org/platform/structure/parser/errors.go:21.51,23.2 1 8 +github.com/tidepool-org/platform/structure/parser/errors.go:25.47,27.2 1 12 +github.com/tidepool-org/platform/structure/parser/errors.go:29.50,31.2 1 12 +github.com/tidepool-org/platform/structure/parser/errors.go:33.48,35.2 1 10 +github.com/tidepool-org/platform/structure/parser/errors.go:37.50,39.2 1 12 +github.com/tidepool-org/platform/structure/parser/errors.go:41.49,43.2 1 16 +github.com/tidepool-org/platform/structure/parser/errors.go:45.67,47.2 1 7 +github.com/tidepool-org/platform/structure/parser/errors.go:49.29,51.2 1 21 +github.com/tidepool-org/platform/structure/parser/object_parser.go:18.56,20.2 1 1 +github.com/tidepool-org/platform/structure/parser/object_parser.go:22.88,24.19 2 103 +github.com/tidepool-org/platform/structure/parser/object_parser.go:24.19,26.3 1 59 +github.com/tidepool-org/platform/structure/parser/object_parser.go:28.2,32.3 1 103 +github.com/tidepool-org/platform/structure/parser/object_parser.go:35.44,37.2 1 4 +github.com/tidepool-org/platform/structure/parser/object_parser.go:39.35,41.2 1 2 +github.com/tidepool-org/platform/structure/parser/object_parser.go:43.44,45.2 1 1 +github.com/tidepool-org/platform/structure/parser/object_parser.go:47.33,49.2 1 2 +github.com/tidepool-org/platform/structure/parser/object_parser.go:51.37,53.2 1 2 +github.com/tidepool-org/platform/structure/parser/object_parser.go:55.34,57.2 1 2 +github.com/tidepool-org/platform/structure/parser/object_parser.go:59.32,61.2 1 9 +github.com/tidepool-org/platform/structure/parser/object_parser.go:63.41,65.2 1 1 +github.com/tidepool-org/platform/structure/parser/object_parser.go:67.32,69.2 1 11 +github.com/tidepool-org/platform/structure/parser/object_parser.go:71.71,74.2 2 2 +github.com/tidepool-org/platform/structure/parser/object_parser.go:76.40,77.21 1 5 +github.com/tidepool-org/platform/structure/parser/object_parser.go:77.21,79.3 1 1 +github.com/tidepool-org/platform/structure/parser/object_parser.go:81.2,82.35 2 4 +github.com/tidepool-org/platform/structure/parser/object_parser.go:82.35,84.3 1 4 +github.com/tidepool-org/platform/structure/parser/object_parser.go:86.2,86.19 1 4 +github.com/tidepool-org/platform/structure/parser/object_parser.go:89.57,90.21 1 3 +github.com/tidepool-org/platform/structure/parser/object_parser.go:90.21,92.3 1 1 +github.com/tidepool-org/platform/structure/parser/object_parser.go:94.2,95.11 2 2 +github.com/tidepool-org/platform/structure/parser/object_parser.go:98.47,100.9 2 4 +github.com/tidepool-org/platform/structure/parser/object_parser.go:100.9,102.3 1 2 +github.com/tidepool-org/platform/structure/parser/object_parser.go:104.2,105.9 2 2 +github.com/tidepool-org/platform/structure/parser/object_parser.go:105.9,108.3 2 1 +github.com/tidepool-org/platform/structure/parser/object_parser.go:110.2,110.19 1 1 +github.com/tidepool-org/platform/structure/parser/object_parser.go:113.53,115.9 2 6 +github.com/tidepool-org/platform/structure/parser/object_parser.go:115.9,117.3 1 2 +github.com/tidepool-org/platform/structure/parser/object_parser.go:119.2,120.21 2 4 +github.com/tidepool-org/platform/structure/parser/object_parser.go:120.21,122.18 2 2 +github.com/tidepool-org/platform/structure/parser/object_parser.go:122.18,125.4 2 1 +github.com/tidepool-org/platform/structure/parser/object_parser.go:126.3,126.35 1 1 +github.com/tidepool-org/platform/structure/parser/object_parser.go:129.2,129.22 1 3 +github.com/tidepool-org/platform/structure/parser/object_parser.go:132.45,134.9 2 8 +github.com/tidepool-org/platform/structure/parser/object_parser.go:134.9,136.3 1 2 +github.com/tidepool-org/platform/structure/parser/object_parser.go:138.2,139.17 2 6 +github.com/tidepool-org/platform/structure/parser/object_parser.go:139.17,141.22 2 3 +github.com/tidepool-org/platform/structure/parser/object_parser.go:141.22,144.4 2 1 +github.com/tidepool-org/platform/structure/parser/object_parser.go:145.3,145.47 1 2 +github.com/tidepool-org/platform/structure/parser/object_parser.go:145.47,148.4 2 1 +github.com/tidepool-org/platform/structure/parser/object_parser.go:149.3,149.31 1 1 +github.com/tidepool-org/platform/structure/parser/object_parser.go:152.2,152.18 1 4 +github.com/tidepool-org/platform/structure/parser/object_parser.go:155.51,157.9 2 6 +github.com/tidepool-org/platform/structure/parser/object_parser.go:157.9,159.3 1 2 +github.com/tidepool-org/platform/structure/parser/object_parser.go:161.2,162.9 2 4 +github.com/tidepool-org/platform/structure/parser/object_parser.go:162.9,165.3 2 1 +github.com/tidepool-org/platform/structure/parser/object_parser.go:167.2,167.21 1 3 +github.com/tidepool-org/platform/structure/parser/object_parser.go:170.58,172.9 2 6 +github.com/tidepool-org/platform/structure/parser/object_parser.go:172.9,174.3 1 2 +github.com/tidepool-org/platform/structure/parser/object_parser.go:176.2,177.25 2 4 +github.com/tidepool-org/platform/structure/parser/object_parser.go:177.25,179.20 2 3 +github.com/tidepool-org/platform/structure/parser/object_parser.go:179.20,182.4 2 1 +github.com/tidepool-org/platform/structure/parser/object_parser.go:184.3,186.38 3 2 +github.com/tidepool-org/platform/structure/parser/object_parser.go:186.38,188.70 2 4 +github.com/tidepool-org/platform/structure/parser/object_parser.go:188.70,190.5 1 3 +github.com/tidepool-org/platform/structure/parser/object_parser.go:191.4,191.62 1 4 +github.com/tidepool-org/platform/structure/parser/object_parser.go:195.2,195.26 1 3 +github.com/tidepool-org/platform/structure/parser/object_parser.go:198.67,203.9 4 6 +github.com/tidepool-org/platform/structure/parser/object_parser.go:203.9,205.3 1 2 +github.com/tidepool-org/platform/structure/parser/object_parser.go:207.2,207.25 1 4 +github.com/tidepool-org/platform/structure/parser/object_parser.go:208.17,209.35 1 1 +github.com/tidepool-org/platform/structure/parser/object_parser.go:210.10,212.10 2 3 +github.com/tidepool-org/platform/structure/parser/object_parser.go:212.10,215.4 2 1 +github.com/tidepool-org/platform/structure/parser/object_parser.go:217.3,218.17 2 2 +github.com/tidepool-org/platform/structure/parser/object_parser.go:218.17,221.4 2 1 +github.com/tidepool-org/platform/structure/parser/object_parser.go:224.2,224.19 1 2 +github.com/tidepool-org/platform/structure/parser/object_parser.go:229.76,231.9 2 5 +github.com/tidepool-org/platform/structure/parser/object_parser.go:231.9,233.3 1 1 +github.com/tidepool-org/platform/structure/parser/object_parser.go:235.2,236.9 2 4 +github.com/tidepool-org/platform/structure/parser/object_parser.go:236.9,239.3 2 1 +github.com/tidepool-org/platform/structure/parser/object_parser.go:241.2,243.16 3 3 +github.com/tidepool-org/platform/structure/parser/object_parser.go:243.16,246.3 2 1 +github.com/tidepool-org/platform/structure/parser/object_parser.go:248.2,248.19 1 2 +github.com/tidepool-org/platform/structure/parser/object_parser.go:251.67,253.9 2 8 +github.com/tidepool-org/platform/structure/parser/object_parser.go:253.9,255.3 1 4 +github.com/tidepool-org/platform/structure/parser/object_parser.go:257.2,258.9 2 4 +github.com/tidepool-org/platform/structure/parser/object_parser.go:258.9,261.3 2 2 +github.com/tidepool-org/platform/structure/parser/object_parser.go:263.2,263.21 1 2 +github.com/tidepool-org/platform/structure/parser/object_parser.go:266.57,268.9 2 8 +github.com/tidepool-org/platform/structure/parser/object_parser.go:268.9,270.3 1 4 +github.com/tidepool-org/platform/structure/parser/object_parser.go:272.2,273.9 2 4 +github.com/tidepool-org/platform/structure/parser/object_parser.go:273.9,276.3 2 2 +github.com/tidepool-org/platform/structure/parser/object_parser.go:278.2,278.20 1 2 +github.com/tidepool-org/platform/structure/parser/object_parser.go:281.59,283.9 2 5 +github.com/tidepool-org/platform/structure/parser/object_parser.go:283.9,285.3 1 2 +github.com/tidepool-org/platform/structure/parser/object_parser.go:287.2,287.18 1 3 +github.com/tidepool-org/platform/structure/parser/object_parser.go:290.36,291.21 1 4 +github.com/tidepool-org/platform/structure/parser/object_parser.go:291.21,293.3 1 1 +github.com/tidepool-org/platform/structure/parser/object_parser.go:295.2,296.35 2 3 +github.com/tidepool-org/platform/structure/parser/object_parser.go:296.35,297.27 1 9 +github.com/tidepool-org/platform/structure/parser/object_parser.go:297.27,299.4 1 5 +github.com/tidepool-org/platform/structure/parser/object_parser.go:302.2,302.25 1 3 +github.com/tidepool-org/platform/structure/parser/object_parser.go:302.25,304.40 2 2 +github.com/tidepool-org/platform/structure/parser/object_parser.go:304.40,306.4 1 5 +github.com/tidepool-org/platform/structure/parser/object_parser.go:309.2,309.18 1 3 +github.com/tidepool-org/platform/structure/parser/object_parser.go:312.77,318.2 1 2 +github.com/tidepool-org/platform/structure/parser/object_parser.go:320.77,326.2 1 6 +github.com/tidepool-org/platform/structure/parser/object_parser.go:328.68,334.2 1 5 +github.com/tidepool-org/platform/structure/parser/object_parser.go:336.85,338.2 1 4 +github.com/tidepool-org/platform/structure/parser/object_parser.go:340.83,342.2 1 4 +github.com/tidepool-org/platform/structure/parser/object_parser.go:344.87,346.2 1 1 +github.com/tidepool-org/platform/structure/parser/object_parser.go:348.60,349.21 1 62 +github.com/tidepool-org/platform/structure/parser/object_parser.go:349.21,351.3 1 11 +github.com/tidepool-org/platform/structure/parser/object_parser.go:353.2,356.28 3 51 +github.com/tidepool-org/platform/structure/parser/object_parser.go:356.28,358.3 1 12 +github.com/tidepool-org/platform/structure/parser/object_parser.go:360.2,360.23 1 39 diff --git a/vendor/github.com/tidepool-org/platform/structure/parser/parser.coverprofile b/vendor/github.com/tidepool-org/platform/structure/parser/parser.coverprofile new file mode 100644 index 000000000..5029fc2dd --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/structure/parser/parser.coverprofile @@ -0,0 +1,214 @@ +mode: atomic +github.com/tidepool-org/platform/structure/parser/array_parser.go:18.44,20.2 1 1 +github.com/tidepool-org/platform/structure/parser/array_parser.go:22.76,24.18 2 113 +github.com/tidepool-org/platform/structure/parser/array_parser.go:24.18,26.3 1 69 +github.com/tidepool-org/platform/structure/parser/array_parser.go:28.2,32.3 1 113 +github.com/tidepool-org/platform/structure/parser/array_parser.go:35.43,37.2 1 4 +github.com/tidepool-org/platform/structure/parser/array_parser.go:39.34,41.2 1 2 +github.com/tidepool-org/platform/structure/parser/array_parser.go:43.43,45.2 1 1 +github.com/tidepool-org/platform/structure/parser/array_parser.go:47.32,49.2 1 2 +github.com/tidepool-org/platform/structure/parser/array_parser.go:51.36,53.2 1 2 +github.com/tidepool-org/platform/structure/parser/array_parser.go:55.33,57.2 1 2 +github.com/tidepool-org/platform/structure/parser/array_parser.go:59.31,61.2 1 9 +github.com/tidepool-org/platform/structure/parser/array_parser.go:63.40,65.2 1 1 +github.com/tidepool-org/platform/structure/parser/array_parser.go:67.31,69.2 1 11 +github.com/tidepool-org/platform/structure/parser/array_parser.go:71.68,74.2 2 2 +github.com/tidepool-org/platform/structure/parser/array_parser.go:76.36,77.20 1 16 +github.com/tidepool-org/platform/structure/parser/array_parser.go:77.20,79.3 1 1 +github.com/tidepool-org/platform/structure/parser/array_parser.go:81.2,82.34 2 15 +github.com/tidepool-org/platform/structure/parser/array_parser.go:82.34,84.3 1 37 +github.com/tidepool-org/platform/structure/parser/array_parser.go:86.2,86.19 1 15 +github.com/tidepool-org/platform/structure/parser/array_parser.go:89.53,90.20 1 3 +github.com/tidepool-org/platform/structure/parser/array_parser.go:90.20,92.3 1 1 +github.com/tidepool-org/platform/structure/parser/array_parser.go:94.2,94.52 1 2 +github.com/tidepool-org/platform/structure/parser/array_parser.go:97.43,99.9 2 5 +github.com/tidepool-org/platform/structure/parser/array_parser.go:99.9,101.3 1 3 +github.com/tidepool-org/platform/structure/parser/array_parser.go:103.2,104.9 2 2 +github.com/tidepool-org/platform/structure/parser/array_parser.go:104.9,107.3 2 1 +github.com/tidepool-org/platform/structure/parser/array_parser.go:109.2,109.19 1 1 +github.com/tidepool-org/platform/structure/parser/array_parser.go:112.49,114.9 2 7 +github.com/tidepool-org/platform/structure/parser/array_parser.go:114.9,116.3 1 3 +github.com/tidepool-org/platform/structure/parser/array_parser.go:118.2,119.21 2 4 +github.com/tidepool-org/platform/structure/parser/array_parser.go:119.21,121.18 2 2 +github.com/tidepool-org/platform/structure/parser/array_parser.go:121.18,124.4 2 1 +github.com/tidepool-org/platform/structure/parser/array_parser.go:125.3,125.35 1 1 +github.com/tidepool-org/platform/structure/parser/array_parser.go:128.2,128.22 1 3 +github.com/tidepool-org/platform/structure/parser/array_parser.go:131.41,133.9 2 9 +github.com/tidepool-org/platform/structure/parser/array_parser.go:133.9,135.3 1 3 +github.com/tidepool-org/platform/structure/parser/array_parser.go:137.2,138.17 2 6 +github.com/tidepool-org/platform/structure/parser/array_parser.go:138.17,140.22 2 3 +github.com/tidepool-org/platform/structure/parser/array_parser.go:140.22,143.4 2 1 +github.com/tidepool-org/platform/structure/parser/array_parser.go:144.3,144.47 1 2 +github.com/tidepool-org/platform/structure/parser/array_parser.go:144.47,147.4 2 1 +github.com/tidepool-org/platform/structure/parser/array_parser.go:148.3,148.31 1 1 +github.com/tidepool-org/platform/structure/parser/array_parser.go:151.2,151.18 1 4 +github.com/tidepool-org/platform/structure/parser/array_parser.go:154.47,156.9 2 15 +github.com/tidepool-org/platform/structure/parser/array_parser.go:156.9,158.3 1 3 +github.com/tidepool-org/platform/structure/parser/array_parser.go:160.2,161.9 2 12 +github.com/tidepool-org/platform/structure/parser/array_parser.go:161.9,164.3 2 3 +github.com/tidepool-org/platform/structure/parser/array_parser.go:166.2,166.21 1 9 +github.com/tidepool-org/platform/structure/parser/array_parser.go:169.54,171.9 2 7 +github.com/tidepool-org/platform/structure/parser/array_parser.go:171.9,173.3 1 3 +github.com/tidepool-org/platform/structure/parser/array_parser.go:175.2,176.25 2 4 +github.com/tidepool-org/platform/structure/parser/array_parser.go:176.25,178.20 2 3 +github.com/tidepool-org/platform/structure/parser/array_parser.go:178.20,181.4 2 1 +github.com/tidepool-org/platform/structure/parser/array_parser.go:183.3,185.38 3 2 +github.com/tidepool-org/platform/structure/parser/array_parser.go:185.38,187.70 2 4 +github.com/tidepool-org/platform/structure/parser/array_parser.go:187.70,189.5 1 3 +github.com/tidepool-org/platform/structure/parser/array_parser.go:190.4,190.62 1 4 +github.com/tidepool-org/platform/structure/parser/array_parser.go:194.2,194.26 1 3 +github.com/tidepool-org/platform/structure/parser/array_parser.go:197.63,199.9 2 6 +github.com/tidepool-org/platform/structure/parser/array_parser.go:199.9,201.3 1 3 +github.com/tidepool-org/platform/structure/parser/array_parser.go:203.2,204.9 2 3 +github.com/tidepool-org/platform/structure/parser/array_parser.go:204.9,207.3 2 1 +github.com/tidepool-org/platform/structure/parser/array_parser.go:209.2,210.16 2 2 +github.com/tidepool-org/platform/structure/parser/array_parser.go:210.16,213.3 2 1 +github.com/tidepool-org/platform/structure/parser/array_parser.go:215.2,215.19 1 1 +github.com/tidepool-org/platform/structure/parser/array_parser.go:218.63,220.9 2 10 +github.com/tidepool-org/platform/structure/parser/array_parser.go:220.9,222.3 1 6 +github.com/tidepool-org/platform/structure/parser/array_parser.go:224.2,225.9 2 4 +github.com/tidepool-org/platform/structure/parser/array_parser.go:225.9,228.3 2 2 +github.com/tidepool-org/platform/structure/parser/array_parser.go:230.2,230.21 1 2 +github.com/tidepool-org/platform/structure/parser/array_parser.go:233.53,235.9 2 10 +github.com/tidepool-org/platform/structure/parser/array_parser.go:235.9,237.3 1 6 +github.com/tidepool-org/platform/structure/parser/array_parser.go:239.2,240.9 2 4 +github.com/tidepool-org/platform/structure/parser/array_parser.go:240.9,243.3 2 2 +github.com/tidepool-org/platform/structure/parser/array_parser.go:245.2,245.20 1 2 +github.com/tidepool-org/platform/structure/parser/array_parser.go:248.55,250.9 2 7 +github.com/tidepool-org/platform/structure/parser/array_parser.go:250.9,252.3 1 4 +github.com/tidepool-org/platform/structure/parser/array_parser.go:254.2,254.18 1 3 +github.com/tidepool-org/platform/structure/parser/array_parser.go:257.35,258.20 1 6 +github.com/tidepool-org/platform/structure/parser/array_parser.go:258.20,260.3 1 2 +github.com/tidepool-org/platform/structure/parser/array_parser.go:262.2,262.34 1 4 +github.com/tidepool-org/platform/structure/parser/array_parser.go:262.34,263.27 1 9 +github.com/tidepool-org/platform/structure/parser/array_parser.go:263.27,265.4 1 5 +github.com/tidepool-org/platform/structure/parser/array_parser.go:268.2,268.18 1 4 +github.com/tidepool-org/platform/structure/parser/array_parser.go:271.75,277.2 1 2 +github.com/tidepool-org/platform/structure/parser/array_parser.go:279.75,285.2 1 6 +github.com/tidepool-org/platform/structure/parser/array_parser.go:287.66,293.2 1 5 +github.com/tidepool-org/platform/structure/parser/array_parser.go:295.81,297.2 1 5 +github.com/tidepool-org/platform/structure/parser/array_parser.go:299.79,301.2 1 5 +github.com/tidepool-org/platform/structure/parser/array_parser.go:303.83,305.2 1 1 +github.com/tidepool-org/platform/structure/parser/array_parser.go:307.56,308.20 1 76 +github.com/tidepool-org/platform/structure/parser/array_parser.go:308.20,310.3 1 11 +github.com/tidepool-org/platform/structure/parser/array_parser.go:312.2,312.49 1 65 +github.com/tidepool-org/platform/structure/parser/array_parser.go:312.49,314.3 1 22 +github.com/tidepool-org/platform/structure/parser/array_parser.go:316.2,319.21 3 43 +github.com/tidepool-org/platform/structure/parser/array_parser.go:319.21,321.3 1 1 +github.com/tidepool-org/platform/structure/parser/array_parser.go:323.2,323.23 1 42 +github.com/tidepool-org/platform/structure/parser/errors.go:17.48,19.2 1 8 +github.com/tidepool-org/platform/structure/parser/errors.go:21.51,23.2 1 8 +github.com/tidepool-org/platform/structure/parser/errors.go:25.47,27.2 1 12 +github.com/tidepool-org/platform/structure/parser/errors.go:29.50,31.2 1 12 +github.com/tidepool-org/platform/structure/parser/errors.go:33.48,35.2 1 10 +github.com/tidepool-org/platform/structure/parser/errors.go:37.50,39.2 1 12 +github.com/tidepool-org/platform/structure/parser/errors.go:41.49,43.2 1 16 +github.com/tidepool-org/platform/structure/parser/errors.go:45.67,47.2 1 7 +github.com/tidepool-org/platform/structure/parser/errors.go:49.29,51.2 1 21 +github.com/tidepool-org/platform/structure/parser/object_parser.go:18.56,20.2 1 1 +github.com/tidepool-org/platform/structure/parser/object_parser.go:22.88,24.19 2 103 +github.com/tidepool-org/platform/structure/parser/object_parser.go:24.19,26.3 1 59 +github.com/tidepool-org/platform/structure/parser/object_parser.go:28.2,32.3 1 103 +github.com/tidepool-org/platform/structure/parser/object_parser.go:35.44,37.2 1 4 +github.com/tidepool-org/platform/structure/parser/object_parser.go:39.35,41.2 1 2 +github.com/tidepool-org/platform/structure/parser/object_parser.go:43.44,45.2 1 1 +github.com/tidepool-org/platform/structure/parser/object_parser.go:47.33,49.2 1 2 +github.com/tidepool-org/platform/structure/parser/object_parser.go:51.37,53.2 1 2 +github.com/tidepool-org/platform/structure/parser/object_parser.go:55.34,57.2 1 2 +github.com/tidepool-org/platform/structure/parser/object_parser.go:59.32,61.2 1 9 +github.com/tidepool-org/platform/structure/parser/object_parser.go:63.41,65.2 1 1 +github.com/tidepool-org/platform/structure/parser/object_parser.go:67.32,69.2 1 11 +github.com/tidepool-org/platform/structure/parser/object_parser.go:71.71,74.2 2 2 +github.com/tidepool-org/platform/structure/parser/object_parser.go:76.40,77.21 1 5 +github.com/tidepool-org/platform/structure/parser/object_parser.go:77.21,79.3 1 1 +github.com/tidepool-org/platform/structure/parser/object_parser.go:81.2,82.35 2 4 +github.com/tidepool-org/platform/structure/parser/object_parser.go:82.35,84.3 1 4 +github.com/tidepool-org/platform/structure/parser/object_parser.go:86.2,86.19 1 4 +github.com/tidepool-org/platform/structure/parser/object_parser.go:89.57,90.21 1 3 +github.com/tidepool-org/platform/structure/parser/object_parser.go:90.21,92.3 1 1 +github.com/tidepool-org/platform/structure/parser/object_parser.go:94.2,95.11 2 2 +github.com/tidepool-org/platform/structure/parser/object_parser.go:98.47,100.9 2 4 +github.com/tidepool-org/platform/structure/parser/object_parser.go:100.9,102.3 1 2 +github.com/tidepool-org/platform/structure/parser/object_parser.go:104.2,105.9 2 2 +github.com/tidepool-org/platform/structure/parser/object_parser.go:105.9,108.3 2 1 +github.com/tidepool-org/platform/structure/parser/object_parser.go:110.2,110.19 1 1 +github.com/tidepool-org/platform/structure/parser/object_parser.go:113.53,115.9 2 6 +github.com/tidepool-org/platform/structure/parser/object_parser.go:115.9,117.3 1 2 +github.com/tidepool-org/platform/structure/parser/object_parser.go:119.2,120.21 2 4 +github.com/tidepool-org/platform/structure/parser/object_parser.go:120.21,122.18 2 2 +github.com/tidepool-org/platform/structure/parser/object_parser.go:122.18,125.4 2 1 +github.com/tidepool-org/platform/structure/parser/object_parser.go:126.3,126.35 1 1 +github.com/tidepool-org/platform/structure/parser/object_parser.go:129.2,129.22 1 3 +github.com/tidepool-org/platform/structure/parser/object_parser.go:132.45,134.9 2 8 +github.com/tidepool-org/platform/structure/parser/object_parser.go:134.9,136.3 1 2 +github.com/tidepool-org/platform/structure/parser/object_parser.go:138.2,139.17 2 6 +github.com/tidepool-org/platform/structure/parser/object_parser.go:139.17,141.22 2 3 +github.com/tidepool-org/platform/structure/parser/object_parser.go:141.22,144.4 2 1 +github.com/tidepool-org/platform/structure/parser/object_parser.go:145.3,145.47 1 2 +github.com/tidepool-org/platform/structure/parser/object_parser.go:145.47,148.4 2 1 +github.com/tidepool-org/platform/structure/parser/object_parser.go:149.3,149.31 1 1 +github.com/tidepool-org/platform/structure/parser/object_parser.go:152.2,152.18 1 4 +github.com/tidepool-org/platform/structure/parser/object_parser.go:155.51,157.9 2 6 +github.com/tidepool-org/platform/structure/parser/object_parser.go:157.9,159.3 1 2 +github.com/tidepool-org/platform/structure/parser/object_parser.go:161.2,162.9 2 4 +github.com/tidepool-org/platform/structure/parser/object_parser.go:162.9,165.3 2 1 +github.com/tidepool-org/platform/structure/parser/object_parser.go:167.2,167.21 1 3 +github.com/tidepool-org/platform/structure/parser/object_parser.go:170.58,172.9 2 6 +github.com/tidepool-org/platform/structure/parser/object_parser.go:172.9,174.3 1 2 +github.com/tidepool-org/platform/structure/parser/object_parser.go:176.2,177.25 2 4 +github.com/tidepool-org/platform/structure/parser/object_parser.go:177.25,179.20 2 3 +github.com/tidepool-org/platform/structure/parser/object_parser.go:179.20,182.4 2 1 +github.com/tidepool-org/platform/structure/parser/object_parser.go:184.3,186.38 3 2 +github.com/tidepool-org/platform/structure/parser/object_parser.go:186.38,188.70 2 4 +github.com/tidepool-org/platform/structure/parser/object_parser.go:188.70,190.5 1 3 +github.com/tidepool-org/platform/structure/parser/object_parser.go:191.4,191.62 1 4 +github.com/tidepool-org/platform/structure/parser/object_parser.go:195.2,195.26 1 3 +github.com/tidepool-org/platform/structure/parser/object_parser.go:198.67,203.9 4 6 +github.com/tidepool-org/platform/structure/parser/object_parser.go:203.9,205.3 1 2 +github.com/tidepool-org/platform/structure/parser/object_parser.go:207.2,207.25 1 4 +github.com/tidepool-org/platform/structure/parser/object_parser.go:208.17,209.35 1 1 +github.com/tidepool-org/platform/structure/parser/object_parser.go:210.10,212.10 2 3 +github.com/tidepool-org/platform/structure/parser/object_parser.go:212.10,215.4 2 1 +github.com/tidepool-org/platform/structure/parser/object_parser.go:217.3,218.17 2 2 +github.com/tidepool-org/platform/structure/parser/object_parser.go:218.17,221.4 2 1 +github.com/tidepool-org/platform/structure/parser/object_parser.go:224.2,224.19 1 2 +github.com/tidepool-org/platform/structure/parser/object_parser.go:229.76,231.9 2 5 +github.com/tidepool-org/platform/structure/parser/object_parser.go:231.9,233.3 1 1 +github.com/tidepool-org/platform/structure/parser/object_parser.go:235.2,236.9 2 4 +github.com/tidepool-org/platform/structure/parser/object_parser.go:236.9,239.3 2 1 +github.com/tidepool-org/platform/structure/parser/object_parser.go:241.2,243.16 3 3 +github.com/tidepool-org/platform/structure/parser/object_parser.go:243.16,246.3 2 1 +github.com/tidepool-org/platform/structure/parser/object_parser.go:248.2,248.19 1 2 +github.com/tidepool-org/platform/structure/parser/object_parser.go:251.67,253.9 2 8 +github.com/tidepool-org/platform/structure/parser/object_parser.go:253.9,255.3 1 4 +github.com/tidepool-org/platform/structure/parser/object_parser.go:257.2,258.9 2 4 +github.com/tidepool-org/platform/structure/parser/object_parser.go:258.9,261.3 2 2 +github.com/tidepool-org/platform/structure/parser/object_parser.go:263.2,263.21 1 2 +github.com/tidepool-org/platform/structure/parser/object_parser.go:266.57,268.9 2 8 +github.com/tidepool-org/platform/structure/parser/object_parser.go:268.9,270.3 1 4 +github.com/tidepool-org/platform/structure/parser/object_parser.go:272.2,273.9 2 4 +github.com/tidepool-org/platform/structure/parser/object_parser.go:273.9,276.3 2 2 +github.com/tidepool-org/platform/structure/parser/object_parser.go:278.2,278.20 1 2 +github.com/tidepool-org/platform/structure/parser/object_parser.go:281.59,283.9 2 5 +github.com/tidepool-org/platform/structure/parser/object_parser.go:283.9,285.3 1 2 +github.com/tidepool-org/platform/structure/parser/object_parser.go:287.2,287.18 1 3 +github.com/tidepool-org/platform/structure/parser/object_parser.go:290.36,291.21 1 4 +github.com/tidepool-org/platform/structure/parser/object_parser.go:291.21,293.3 1 1 +github.com/tidepool-org/platform/structure/parser/object_parser.go:295.2,296.35 2 3 +github.com/tidepool-org/platform/structure/parser/object_parser.go:296.35,297.27 1 9 +github.com/tidepool-org/platform/structure/parser/object_parser.go:297.27,299.4 1 5 +github.com/tidepool-org/platform/structure/parser/object_parser.go:302.2,302.25 1 3 +github.com/tidepool-org/platform/structure/parser/object_parser.go:302.25,304.40 2 2 +github.com/tidepool-org/platform/structure/parser/object_parser.go:304.40,306.4 1 5 +github.com/tidepool-org/platform/structure/parser/object_parser.go:309.2,309.18 1 3 +github.com/tidepool-org/platform/structure/parser/object_parser.go:312.77,318.2 1 2 +github.com/tidepool-org/platform/structure/parser/object_parser.go:320.77,326.2 1 6 +github.com/tidepool-org/platform/structure/parser/object_parser.go:328.68,334.2 1 5 +github.com/tidepool-org/platform/structure/parser/object_parser.go:336.85,338.2 1 4 +github.com/tidepool-org/platform/structure/parser/object_parser.go:340.83,342.2 1 4 +github.com/tidepool-org/platform/structure/parser/object_parser.go:344.87,346.2 1 1 +github.com/tidepool-org/platform/structure/parser/object_parser.go:348.60,349.21 1 62 +github.com/tidepool-org/platform/structure/parser/object_parser.go:349.21,351.3 1 11 +github.com/tidepool-org/platform/structure/parser/object_parser.go:353.2,356.28 3 51 +github.com/tidepool-org/platform/structure/parser/object_parser.go:356.28,358.3 1 12 +github.com/tidepool-org/platform/structure/parser/object_parser.go:360.2,360.23 1 39 diff --git a/vendor/github.com/tidepool-org/platform/structure/structure.coverprofile b/vendor/github.com/tidepool-org/platform/structure/structure.coverprofile new file mode 100644 index 000000000..5b0230e69 --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/structure/structure.coverprofile @@ -0,0 +1,19 @@ +mode: atomic +github.com/tidepool-org/platform/structure/parser.go:88.69,89.27 1 0 +github.com/tidepool-org/platform/structure/parser.go:89.27,91.30 2 0 +github.com/tidepool-org/platform/structure/parser.go:91.30,93.4 1 0 +github.com/tidepool-org/platform/structure/parser.go:94.3,94.41 1 0 +github.com/tidepool-org/platform/structure/parser.go:95.8,97.3 1 0 +github.com/tidepool-org/platform/structure/parser.go:98.2,98.22 1 0 +github.com/tidepool-org/platform/structure/structure.go:13.25,19.2 1 1 +github.com/tidepool-org/platform/structure/structure.go:52.44,54.2 1 10 +github.com/tidepool-org/platform/structure/structure.go:56.46,58.2 1 3 +github.com/tidepool-org/platform/structure/structure.go:60.44,62.2 1 3 +github.com/tidepool-org/platform/structure/structure.go:64.66,65.23 1 9 +github.com/tidepool-org/platform/structure/structure.go:65.23,67.3 1 2 +github.com/tidepool-org/platform/structure/structure.go:69.2,71.3 1 7 +github.com/tidepool-org/platform/structure/structure.go:78.40,80.2 1 16 +github.com/tidepool-org/platform/structure/structure.go:82.44,84.2 1 5 +github.com/tidepool-org/platform/structure/structure.go:86.42,88.2 1 5 +github.com/tidepool-org/platform/structure/structure.go:90.64,94.2 1 26 +github.com/tidepool-org/platform/structure/structure.go:96.54,98.2 1 28 diff --git a/vendor/github.com/tidepool-org/platform/structure/validator/cover.out b/vendor/github.com/tidepool-org/platform/structure/validator/cover.out new file mode 100644 index 000000000..1a420465b --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/structure/validator/cover.out @@ -0,0 +1,497 @@ +mode: atomic +github.com/tidepool-org/platform/structure/validator/adapter.go:14.109,19.2 1 2 +github.com/tidepool-org/platform/structure/validator/adapter.go:21.77,23.2 1 1 +github.com/tidepool-org/platform/structure/validator/adapter.go:34.126,39.2 1 2 +github.com/tidepool-org/platform/structure/validator/adapter.go:41.80,43.2 1 1 +github.com/tidepool-org/platform/structure/validator/adapter.go:54.153,59.2 1 2 +github.com/tidepool-org/platform/structure/validator/adapter.go:61.85,63.2 1 1 +github.com/tidepool-org/platform/structure/validator/array.go:13.70,18.2 1 37 +github.com/tidepool-org/platform/structure/validator/array.go:20.42,21.20 1 6 +github.com/tidepool-org/platform/structure/validator/array.go:21.20,23.3 1 2 +github.com/tidepool-org/platform/structure/validator/array.go:24.2,24.10 1 6 +github.com/tidepool-org/platform/structure/validator/array.go:27.45,28.20 1 6 +github.com/tidepool-org/platform/structure/validator/array.go:28.20,30.3 1 4 +github.com/tidepool-org/platform/structure/validator/array.go:31.2,31.10 1 6 +github.com/tidepool-org/platform/structure/validator/array.go:34.41,35.20 1 6 +github.com/tidepool-org/platform/structure/validator/array.go:35.20,36.24 1 4 +github.com/tidepool-org/platform/structure/validator/array.go:36.24,38.4 1 2 +github.com/tidepool-org/platform/structure/validator/array.go:40.2,40.10 1 6 +github.com/tidepool-org/platform/structure/validator/array.go:43.44,44.20 1 6 +github.com/tidepool-org/platform/structure/validator/array.go:44.20,45.25 1 4 +github.com/tidepool-org/platform/structure/validator/array.go:45.25,47.4 1 2 +github.com/tidepool-org/platform/structure/validator/array.go:49.2,49.10 1 6 +github.com/tidepool-org/platform/structure/validator/array.go:52.75,53.20 1 10 +github.com/tidepool-org/platform/structure/validator/array.go:53.20,54.23 1 8 +github.com/tidepool-org/platform/structure/validator/array.go:54.23,56.4 1 4 +github.com/tidepool-org/platform/structure/validator/array.go:58.2,58.10 1 10 +github.com/tidepool-org/platform/structure/validator/bool.go:13.59,18.2 1 37 +github.com/tidepool-org/platform/structure/validator/bool.go:20.40,21.20 1 6 +github.com/tidepool-org/platform/structure/validator/bool.go:21.20,23.3 1 2 +github.com/tidepool-org/platform/structure/validator/bool.go:24.2,24.10 1 6 +github.com/tidepool-org/platform/structure/validator/bool.go:27.43,28.20 1 6 +github.com/tidepool-org/platform/structure/validator/bool.go:28.20,30.3 1 4 +github.com/tidepool-org/platform/structure/validator/bool.go:31.2,31.10 1 6 +github.com/tidepool-org/platform/structure/validator/bool.go:34.38,35.20 1 6 +github.com/tidepool-org/platform/structure/validator/bool.go:35.20,36.16 1 4 +github.com/tidepool-org/platform/structure/validator/bool.go:36.16,38.4 1 2 +github.com/tidepool-org/platform/structure/validator/bool.go:40.2,40.10 1 6 +github.com/tidepool-org/platform/structure/validator/bool.go:43.39,44.20 1 6 +github.com/tidepool-org/platform/structure/validator/bool.go:44.20,45.15 1 4 +github.com/tidepool-org/platform/structure/validator/bool.go:45.15,47.4 1 2 +github.com/tidepool-org/platform/structure/validator/bool.go:49.2,49.10 1 6 +github.com/tidepool-org/platform/structure/validator/bool.go:52.72,53.20 1 10 +github.com/tidepool-org/platform/structure/validator/bool.go:53.20,54.23 1 8 +github.com/tidepool-org/platform/structure/validator/bool.go:54.23,56.4 1 4 +github.com/tidepool-org/platform/structure/validator/bool.go:58.2,58.10 1 10 +github.com/tidepool-org/platform/structure/validator/duration.go:15.76,20.2 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:22.48,23.20 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:23.20,25.3 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:26.2,26.10 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:29.51,30.20 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:30.20,32.3 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:33.2,33.10 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:36.68,37.20 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:37.20,38.24 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:38.24,40.4 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:42.2,42.10 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:45.71,46.20 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:46.20,47.24 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:47.24,49.4 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:51.2,51.10 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:54.69,55.20 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:55.20,56.24 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:56.24,58.4 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:60.2,60.10 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:63.78,64.20 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:64.20,65.23 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:65.23,67.4 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:69.2,69.10 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:72.72,73.20 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:73.20,74.24 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:74.24,76.4 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:78.2,78.10 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:81.81,82.20 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:82.20,83.23 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:83.23,85.4 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:87.2,87.10 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:90.99,91.20 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:91.20,92.53 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:92.53,94.4 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:96.2,96.10 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:99.77,100.20 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:100.20,101.46 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:101.46,102.32 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:102.32,104.5 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:106.3,106.74 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:108.2,108.10 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:111.83,112.20 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:112.20,113.52 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:113.52,114.35 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:114.35,117.5 2 0 +github.com/tidepool-org/platform/structure/validator/duration.go:120.2,120.10 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:123.84,124.20 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:124.20,125.23 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:125.23,127.4 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:129.2,129.10 1 0 +github.com/tidepool-org/platform/structure/validator/errors.go:36.34,38.2 1 25 +github.com/tidepool-org/platform/structure/validator/errors.go:40.31,42.2 1 115 +github.com/tidepool-org/platform/structure/validator/errors.go:44.33,46.2 1 25 +github.com/tidepool-org/platform/structure/validator/errors.go:48.30,50.2 1 23 +github.com/tidepool-org/platform/structure/validator/errors.go:52.34,54.2 1 10 +github.com/tidepool-org/platform/structure/validator/errors.go:56.36,58.2 1 4 +github.com/tidepool-org/platform/structure/validator/errors.go:60.37,62.2 1 4 +github.com/tidepool-org/platform/structure/validator/errors.go:64.71,66.2 1 13 +github.com/tidepool-org/platform/structure/validator/errors.go:68.68,70.2 1 13 +github.com/tidepool-org/platform/structure/validator/errors.go:72.72,74.2 1 10 +github.com/tidepool-org/platform/structure/validator/errors.go:76.81,78.2 1 10 +github.com/tidepool-org/platform/structure/validator/errors.go:80.75,82.2 1 10 +github.com/tidepool-org/platform/structure/validator/errors.go:84.84,86.2 1 10 +github.com/tidepool-org/platform/structure/validator/errors.go:88.100,90.2 1 10 +github.com/tidepool-org/platform/structure/validator/errors.go:92.33,94.2 1 0 +github.com/tidepool-org/platform/structure/validator/errors.go:96.40,98.2 1 1 +github.com/tidepool-org/platform/structure/validator/errors.go:100.78,102.2 1 6 +github.com/tidepool-org/platform/structure/validator/errors.go:104.78,106.2 1 9 +github.com/tidepool-org/platform/structure/validator/errors.go:108.91,110.2 1 0 +github.com/tidepool-org/platform/structure/validator/errors.go:112.91,114.2 1 0 +github.com/tidepool-org/platform/structure/validator/errors.go:116.66,118.2 1 6 +github.com/tidepool-org/platform/structure/validator/errors.go:120.66,122.2 1 9 +github.com/tidepool-org/platform/structure/validator/errors.go:124.75,126.2 1 9 +github.com/tidepool-org/platform/structure/validator/errors.go:128.75,130.2 1 30 +github.com/tidepool-org/platform/structure/validator/errors.go:132.77,134.2 1 24 +github.com/tidepool-org/platform/structure/validator/errors.go:136.80,138.2 1 30 +github.com/tidepool-org/platform/structure/validator/errors.go:140.55,142.2 1 0 +github.com/tidepool-org/platform/structure/validator/errors.go:144.72,146.2 1 7 +github.com/tidepool-org/platform/structure/validator/errors.go:148.69,150.2 1 4 +github.com/tidepool-org/platform/structure/validator/errors.go:152.55,154.2 1 7 +github.com/tidepool-org/platform/structure/validator/errors.go:156.70,158.2 1 4 +github.com/tidepool-org/platform/structure/validator/errors.go:160.56,162.2 1 7 +github.com/tidepool-org/platform/structure/validator/errors.go:164.60,166.2 1 2 +github.com/tidepool-org/platform/structure/validator/errors.go:168.60,170.2 1 2 +github.com/tidepool-org/platform/structure/validator/errors.go:172.57,174.2 1 7 +github.com/tidepool-org/platform/structure/validator/errors.go:176.54,178.2 1 7 +github.com/tidepool-org/platform/structure/validator/errors.go:180.58,182.2 1 7 +github.com/tidepool-org/platform/structure/validator/errors.go:184.67,186.2 1 7 +github.com/tidepool-org/platform/structure/validator/errors.go:188.61,190.2 1 7 +github.com/tidepool-org/platform/structure/validator/errors.go:192.70,194.2 1 7 +github.com/tidepool-org/platform/structure/validator/errors.go:196.78,198.2 1 7 +github.com/tidepool-org/platform/structure/validator/errors.go:200.53,202.2 1 1 +github.com/tidepool-org/platform/structure/validator/errors.go:204.50,206.2 1 1 +github.com/tidepool-org/platform/structure/validator/errors.go:208.54,210.2 1 1 +github.com/tidepool-org/platform/structure/validator/errors.go:212.63,214.2 1 1 +github.com/tidepool-org/platform/structure/validator/errors.go:216.57,218.2 1 1 +github.com/tidepool-org/platform/structure/validator/errors.go:220.66,222.2 1 1 +github.com/tidepool-org/platform/structure/validator/errors.go:224.74,226.2 1 1 +github.com/tidepool-org/platform/structure/validator/errors.go:228.51,229.44 1 538 +github.com/tidepool-org/platform/structure/validator/errors.go:230.15,231.53 1 89 +github.com/tidepool-org/platform/structure/validator/errors.go:232.17,234.35 2 15 +github.com/tidepool-org/platform/structure/validator/errors.go:234.35,236.4 1 18 +github.com/tidepool-org/platform/structure/validator/errors.go:237.3,237.57 1 15 +github.com/tidepool-org/platform/structure/validator/errors.go:238.13,240.35 2 15 +github.com/tidepool-org/platform/structure/validator/errors.go:240.35,242.4 1 18 +github.com/tidepool-org/platform/structure/validator/errors.go:243.3,243.57 1 15 +github.com/tidepool-org/platform/structure/validator/errors.go:244.14,245.34 1 195 +github.com/tidepool-org/platform/structure/validator/errors.go:246.16,248.35 2 43 +github.com/tidepool-org/platform/structure/validator/errors.go:248.35,250.4 1 46 +github.com/tidepool-org/platform/structure/validator/errors.go:251.3,251.57 1 43 +github.com/tidepool-org/platform/structure/validator/errors.go:252.17,253.59 1 30 +github.com/tidepool-org/platform/structure/validator/errors.go:254.22,255.23 1 54 +github.com/tidepool-org/platform/structure/validator/errors.go:255.23,257.4 1 32 +github.com/tidepool-org/platform/structure/validator/errors.go:258.3,258.43 1 22 +github.com/tidepool-org/platform/structure/validator/errors.go:259.10,260.43 1 97 +github.com/tidepool-org/platform/structure/validator/float64.go:13.68,18.2 1 83 +github.com/tidepool-org/platform/structure/validator/float64.go:20.46,21.20 1 6 +github.com/tidepool-org/platform/structure/validator/float64.go:21.20,23.3 1 2 +github.com/tidepool-org/platform/structure/validator/float64.go:24.2,24.10 1 6 +github.com/tidepool-org/platform/structure/validator/float64.go:27.49,28.20 1 6 +github.com/tidepool-org/platform/structure/validator/float64.go:28.20,30.3 1 4 +github.com/tidepool-org/platform/structure/validator/float64.go:31.2,31.10 1 6 +github.com/tidepool-org/platform/structure/validator/float64.go:34.60,35.20 1 6 +github.com/tidepool-org/platform/structure/validator/float64.go:35.20,36.24 1 4 +github.com/tidepool-org/platform/structure/validator/float64.go:36.24,38.4 1 2 +github.com/tidepool-org/platform/structure/validator/float64.go:40.2,40.10 1 6 +github.com/tidepool-org/platform/structure/validator/float64.go:43.63,44.20 1 6 +github.com/tidepool-org/platform/structure/validator/float64.go:44.20,45.24 1 4 +github.com/tidepool-org/platform/structure/validator/float64.go:45.24,47.4 1 2 +github.com/tidepool-org/platform/structure/validator/float64.go:49.2,49.10 1 6 +github.com/tidepool-org/platform/structure/validator/float64.go:52.61,53.20 1 8 +github.com/tidepool-org/platform/structure/validator/float64.go:53.20,54.24 1 4 +github.com/tidepool-org/platform/structure/validator/float64.go:54.24,56.4 1 2 +github.com/tidepool-org/platform/structure/validator/float64.go:58.2,58.10 1 8 +github.com/tidepool-org/platform/structure/validator/float64.go:61.70,62.20 1 4 +github.com/tidepool-org/platform/structure/validator/float64.go:62.20,63.23 1 4 +github.com/tidepool-org/platform/structure/validator/float64.go:63.23,65.4 1 2 +github.com/tidepool-org/platform/structure/validator/float64.go:67.2,67.10 1 4 +github.com/tidepool-org/platform/structure/validator/float64.go:70.64,71.20 1 6 +github.com/tidepool-org/platform/structure/validator/float64.go:71.20,72.24 1 4 +github.com/tidepool-org/platform/structure/validator/float64.go:72.24,74.4 1 2 +github.com/tidepool-org/platform/structure/validator/float64.go:76.2,76.10 1 6 +github.com/tidepool-org/platform/structure/validator/float64.go:79.73,80.20 1 6 +github.com/tidepool-org/platform/structure/validator/float64.go:80.20,81.23 1 4 +github.com/tidepool-org/platform/structure/validator/float64.go:81.23,83.4 1 2 +github.com/tidepool-org/platform/structure/validator/float64.go:85.2,85.10 1 6 +github.com/tidepool-org/platform/structure/validator/float64.go:88.85,89.20 1 6 +github.com/tidepool-org/platform/structure/validator/float64.go:89.20,90.53 1 4 +github.com/tidepool-org/platform/structure/validator/float64.go:90.53,92.4 1 2 +github.com/tidepool-org/platform/structure/validator/float64.go:94.2,94.10 1 6 +github.com/tidepool-org/platform/structure/validator/float64.go:97.69,98.20 1 8 +github.com/tidepool-org/platform/structure/validator/float64.go:98.20,99.46 1 6 +github.com/tidepool-org/platform/structure/validator/float64.go:99.46,100.32 1 6 +github.com/tidepool-org/platform/structure/validator/float64.go:100.32,102.5 1 2 +github.com/tidepool-org/platform/structure/validator/float64.go:104.3,104.73 1 4 +github.com/tidepool-org/platform/structure/validator/float64.go:106.2,106.10 1 6 +github.com/tidepool-org/platform/structure/validator/float64.go:109.75,110.20 1 8 +github.com/tidepool-org/platform/structure/validator/float64.go:110.20,111.52 1 6 +github.com/tidepool-org/platform/structure/validator/float64.go:111.52,112.35 1 8 +github.com/tidepool-org/platform/structure/validator/float64.go:112.35,115.5 2 2 +github.com/tidepool-org/platform/structure/validator/float64.go:118.2,118.10 1 6 +github.com/tidepool-org/platform/structure/validator/float64.go:121.81,122.20 1 10 +github.com/tidepool-org/platform/structure/validator/float64.go:122.20,123.23 1 8 +github.com/tidepool-org/platform/structure/validator/float64.go:123.23,125.4 1 4 +github.com/tidepool-org/platform/structure/validator/float64.go:127.2,127.10 1 10 +github.com/tidepool-org/platform/structure/validator/int.go:13.56,18.2 1 83 +github.com/tidepool-org/platform/structure/validator/int.go:20.38,21.20 1 6 +github.com/tidepool-org/platform/structure/validator/int.go:21.20,23.3 1 2 +github.com/tidepool-org/platform/structure/validator/int.go:24.2,24.10 1 6 +github.com/tidepool-org/platform/structure/validator/int.go:27.41,28.20 1 6 +github.com/tidepool-org/platform/structure/validator/int.go:28.20,30.3 1 4 +github.com/tidepool-org/platform/structure/validator/int.go:31.2,31.10 1 6 +github.com/tidepool-org/platform/structure/validator/int.go:34.48,35.20 1 6 +github.com/tidepool-org/platform/structure/validator/int.go:35.20,36.24 1 4 +github.com/tidepool-org/platform/structure/validator/int.go:36.24,38.4 1 2 +github.com/tidepool-org/platform/structure/validator/int.go:40.2,40.10 1 6 +github.com/tidepool-org/platform/structure/validator/int.go:43.51,44.20 1 6 +github.com/tidepool-org/platform/structure/validator/int.go:44.20,45.24 1 4 +github.com/tidepool-org/platform/structure/validator/int.go:45.24,47.4 1 2 +github.com/tidepool-org/platform/structure/validator/int.go:49.2,49.10 1 6 +github.com/tidepool-org/platform/structure/validator/int.go:52.49,53.20 1 8 +github.com/tidepool-org/platform/structure/validator/int.go:53.20,54.24 1 4 +github.com/tidepool-org/platform/structure/validator/int.go:54.24,56.4 1 2 +github.com/tidepool-org/platform/structure/validator/int.go:58.2,58.10 1 8 +github.com/tidepool-org/platform/structure/validator/int.go:61.58,62.20 1 4 +github.com/tidepool-org/platform/structure/validator/int.go:62.20,63.23 1 4 +github.com/tidepool-org/platform/structure/validator/int.go:63.23,65.4 1 2 +github.com/tidepool-org/platform/structure/validator/int.go:67.2,67.10 1 4 +github.com/tidepool-org/platform/structure/validator/int.go:70.52,71.20 1 6 +github.com/tidepool-org/platform/structure/validator/int.go:71.20,72.24 1 4 +github.com/tidepool-org/platform/structure/validator/int.go:72.24,74.4 1 2 +github.com/tidepool-org/platform/structure/validator/int.go:76.2,76.10 1 6 +github.com/tidepool-org/platform/structure/validator/int.go:79.61,80.20 1 6 +github.com/tidepool-org/platform/structure/validator/int.go:80.20,81.23 1 4 +github.com/tidepool-org/platform/structure/validator/int.go:81.23,83.4 1 2 +github.com/tidepool-org/platform/structure/validator/int.go:85.2,85.10 1 6 +github.com/tidepool-org/platform/structure/validator/int.go:88.69,89.20 1 6 +github.com/tidepool-org/platform/structure/validator/int.go:89.20,90.53 1 4 +github.com/tidepool-org/platform/structure/validator/int.go:90.53,92.4 1 2 +github.com/tidepool-org/platform/structure/validator/int.go:94.2,94.10 1 6 +github.com/tidepool-org/platform/structure/validator/int.go:97.57,98.20 1 8 +github.com/tidepool-org/platform/structure/validator/int.go:98.20,99.46 1 6 +github.com/tidepool-org/platform/structure/validator/int.go:99.46,100.32 1 6 +github.com/tidepool-org/platform/structure/validator/int.go:100.32,102.5 1 2 +github.com/tidepool-org/platform/structure/validator/int.go:104.3,104.69 1 4 +github.com/tidepool-org/platform/structure/validator/int.go:106.2,106.10 1 6 +github.com/tidepool-org/platform/structure/validator/int.go:109.63,110.20 1 8 +github.com/tidepool-org/platform/structure/validator/int.go:110.20,111.52 1 6 +github.com/tidepool-org/platform/structure/validator/int.go:111.52,112.35 1 8 +github.com/tidepool-org/platform/structure/validator/int.go:112.35,115.5 2 2 +github.com/tidepool-org/platform/structure/validator/int.go:118.2,118.10 1 6 +github.com/tidepool-org/platform/structure/validator/int.go:121.69,122.20 1 10 +github.com/tidepool-org/platform/structure/validator/int.go:122.20,123.23 1 8 +github.com/tidepool-org/platform/structure/validator/int.go:123.23,125.4 1 4 +github.com/tidepool-org/platform/structure/validator/int.go:127.2,127.10 1 10 +github.com/tidepool-org/platform/structure/validator/object.go:13.81,18.2 1 37 +github.com/tidepool-org/platform/structure/validator/object.go:20.44,21.20 1 6 +github.com/tidepool-org/platform/structure/validator/object.go:21.20,23.3 1 2 +github.com/tidepool-org/platform/structure/validator/object.go:24.2,24.10 1 6 +github.com/tidepool-org/platform/structure/validator/object.go:27.47,28.20 1 6 +github.com/tidepool-org/platform/structure/validator/object.go:28.20,30.3 1 4 +github.com/tidepool-org/platform/structure/validator/object.go:31.2,31.10 1 6 +github.com/tidepool-org/platform/structure/validator/object.go:34.43,35.20 1 6 +github.com/tidepool-org/platform/structure/validator/object.go:35.20,36.24 1 4 +github.com/tidepool-org/platform/structure/validator/object.go:36.24,38.4 1 2 +github.com/tidepool-org/platform/structure/validator/object.go:40.2,40.10 1 6 +github.com/tidepool-org/platform/structure/validator/object.go:43.46,44.20 1 6 +github.com/tidepool-org/platform/structure/validator/object.go:44.20,45.25 1 4 +github.com/tidepool-org/platform/structure/validator/object.go:45.25,47.4 1 2 +github.com/tidepool-org/platform/structure/validator/object.go:49.2,49.10 1 6 +github.com/tidepool-org/platform/structure/validator/object.go:52.78,53.20 1 10 +github.com/tidepool-org/platform/structure/validator/object.go:53.20,54.23 1 8 +github.com/tidepool-org/platform/structure/validator/object.go:54.23,56.4 1 4 +github.com/tidepool-org/platform/structure/validator/object.go:58.2,58.10 1 10 +github.com/tidepool-org/platform/structure/validator/string.go:31.65,36.2 1 240 +github.com/tidepool-org/platform/structure/validator/string.go:38.44,39.20 1 8 +github.com/tidepool-org/platform/structure/validator/string.go:39.20,41.3 1 2 +github.com/tidepool-org/platform/structure/validator/string.go:42.2,42.10 1 8 +github.com/tidepool-org/platform/structure/validator/string.go:45.47,46.20 1 8 +github.com/tidepool-org/platform/structure/validator/string.go:46.20,48.3 1 6 +github.com/tidepool-org/platform/structure/validator/string.go:49.2,49.10 1 8 +github.com/tidepool-org/platform/structure/validator/string.go:52.43,53.20 1 8 +github.com/tidepool-org/platform/structure/validator/string.go:53.20,54.32 1 6 +github.com/tidepool-org/platform/structure/validator/string.go:54.32,56.4 1 4 +github.com/tidepool-org/platform/structure/validator/string.go:58.2,58.10 1 8 +github.com/tidepool-org/platform/structure/validator/string.go:61.46,62.20 1 33 +github.com/tidepool-org/platform/structure/validator/string.go:62.20,63.33 1 31 +github.com/tidepool-org/platform/structure/validator/string.go:63.33,65.4 1 7 +github.com/tidepool-org/platform/structure/validator/string.go:67.2,67.10 1 33 +github.com/tidepool-org/platform/structure/validator/string.go:70.57,71.20 1 6 +github.com/tidepool-org/platform/structure/validator/string.go:71.20,72.24 1 4 +github.com/tidepool-org/platform/structure/validator/string.go:72.24,74.4 1 2 +github.com/tidepool-org/platform/structure/validator/string.go:76.2,76.10 1 6 +github.com/tidepool-org/platform/structure/validator/string.go:79.60,80.20 1 6 +github.com/tidepool-org/platform/structure/validator/string.go:80.20,81.24 1 4 +github.com/tidepool-org/platform/structure/validator/string.go:81.24,83.4 1 2 +github.com/tidepool-org/platform/structure/validator/string.go:85.2,85.10 1 6 +github.com/tidepool-org/platform/structure/validator/string.go:88.60,89.20 1 6 +github.com/tidepool-org/platform/structure/validator/string.go:89.20,90.55 1 4 +github.com/tidepool-org/platform/structure/validator/string.go:90.55,92.4 1 2 +github.com/tidepool-org/platform/structure/validator/string.go:94.2,94.10 1 6 +github.com/tidepool-org/platform/structure/validator/string.go:97.63,98.20 1 6 +github.com/tidepool-org/platform/structure/validator/string.go:98.20,99.55 1 4 +github.com/tidepool-org/platform/structure/validator/string.go:99.55,101.4 1 2 +github.com/tidepool-org/platform/structure/validator/string.go:103.2,103.10 1 6 +github.com/tidepool-org/platform/structure/validator/string.go:106.61,107.20 1 8 +github.com/tidepool-org/platform/structure/validator/string.go:107.20,108.55 1 4 +github.com/tidepool-org/platform/structure/validator/string.go:108.55,110.4 1 2 +github.com/tidepool-org/platform/structure/validator/string.go:112.2,112.10 1 8 +github.com/tidepool-org/platform/structure/validator/string.go:115.70,116.20 1 4 +github.com/tidepool-org/platform/structure/validator/string.go:116.20,117.54 1 4 +github.com/tidepool-org/platform/structure/validator/string.go:117.54,119.4 1 2 +github.com/tidepool-org/platform/structure/validator/string.go:121.2,121.10 1 4 +github.com/tidepool-org/platform/structure/validator/string.go:124.64,125.20 1 6 +github.com/tidepool-org/platform/structure/validator/string.go:125.20,126.55 1 4 +github.com/tidepool-org/platform/structure/validator/string.go:126.55,128.4 1 2 +github.com/tidepool-org/platform/structure/validator/string.go:130.2,130.10 1 6 +github.com/tidepool-org/platform/structure/validator/string.go:133.73,134.20 1 6 +github.com/tidepool-org/platform/structure/validator/string.go:134.20,135.54 1 4 +github.com/tidepool-org/platform/structure/validator/string.go:135.54,137.4 1 2 +github.com/tidepool-org/platform/structure/validator/string.go:139.2,139.10 1 6 +github.com/tidepool-org/platform/structure/validator/string.go:142.81,143.20 1 6 +github.com/tidepool-org/platform/structure/validator/string.go:143.20,144.82 1 4 +github.com/tidepool-org/platform/structure/validator/string.go:144.82,146.4 1 2 +github.com/tidepool-org/platform/structure/validator/string.go:148.2,148.10 1 6 +github.com/tidepool-org/platform/structure/validator/string.go:151.66,152.20 1 26 +github.com/tidepool-org/platform/structure/validator/string.go:152.20,153.46 1 24 +github.com/tidepool-org/platform/structure/validator/string.go:153.46,154.32 1 22 +github.com/tidepool-org/platform/structure/validator/string.go:154.32,156.5 1 6 +github.com/tidepool-org/platform/structure/validator/string.go:158.3,158.72 1 18 +github.com/tidepool-org/platform/structure/validator/string.go:160.2,160.10 1 20 +github.com/tidepool-org/platform/structure/validator/string.go:163.72,164.20 1 26 +github.com/tidepool-org/platform/structure/validator/string.go:164.20,165.52 1 24 +github.com/tidepool-org/platform/structure/validator/string.go:165.52,166.35 1 28 +github.com/tidepool-org/platform/structure/validator/string.go:166.35,169.5 2 4 +github.com/tidepool-org/platform/structure/validator/string.go:172.2,172.10 1 22 +github.com/tidepool-org/platform/structure/validator/string.go:175.70,176.20 1 26 +github.com/tidepool-org/platform/structure/validator/string.go:176.20,177.61 1 24 +github.com/tidepool-org/platform/structure/validator/string.go:177.61,179.4 1 18 +github.com/tidepool-org/platform/structure/validator/string.go:181.2,181.10 1 26 +github.com/tidepool-org/platform/structure/validator/string.go:184.73,185.20 1 26 +github.com/tidepool-org/platform/structure/validator/string.go:185.20,186.60 1 24 +github.com/tidepool-org/platform/structure/validator/string.go:186.60,188.4 1 14 +github.com/tidepool-org/platform/structure/validator/string.go:190.2,190.10 1 26 +github.com/tidepool-org/platform/structure/validator/string.go:193.78,194.20 1 14 +github.com/tidepool-org/platform/structure/validator/string.go:194.20,195.23 1 12 +github.com/tidepool-org/platform/structure/validator/string.go:195.23,197.4 1 6 +github.com/tidepool-org/platform/structure/validator/string.go:199.2,199.10 1 14 +github.com/tidepool-org/platform/structure/validator/string.go:202.55,205.20 2 8 +github.com/tidepool-org/platform/structure/validator/string.go:205.20,206.62 1 6 +github.com/tidepool-org/platform/structure/validator/string.go:206.62,208.4 1 4 +github.com/tidepool-org/platform/structure/validator/string.go:208.9,210.4 1 2 +github.com/tidepool-org/platform/structure/validator/string.go:213.2,213.37 1 8 +github.com/tidepool-org/platform/structure/validator/string.go:216.43,218.2 1 0 +github.com/tidepool-org/platform/structure/validator/string.go:220.50,222.2 1 0 +github.com/tidepool-org/platform/structure/validator/string.go:224.49,226.2 1 0 +github.com/tidepool-org/platform/structure/validator/string.go:228.42,229.20 1 0 +github.com/tidepool-org/platform/structure/validator/string.go:229.20,231.42 2 0 +github.com/tidepool-org/platform/structure/validator/string.go:231.42,233.4 1 0 +github.com/tidepool-org/platform/structure/validator/string.go:236.2,236.10 1 0 +github.com/tidepool-org/platform/structure/validator/string_array.go:16.77,21.2 1 155 +github.com/tidepool-org/platform/structure/validator/string_array.go:23.54,24.20 1 8 +github.com/tidepool-org/platform/structure/validator/string_array.go:24.20,26.3 1 2 +github.com/tidepool-org/platform/structure/validator/string_array.go:27.2,27.10 1 8 +github.com/tidepool-org/platform/structure/validator/string_array.go:30.57,31.20 1 8 +github.com/tidepool-org/platform/structure/validator/string_array.go:31.20,33.3 1 6 +github.com/tidepool-org/platform/structure/validator/string_array.go:34.2,34.10 1 8 +github.com/tidepool-org/platform/structure/validator/string_array.go:37.53,38.20 1 8 +github.com/tidepool-org/platform/structure/validator/string_array.go:38.20,39.24 1 6 +github.com/tidepool-org/platform/structure/validator/string_array.go:39.24,41.4 1 4 +github.com/tidepool-org/platform/structure/validator/string_array.go:43.2,43.10 1 8 +github.com/tidepool-org/platform/structure/validator/string_array.go:46.56,47.20 1 8 +github.com/tidepool-org/platform/structure/validator/string_array.go:47.20,48.25 1 6 +github.com/tidepool-org/platform/structure/validator/string_array.go:48.25,50.4 1 2 +github.com/tidepool-org/platform/structure/validator/string_array.go:52.2,52.10 1 8 +github.com/tidepool-org/platform/structure/validator/string_array.go:55.70,56.20 1 6 +github.com/tidepool-org/platform/structure/validator/string_array.go:56.20,57.47 1 4 +github.com/tidepool-org/platform/structure/validator/string_array.go:57.47,59.4 1 2 +github.com/tidepool-org/platform/structure/validator/string_array.go:61.2,61.10 1 6 +github.com/tidepool-org/platform/structure/validator/string_array.go:64.73,65.20 1 6 +github.com/tidepool-org/platform/structure/validator/string_array.go:65.20,66.47 1 4 +github.com/tidepool-org/platform/structure/validator/string_array.go:66.47,68.4 1 2 +github.com/tidepool-org/platform/structure/validator/string_array.go:70.2,70.10 1 6 +github.com/tidepool-org/platform/structure/validator/string_array.go:73.71,74.20 1 8 +github.com/tidepool-org/platform/structure/validator/string_array.go:74.20,75.47 1 4 +github.com/tidepool-org/platform/structure/validator/string_array.go:75.47,77.4 1 2 +github.com/tidepool-org/platform/structure/validator/string_array.go:79.2,79.10 1 8 +github.com/tidepool-org/platform/structure/validator/string_array.go:82.80,83.20 1 4 +github.com/tidepool-org/platform/structure/validator/string_array.go:83.20,84.46 1 4 +github.com/tidepool-org/platform/structure/validator/string_array.go:84.46,86.4 1 2 +github.com/tidepool-org/platform/structure/validator/string_array.go:88.2,88.10 1 4 +github.com/tidepool-org/platform/structure/validator/string_array.go:91.74,92.20 1 6 +github.com/tidepool-org/platform/structure/validator/string_array.go:92.20,93.47 1 4 +github.com/tidepool-org/platform/structure/validator/string_array.go:93.47,95.4 1 2 +github.com/tidepool-org/platform/structure/validator/string_array.go:97.2,97.10 1 6 +github.com/tidepool-org/platform/structure/validator/string_array.go:100.83,101.20 1 6 +github.com/tidepool-org/platform/structure/validator/string_array.go:101.20,102.46 1 4 +github.com/tidepool-org/platform/structure/validator/string_array.go:102.46,104.4 1 2 +github.com/tidepool-org/platform/structure/validator/string_array.go:106.2,106.10 1 6 +github.com/tidepool-org/platform/structure/validator/string_array.go:109.91,110.20 1 6 +github.com/tidepool-org/platform/structure/validator/string_array.go:110.20,111.74 1 4 +github.com/tidepool-org/platform/structure/validator/string_array.go:111.74,113.4 1 2 +github.com/tidepool-org/platform/structure/validator/string_array.go:115.2,115.10 1 6 +github.com/tidepool-org/platform/structure/validator/string_array.go:118.90,119.20 1 47 +github.com/tidepool-org/platform/structure/validator/string_array.go:119.20,120.22 1 34 +github.com/tidepool-org/platform/structure/validator/string_array.go:120.22,122.39 2 34 +github.com/tidepool-org/platform/structure/validator/string_array.go:122.39,124.5 1 97 +github.com/tidepool-org/platform/structure/validator/string_array.go:127.2,127.10 1 47 +github.com/tidepool-org/platform/structure/validator/string_array.go:130.60,131.55 1 6 +github.com/tidepool-org/platform/structure/validator/string_array.go:131.55,131.85 1 10 +github.com/tidepool-org/platform/structure/validator/string_array.go:134.80,135.55 1 8 +github.com/tidepool-org/platform/structure/validator/string_array.go:135.55,135.98 1 18 +github.com/tidepool-org/platform/structure/validator/string_array.go:138.86,139.55 1 8 +github.com/tidepool-org/platform/structure/validator/string_array.go:139.55,139.104 1 18 +github.com/tidepool-org/platform/structure/validator/string_array.go:142.84,143.55 1 8 +github.com/tidepool-org/platform/structure/validator/string_array.go:143.55,143.94 1 18 +github.com/tidepool-org/platform/structure/validator/string_array.go:146.87,147.55 1 8 +github.com/tidepool-org/platform/structure/validator/string_array.go:147.55,147.97 1 18 +github.com/tidepool-org/platform/structure/validator/string_array.go:150.105,151.20 1 9 +github.com/tidepool-org/platform/structure/validator/string_array.go:151.20,152.27 1 6 +github.com/tidepool-org/platform/structure/validator/string_array.go:152.27,154.39 2 6 +github.com/tidepool-org/platform/structure/validator/string_array.go:154.39,156.5 1 15 +github.com/tidepool-org/platform/structure/validator/string_array.go:159.2,159.10 1 9 +github.com/tidepool-org/platform/structure/validator/string_array.go:162.58,163.20 1 8 +github.com/tidepool-org/platform/structure/validator/string_array.go:163.20,165.38 2 6 +github.com/tidepool-org/platform/structure/validator/string_array.go:165.38,166.40 1 24 +github.com/tidepool-org/platform/structure/validator/string_array.go:166.40,168.5 1 6 +github.com/tidepool-org/platform/structure/validator/string_array.go:168.10,170.5 1 18 +github.com/tidepool-org/platform/structure/validator/string_array.go:173.2,173.10 1 8 +github.com/tidepool-org/platform/structure/validator/string_array.go:176.93,177.20 1 14 +github.com/tidepool-org/platform/structure/validator/string_array.go:177.20,178.23 1 12 +github.com/tidepool-org/platform/structure/validator/string_array.go:178.23,180.4 1 6 +github.com/tidepool-org/platform/structure/validator/string_array.go:182.2,182.10 1 14 +github.com/tidepool-org/platform/structure/validator/time.go:15.64,20.2 1 93 +github.com/tidepool-org/platform/structure/validator/time.go:22.40,23.20 1 6 +github.com/tidepool-org/platform/structure/validator/time.go:23.20,25.3 1 2 +github.com/tidepool-org/platform/structure/validator/time.go:26.2,26.10 1 6 +github.com/tidepool-org/platform/structure/validator/time.go:29.43,30.20 1 6 +github.com/tidepool-org/platform/structure/validator/time.go:30.20,32.3 1 4 +github.com/tidepool-org/platform/structure/validator/time.go:33.2,33.10 1 6 +github.com/tidepool-org/platform/structure/validator/time.go:36.38,37.20 1 8 +github.com/tidepool-org/platform/structure/validator/time.go:37.20,38.27 1 6 +github.com/tidepool-org/platform/structure/validator/time.go:38.27,40.4 1 4 +github.com/tidepool-org/platform/structure/validator/time.go:42.2,42.10 1 8 +github.com/tidepool-org/platform/structure/validator/time.go:45.41,46.20 1 8 +github.com/tidepool-org/platform/structure/validator/time.go:46.20,47.26 1 6 +github.com/tidepool-org/platform/structure/validator/time.go:47.26,49.4 1 2 +github.com/tidepool-org/platform/structure/validator/time.go:51.2,51.10 1 8 +github.com/tidepool-org/platform/structure/validator/time.go:54.54,55.20 1 6 +github.com/tidepool-org/platform/structure/validator/time.go:55.20,56.31 1 4 +github.com/tidepool-org/platform/structure/validator/time.go:56.31,58.4 1 2 +github.com/tidepool-org/platform/structure/validator/time.go:60.2,60.10 1 6 +github.com/tidepool-org/platform/structure/validator/time.go:63.65,64.20 1 10 +github.com/tidepool-org/platform/structure/validator/time.go:64.20,65.52 1 8 +github.com/tidepool-org/platform/structure/validator/time.go:65.52,67.4 1 4 +github.com/tidepool-org/platform/structure/validator/time.go:69.2,69.10 1 10 +github.com/tidepool-org/platform/structure/validator/time.go:72.55,73.20 1 6 +github.com/tidepool-org/platform/structure/validator/time.go:73.20,74.30 1 4 +github.com/tidepool-org/platform/structure/validator/time.go:74.30,76.4 1 2 +github.com/tidepool-org/platform/structure/validator/time.go:78.2,78.10 1 6 +github.com/tidepool-org/platform/structure/validator/time.go:81.66,82.20 1 10 +github.com/tidepool-org/platform/structure/validator/time.go:82.20,83.50 1 8 +github.com/tidepool-org/platform/structure/validator/time.go:83.50,85.4 1 4 +github.com/tidepool-org/platform/structure/validator/time.go:87.2,87.10 1 10 +github.com/tidepool-org/platform/structure/validator/time.go:90.72,91.20 1 18 +github.com/tidepool-org/platform/structure/validator/time.go:91.20,92.23 1 16 +github.com/tidepool-org/platform/structure/validator/time.go:92.23,94.4 1 8 +github.com/tidepool-org/platform/structure/validator/time.go:96.2,96.10 1 18 +github.com/tidepool-org/platform/structure/validator/validator.go:14.23,16.2 1 1 +github.com/tidepool-org/platform/structure/validator/validator.go:18.56,22.2 1 78 +github.com/tidepool-org/platform/structure/validator/validator.go:24.47,26.2 1 4 +github.com/tidepool-org/platform/structure/validator/validator.go:28.38,30.2 1 2 +github.com/tidepool-org/platform/structure/validator/validator.go:32.47,34.2 1 2 +github.com/tidepool-org/platform/structure/validator/validator.go:36.36,38.2 1 2 +github.com/tidepool-org/platform/structure/validator/validator.go:40.40,42.2 1 2 +github.com/tidepool-org/platform/structure/validator/validator.go:44.37,46.2 1 2 +github.com/tidepool-org/platform/structure/validator/validator.go:48.35,50.2 1 3 +github.com/tidepool-org/platform/structure/validator/validator.go:52.44,54.2 1 16 +github.com/tidepool-org/platform/structure/validator/validator.go:56.71,59.2 2 1 +github.com/tidepool-org/platform/structure/validator/validator.go:61.72,63.2 1 2 +github.com/tidepool-org/platform/structure/validator/validator.go:65.81,67.2 1 2 +github.com/tidepool-org/platform/structure/validator/validator.go:69.69,71.2 1 2 +github.com/tidepool-org/platform/structure/validator/validator.go:73.78,75.2 1 99 +github.com/tidepool-org/platform/structure/validator/validator.go:77.90,79.2 1 2 +github.com/tidepool-org/platform/structure/validator/validator.go:81.77,83.2 1 2 +github.com/tidepool-org/platform/structure/validator/validator.go:85.89,87.2 1 0 +github.com/tidepool-org/platform/structure/validator/validator.go:89.94,91.2 1 2 +github.com/tidepool-org/platform/structure/validator/validator.go:93.83,95.2 1 2 +github.com/tidepool-org/platform/structure/validator/validator.go:97.77,101.2 1 2 +github.com/tidepool-org/platform/structure/validator/validator.go:103.77,107.2 1 5 +github.com/tidepool-org/platform/structure/validator/validator.go:109.68,113.2 1 4 +github.com/tidepool-org/platform/structure/validator/validator.go:115.73,119.2 1 17 diff --git a/vendor/github.com/tidepool-org/platform/structure/validator/validator.coverprofile b/vendor/github.com/tidepool-org/platform/structure/validator/validator.coverprofile new file mode 100644 index 000000000..1a420465b --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/structure/validator/validator.coverprofile @@ -0,0 +1,497 @@ +mode: atomic +github.com/tidepool-org/platform/structure/validator/adapter.go:14.109,19.2 1 2 +github.com/tidepool-org/platform/structure/validator/adapter.go:21.77,23.2 1 1 +github.com/tidepool-org/platform/structure/validator/adapter.go:34.126,39.2 1 2 +github.com/tidepool-org/platform/structure/validator/adapter.go:41.80,43.2 1 1 +github.com/tidepool-org/platform/structure/validator/adapter.go:54.153,59.2 1 2 +github.com/tidepool-org/platform/structure/validator/adapter.go:61.85,63.2 1 1 +github.com/tidepool-org/platform/structure/validator/array.go:13.70,18.2 1 37 +github.com/tidepool-org/platform/structure/validator/array.go:20.42,21.20 1 6 +github.com/tidepool-org/platform/structure/validator/array.go:21.20,23.3 1 2 +github.com/tidepool-org/platform/structure/validator/array.go:24.2,24.10 1 6 +github.com/tidepool-org/platform/structure/validator/array.go:27.45,28.20 1 6 +github.com/tidepool-org/platform/structure/validator/array.go:28.20,30.3 1 4 +github.com/tidepool-org/platform/structure/validator/array.go:31.2,31.10 1 6 +github.com/tidepool-org/platform/structure/validator/array.go:34.41,35.20 1 6 +github.com/tidepool-org/platform/structure/validator/array.go:35.20,36.24 1 4 +github.com/tidepool-org/platform/structure/validator/array.go:36.24,38.4 1 2 +github.com/tidepool-org/platform/structure/validator/array.go:40.2,40.10 1 6 +github.com/tidepool-org/platform/structure/validator/array.go:43.44,44.20 1 6 +github.com/tidepool-org/platform/structure/validator/array.go:44.20,45.25 1 4 +github.com/tidepool-org/platform/structure/validator/array.go:45.25,47.4 1 2 +github.com/tidepool-org/platform/structure/validator/array.go:49.2,49.10 1 6 +github.com/tidepool-org/platform/structure/validator/array.go:52.75,53.20 1 10 +github.com/tidepool-org/platform/structure/validator/array.go:53.20,54.23 1 8 +github.com/tidepool-org/platform/structure/validator/array.go:54.23,56.4 1 4 +github.com/tidepool-org/platform/structure/validator/array.go:58.2,58.10 1 10 +github.com/tidepool-org/platform/structure/validator/bool.go:13.59,18.2 1 37 +github.com/tidepool-org/platform/structure/validator/bool.go:20.40,21.20 1 6 +github.com/tidepool-org/platform/structure/validator/bool.go:21.20,23.3 1 2 +github.com/tidepool-org/platform/structure/validator/bool.go:24.2,24.10 1 6 +github.com/tidepool-org/platform/structure/validator/bool.go:27.43,28.20 1 6 +github.com/tidepool-org/platform/structure/validator/bool.go:28.20,30.3 1 4 +github.com/tidepool-org/platform/structure/validator/bool.go:31.2,31.10 1 6 +github.com/tidepool-org/platform/structure/validator/bool.go:34.38,35.20 1 6 +github.com/tidepool-org/platform/structure/validator/bool.go:35.20,36.16 1 4 +github.com/tidepool-org/platform/structure/validator/bool.go:36.16,38.4 1 2 +github.com/tidepool-org/platform/structure/validator/bool.go:40.2,40.10 1 6 +github.com/tidepool-org/platform/structure/validator/bool.go:43.39,44.20 1 6 +github.com/tidepool-org/platform/structure/validator/bool.go:44.20,45.15 1 4 +github.com/tidepool-org/platform/structure/validator/bool.go:45.15,47.4 1 2 +github.com/tidepool-org/platform/structure/validator/bool.go:49.2,49.10 1 6 +github.com/tidepool-org/platform/structure/validator/bool.go:52.72,53.20 1 10 +github.com/tidepool-org/platform/structure/validator/bool.go:53.20,54.23 1 8 +github.com/tidepool-org/platform/structure/validator/bool.go:54.23,56.4 1 4 +github.com/tidepool-org/platform/structure/validator/bool.go:58.2,58.10 1 10 +github.com/tidepool-org/platform/structure/validator/duration.go:15.76,20.2 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:22.48,23.20 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:23.20,25.3 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:26.2,26.10 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:29.51,30.20 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:30.20,32.3 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:33.2,33.10 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:36.68,37.20 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:37.20,38.24 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:38.24,40.4 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:42.2,42.10 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:45.71,46.20 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:46.20,47.24 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:47.24,49.4 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:51.2,51.10 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:54.69,55.20 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:55.20,56.24 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:56.24,58.4 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:60.2,60.10 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:63.78,64.20 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:64.20,65.23 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:65.23,67.4 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:69.2,69.10 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:72.72,73.20 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:73.20,74.24 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:74.24,76.4 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:78.2,78.10 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:81.81,82.20 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:82.20,83.23 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:83.23,85.4 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:87.2,87.10 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:90.99,91.20 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:91.20,92.53 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:92.53,94.4 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:96.2,96.10 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:99.77,100.20 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:100.20,101.46 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:101.46,102.32 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:102.32,104.5 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:106.3,106.74 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:108.2,108.10 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:111.83,112.20 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:112.20,113.52 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:113.52,114.35 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:114.35,117.5 2 0 +github.com/tidepool-org/platform/structure/validator/duration.go:120.2,120.10 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:123.84,124.20 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:124.20,125.23 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:125.23,127.4 1 0 +github.com/tidepool-org/platform/structure/validator/duration.go:129.2,129.10 1 0 +github.com/tidepool-org/platform/structure/validator/errors.go:36.34,38.2 1 25 +github.com/tidepool-org/platform/structure/validator/errors.go:40.31,42.2 1 115 +github.com/tidepool-org/platform/structure/validator/errors.go:44.33,46.2 1 25 +github.com/tidepool-org/platform/structure/validator/errors.go:48.30,50.2 1 23 +github.com/tidepool-org/platform/structure/validator/errors.go:52.34,54.2 1 10 +github.com/tidepool-org/platform/structure/validator/errors.go:56.36,58.2 1 4 +github.com/tidepool-org/platform/structure/validator/errors.go:60.37,62.2 1 4 +github.com/tidepool-org/platform/structure/validator/errors.go:64.71,66.2 1 13 +github.com/tidepool-org/platform/structure/validator/errors.go:68.68,70.2 1 13 +github.com/tidepool-org/platform/structure/validator/errors.go:72.72,74.2 1 10 +github.com/tidepool-org/platform/structure/validator/errors.go:76.81,78.2 1 10 +github.com/tidepool-org/platform/structure/validator/errors.go:80.75,82.2 1 10 +github.com/tidepool-org/platform/structure/validator/errors.go:84.84,86.2 1 10 +github.com/tidepool-org/platform/structure/validator/errors.go:88.100,90.2 1 10 +github.com/tidepool-org/platform/structure/validator/errors.go:92.33,94.2 1 0 +github.com/tidepool-org/platform/structure/validator/errors.go:96.40,98.2 1 1 +github.com/tidepool-org/platform/structure/validator/errors.go:100.78,102.2 1 6 +github.com/tidepool-org/platform/structure/validator/errors.go:104.78,106.2 1 9 +github.com/tidepool-org/platform/structure/validator/errors.go:108.91,110.2 1 0 +github.com/tidepool-org/platform/structure/validator/errors.go:112.91,114.2 1 0 +github.com/tidepool-org/platform/structure/validator/errors.go:116.66,118.2 1 6 +github.com/tidepool-org/platform/structure/validator/errors.go:120.66,122.2 1 9 +github.com/tidepool-org/platform/structure/validator/errors.go:124.75,126.2 1 9 +github.com/tidepool-org/platform/structure/validator/errors.go:128.75,130.2 1 30 +github.com/tidepool-org/platform/structure/validator/errors.go:132.77,134.2 1 24 +github.com/tidepool-org/platform/structure/validator/errors.go:136.80,138.2 1 30 +github.com/tidepool-org/platform/structure/validator/errors.go:140.55,142.2 1 0 +github.com/tidepool-org/platform/structure/validator/errors.go:144.72,146.2 1 7 +github.com/tidepool-org/platform/structure/validator/errors.go:148.69,150.2 1 4 +github.com/tidepool-org/platform/structure/validator/errors.go:152.55,154.2 1 7 +github.com/tidepool-org/platform/structure/validator/errors.go:156.70,158.2 1 4 +github.com/tidepool-org/platform/structure/validator/errors.go:160.56,162.2 1 7 +github.com/tidepool-org/platform/structure/validator/errors.go:164.60,166.2 1 2 +github.com/tidepool-org/platform/structure/validator/errors.go:168.60,170.2 1 2 +github.com/tidepool-org/platform/structure/validator/errors.go:172.57,174.2 1 7 +github.com/tidepool-org/platform/structure/validator/errors.go:176.54,178.2 1 7 +github.com/tidepool-org/platform/structure/validator/errors.go:180.58,182.2 1 7 +github.com/tidepool-org/platform/structure/validator/errors.go:184.67,186.2 1 7 +github.com/tidepool-org/platform/structure/validator/errors.go:188.61,190.2 1 7 +github.com/tidepool-org/platform/structure/validator/errors.go:192.70,194.2 1 7 +github.com/tidepool-org/platform/structure/validator/errors.go:196.78,198.2 1 7 +github.com/tidepool-org/platform/structure/validator/errors.go:200.53,202.2 1 1 +github.com/tidepool-org/platform/structure/validator/errors.go:204.50,206.2 1 1 +github.com/tidepool-org/platform/structure/validator/errors.go:208.54,210.2 1 1 +github.com/tidepool-org/platform/structure/validator/errors.go:212.63,214.2 1 1 +github.com/tidepool-org/platform/structure/validator/errors.go:216.57,218.2 1 1 +github.com/tidepool-org/platform/structure/validator/errors.go:220.66,222.2 1 1 +github.com/tidepool-org/platform/structure/validator/errors.go:224.74,226.2 1 1 +github.com/tidepool-org/platform/structure/validator/errors.go:228.51,229.44 1 538 +github.com/tidepool-org/platform/structure/validator/errors.go:230.15,231.53 1 89 +github.com/tidepool-org/platform/structure/validator/errors.go:232.17,234.35 2 15 +github.com/tidepool-org/platform/structure/validator/errors.go:234.35,236.4 1 18 +github.com/tidepool-org/platform/structure/validator/errors.go:237.3,237.57 1 15 +github.com/tidepool-org/platform/structure/validator/errors.go:238.13,240.35 2 15 +github.com/tidepool-org/platform/structure/validator/errors.go:240.35,242.4 1 18 +github.com/tidepool-org/platform/structure/validator/errors.go:243.3,243.57 1 15 +github.com/tidepool-org/platform/structure/validator/errors.go:244.14,245.34 1 195 +github.com/tidepool-org/platform/structure/validator/errors.go:246.16,248.35 2 43 +github.com/tidepool-org/platform/structure/validator/errors.go:248.35,250.4 1 46 +github.com/tidepool-org/platform/structure/validator/errors.go:251.3,251.57 1 43 +github.com/tidepool-org/platform/structure/validator/errors.go:252.17,253.59 1 30 +github.com/tidepool-org/platform/structure/validator/errors.go:254.22,255.23 1 54 +github.com/tidepool-org/platform/structure/validator/errors.go:255.23,257.4 1 32 +github.com/tidepool-org/platform/structure/validator/errors.go:258.3,258.43 1 22 +github.com/tidepool-org/platform/structure/validator/errors.go:259.10,260.43 1 97 +github.com/tidepool-org/platform/structure/validator/float64.go:13.68,18.2 1 83 +github.com/tidepool-org/platform/structure/validator/float64.go:20.46,21.20 1 6 +github.com/tidepool-org/platform/structure/validator/float64.go:21.20,23.3 1 2 +github.com/tidepool-org/platform/structure/validator/float64.go:24.2,24.10 1 6 +github.com/tidepool-org/platform/structure/validator/float64.go:27.49,28.20 1 6 +github.com/tidepool-org/platform/structure/validator/float64.go:28.20,30.3 1 4 +github.com/tidepool-org/platform/structure/validator/float64.go:31.2,31.10 1 6 +github.com/tidepool-org/platform/structure/validator/float64.go:34.60,35.20 1 6 +github.com/tidepool-org/platform/structure/validator/float64.go:35.20,36.24 1 4 +github.com/tidepool-org/platform/structure/validator/float64.go:36.24,38.4 1 2 +github.com/tidepool-org/platform/structure/validator/float64.go:40.2,40.10 1 6 +github.com/tidepool-org/platform/structure/validator/float64.go:43.63,44.20 1 6 +github.com/tidepool-org/platform/structure/validator/float64.go:44.20,45.24 1 4 +github.com/tidepool-org/platform/structure/validator/float64.go:45.24,47.4 1 2 +github.com/tidepool-org/platform/structure/validator/float64.go:49.2,49.10 1 6 +github.com/tidepool-org/platform/structure/validator/float64.go:52.61,53.20 1 8 +github.com/tidepool-org/platform/structure/validator/float64.go:53.20,54.24 1 4 +github.com/tidepool-org/platform/structure/validator/float64.go:54.24,56.4 1 2 +github.com/tidepool-org/platform/structure/validator/float64.go:58.2,58.10 1 8 +github.com/tidepool-org/platform/structure/validator/float64.go:61.70,62.20 1 4 +github.com/tidepool-org/platform/structure/validator/float64.go:62.20,63.23 1 4 +github.com/tidepool-org/platform/structure/validator/float64.go:63.23,65.4 1 2 +github.com/tidepool-org/platform/structure/validator/float64.go:67.2,67.10 1 4 +github.com/tidepool-org/platform/structure/validator/float64.go:70.64,71.20 1 6 +github.com/tidepool-org/platform/structure/validator/float64.go:71.20,72.24 1 4 +github.com/tidepool-org/platform/structure/validator/float64.go:72.24,74.4 1 2 +github.com/tidepool-org/platform/structure/validator/float64.go:76.2,76.10 1 6 +github.com/tidepool-org/platform/structure/validator/float64.go:79.73,80.20 1 6 +github.com/tidepool-org/platform/structure/validator/float64.go:80.20,81.23 1 4 +github.com/tidepool-org/platform/structure/validator/float64.go:81.23,83.4 1 2 +github.com/tidepool-org/platform/structure/validator/float64.go:85.2,85.10 1 6 +github.com/tidepool-org/platform/structure/validator/float64.go:88.85,89.20 1 6 +github.com/tidepool-org/platform/structure/validator/float64.go:89.20,90.53 1 4 +github.com/tidepool-org/platform/structure/validator/float64.go:90.53,92.4 1 2 +github.com/tidepool-org/platform/structure/validator/float64.go:94.2,94.10 1 6 +github.com/tidepool-org/platform/structure/validator/float64.go:97.69,98.20 1 8 +github.com/tidepool-org/platform/structure/validator/float64.go:98.20,99.46 1 6 +github.com/tidepool-org/platform/structure/validator/float64.go:99.46,100.32 1 6 +github.com/tidepool-org/platform/structure/validator/float64.go:100.32,102.5 1 2 +github.com/tidepool-org/platform/structure/validator/float64.go:104.3,104.73 1 4 +github.com/tidepool-org/platform/structure/validator/float64.go:106.2,106.10 1 6 +github.com/tidepool-org/platform/structure/validator/float64.go:109.75,110.20 1 8 +github.com/tidepool-org/platform/structure/validator/float64.go:110.20,111.52 1 6 +github.com/tidepool-org/platform/structure/validator/float64.go:111.52,112.35 1 8 +github.com/tidepool-org/platform/structure/validator/float64.go:112.35,115.5 2 2 +github.com/tidepool-org/platform/structure/validator/float64.go:118.2,118.10 1 6 +github.com/tidepool-org/platform/structure/validator/float64.go:121.81,122.20 1 10 +github.com/tidepool-org/platform/structure/validator/float64.go:122.20,123.23 1 8 +github.com/tidepool-org/platform/structure/validator/float64.go:123.23,125.4 1 4 +github.com/tidepool-org/platform/structure/validator/float64.go:127.2,127.10 1 10 +github.com/tidepool-org/platform/structure/validator/int.go:13.56,18.2 1 83 +github.com/tidepool-org/platform/structure/validator/int.go:20.38,21.20 1 6 +github.com/tidepool-org/platform/structure/validator/int.go:21.20,23.3 1 2 +github.com/tidepool-org/platform/structure/validator/int.go:24.2,24.10 1 6 +github.com/tidepool-org/platform/structure/validator/int.go:27.41,28.20 1 6 +github.com/tidepool-org/platform/structure/validator/int.go:28.20,30.3 1 4 +github.com/tidepool-org/platform/structure/validator/int.go:31.2,31.10 1 6 +github.com/tidepool-org/platform/structure/validator/int.go:34.48,35.20 1 6 +github.com/tidepool-org/platform/structure/validator/int.go:35.20,36.24 1 4 +github.com/tidepool-org/platform/structure/validator/int.go:36.24,38.4 1 2 +github.com/tidepool-org/platform/structure/validator/int.go:40.2,40.10 1 6 +github.com/tidepool-org/platform/structure/validator/int.go:43.51,44.20 1 6 +github.com/tidepool-org/platform/structure/validator/int.go:44.20,45.24 1 4 +github.com/tidepool-org/platform/structure/validator/int.go:45.24,47.4 1 2 +github.com/tidepool-org/platform/structure/validator/int.go:49.2,49.10 1 6 +github.com/tidepool-org/platform/structure/validator/int.go:52.49,53.20 1 8 +github.com/tidepool-org/platform/structure/validator/int.go:53.20,54.24 1 4 +github.com/tidepool-org/platform/structure/validator/int.go:54.24,56.4 1 2 +github.com/tidepool-org/platform/structure/validator/int.go:58.2,58.10 1 8 +github.com/tidepool-org/platform/structure/validator/int.go:61.58,62.20 1 4 +github.com/tidepool-org/platform/structure/validator/int.go:62.20,63.23 1 4 +github.com/tidepool-org/platform/structure/validator/int.go:63.23,65.4 1 2 +github.com/tidepool-org/platform/structure/validator/int.go:67.2,67.10 1 4 +github.com/tidepool-org/platform/structure/validator/int.go:70.52,71.20 1 6 +github.com/tidepool-org/platform/structure/validator/int.go:71.20,72.24 1 4 +github.com/tidepool-org/platform/structure/validator/int.go:72.24,74.4 1 2 +github.com/tidepool-org/platform/structure/validator/int.go:76.2,76.10 1 6 +github.com/tidepool-org/platform/structure/validator/int.go:79.61,80.20 1 6 +github.com/tidepool-org/platform/structure/validator/int.go:80.20,81.23 1 4 +github.com/tidepool-org/platform/structure/validator/int.go:81.23,83.4 1 2 +github.com/tidepool-org/platform/structure/validator/int.go:85.2,85.10 1 6 +github.com/tidepool-org/platform/structure/validator/int.go:88.69,89.20 1 6 +github.com/tidepool-org/platform/structure/validator/int.go:89.20,90.53 1 4 +github.com/tidepool-org/platform/structure/validator/int.go:90.53,92.4 1 2 +github.com/tidepool-org/platform/structure/validator/int.go:94.2,94.10 1 6 +github.com/tidepool-org/platform/structure/validator/int.go:97.57,98.20 1 8 +github.com/tidepool-org/platform/structure/validator/int.go:98.20,99.46 1 6 +github.com/tidepool-org/platform/structure/validator/int.go:99.46,100.32 1 6 +github.com/tidepool-org/platform/structure/validator/int.go:100.32,102.5 1 2 +github.com/tidepool-org/platform/structure/validator/int.go:104.3,104.69 1 4 +github.com/tidepool-org/platform/structure/validator/int.go:106.2,106.10 1 6 +github.com/tidepool-org/platform/structure/validator/int.go:109.63,110.20 1 8 +github.com/tidepool-org/platform/structure/validator/int.go:110.20,111.52 1 6 +github.com/tidepool-org/platform/structure/validator/int.go:111.52,112.35 1 8 +github.com/tidepool-org/platform/structure/validator/int.go:112.35,115.5 2 2 +github.com/tidepool-org/platform/structure/validator/int.go:118.2,118.10 1 6 +github.com/tidepool-org/platform/structure/validator/int.go:121.69,122.20 1 10 +github.com/tidepool-org/platform/structure/validator/int.go:122.20,123.23 1 8 +github.com/tidepool-org/platform/structure/validator/int.go:123.23,125.4 1 4 +github.com/tidepool-org/platform/structure/validator/int.go:127.2,127.10 1 10 +github.com/tidepool-org/platform/structure/validator/object.go:13.81,18.2 1 37 +github.com/tidepool-org/platform/structure/validator/object.go:20.44,21.20 1 6 +github.com/tidepool-org/platform/structure/validator/object.go:21.20,23.3 1 2 +github.com/tidepool-org/platform/structure/validator/object.go:24.2,24.10 1 6 +github.com/tidepool-org/platform/structure/validator/object.go:27.47,28.20 1 6 +github.com/tidepool-org/platform/structure/validator/object.go:28.20,30.3 1 4 +github.com/tidepool-org/platform/structure/validator/object.go:31.2,31.10 1 6 +github.com/tidepool-org/platform/structure/validator/object.go:34.43,35.20 1 6 +github.com/tidepool-org/platform/structure/validator/object.go:35.20,36.24 1 4 +github.com/tidepool-org/platform/structure/validator/object.go:36.24,38.4 1 2 +github.com/tidepool-org/platform/structure/validator/object.go:40.2,40.10 1 6 +github.com/tidepool-org/platform/structure/validator/object.go:43.46,44.20 1 6 +github.com/tidepool-org/platform/structure/validator/object.go:44.20,45.25 1 4 +github.com/tidepool-org/platform/structure/validator/object.go:45.25,47.4 1 2 +github.com/tidepool-org/platform/structure/validator/object.go:49.2,49.10 1 6 +github.com/tidepool-org/platform/structure/validator/object.go:52.78,53.20 1 10 +github.com/tidepool-org/platform/structure/validator/object.go:53.20,54.23 1 8 +github.com/tidepool-org/platform/structure/validator/object.go:54.23,56.4 1 4 +github.com/tidepool-org/platform/structure/validator/object.go:58.2,58.10 1 10 +github.com/tidepool-org/platform/structure/validator/string.go:31.65,36.2 1 240 +github.com/tidepool-org/platform/structure/validator/string.go:38.44,39.20 1 8 +github.com/tidepool-org/platform/structure/validator/string.go:39.20,41.3 1 2 +github.com/tidepool-org/platform/structure/validator/string.go:42.2,42.10 1 8 +github.com/tidepool-org/platform/structure/validator/string.go:45.47,46.20 1 8 +github.com/tidepool-org/platform/structure/validator/string.go:46.20,48.3 1 6 +github.com/tidepool-org/platform/structure/validator/string.go:49.2,49.10 1 8 +github.com/tidepool-org/platform/structure/validator/string.go:52.43,53.20 1 8 +github.com/tidepool-org/platform/structure/validator/string.go:53.20,54.32 1 6 +github.com/tidepool-org/platform/structure/validator/string.go:54.32,56.4 1 4 +github.com/tidepool-org/platform/structure/validator/string.go:58.2,58.10 1 8 +github.com/tidepool-org/platform/structure/validator/string.go:61.46,62.20 1 33 +github.com/tidepool-org/platform/structure/validator/string.go:62.20,63.33 1 31 +github.com/tidepool-org/platform/structure/validator/string.go:63.33,65.4 1 7 +github.com/tidepool-org/platform/structure/validator/string.go:67.2,67.10 1 33 +github.com/tidepool-org/platform/structure/validator/string.go:70.57,71.20 1 6 +github.com/tidepool-org/platform/structure/validator/string.go:71.20,72.24 1 4 +github.com/tidepool-org/platform/structure/validator/string.go:72.24,74.4 1 2 +github.com/tidepool-org/platform/structure/validator/string.go:76.2,76.10 1 6 +github.com/tidepool-org/platform/structure/validator/string.go:79.60,80.20 1 6 +github.com/tidepool-org/platform/structure/validator/string.go:80.20,81.24 1 4 +github.com/tidepool-org/platform/structure/validator/string.go:81.24,83.4 1 2 +github.com/tidepool-org/platform/structure/validator/string.go:85.2,85.10 1 6 +github.com/tidepool-org/platform/structure/validator/string.go:88.60,89.20 1 6 +github.com/tidepool-org/platform/structure/validator/string.go:89.20,90.55 1 4 +github.com/tidepool-org/platform/structure/validator/string.go:90.55,92.4 1 2 +github.com/tidepool-org/platform/structure/validator/string.go:94.2,94.10 1 6 +github.com/tidepool-org/platform/structure/validator/string.go:97.63,98.20 1 6 +github.com/tidepool-org/platform/structure/validator/string.go:98.20,99.55 1 4 +github.com/tidepool-org/platform/structure/validator/string.go:99.55,101.4 1 2 +github.com/tidepool-org/platform/structure/validator/string.go:103.2,103.10 1 6 +github.com/tidepool-org/platform/structure/validator/string.go:106.61,107.20 1 8 +github.com/tidepool-org/platform/structure/validator/string.go:107.20,108.55 1 4 +github.com/tidepool-org/platform/structure/validator/string.go:108.55,110.4 1 2 +github.com/tidepool-org/platform/structure/validator/string.go:112.2,112.10 1 8 +github.com/tidepool-org/platform/structure/validator/string.go:115.70,116.20 1 4 +github.com/tidepool-org/platform/structure/validator/string.go:116.20,117.54 1 4 +github.com/tidepool-org/platform/structure/validator/string.go:117.54,119.4 1 2 +github.com/tidepool-org/platform/structure/validator/string.go:121.2,121.10 1 4 +github.com/tidepool-org/platform/structure/validator/string.go:124.64,125.20 1 6 +github.com/tidepool-org/platform/structure/validator/string.go:125.20,126.55 1 4 +github.com/tidepool-org/platform/structure/validator/string.go:126.55,128.4 1 2 +github.com/tidepool-org/platform/structure/validator/string.go:130.2,130.10 1 6 +github.com/tidepool-org/platform/structure/validator/string.go:133.73,134.20 1 6 +github.com/tidepool-org/platform/structure/validator/string.go:134.20,135.54 1 4 +github.com/tidepool-org/platform/structure/validator/string.go:135.54,137.4 1 2 +github.com/tidepool-org/platform/structure/validator/string.go:139.2,139.10 1 6 +github.com/tidepool-org/platform/structure/validator/string.go:142.81,143.20 1 6 +github.com/tidepool-org/platform/structure/validator/string.go:143.20,144.82 1 4 +github.com/tidepool-org/platform/structure/validator/string.go:144.82,146.4 1 2 +github.com/tidepool-org/platform/structure/validator/string.go:148.2,148.10 1 6 +github.com/tidepool-org/platform/structure/validator/string.go:151.66,152.20 1 26 +github.com/tidepool-org/platform/structure/validator/string.go:152.20,153.46 1 24 +github.com/tidepool-org/platform/structure/validator/string.go:153.46,154.32 1 22 +github.com/tidepool-org/platform/structure/validator/string.go:154.32,156.5 1 6 +github.com/tidepool-org/platform/structure/validator/string.go:158.3,158.72 1 18 +github.com/tidepool-org/platform/structure/validator/string.go:160.2,160.10 1 20 +github.com/tidepool-org/platform/structure/validator/string.go:163.72,164.20 1 26 +github.com/tidepool-org/platform/structure/validator/string.go:164.20,165.52 1 24 +github.com/tidepool-org/platform/structure/validator/string.go:165.52,166.35 1 28 +github.com/tidepool-org/platform/structure/validator/string.go:166.35,169.5 2 4 +github.com/tidepool-org/platform/structure/validator/string.go:172.2,172.10 1 22 +github.com/tidepool-org/platform/structure/validator/string.go:175.70,176.20 1 26 +github.com/tidepool-org/platform/structure/validator/string.go:176.20,177.61 1 24 +github.com/tidepool-org/platform/structure/validator/string.go:177.61,179.4 1 18 +github.com/tidepool-org/platform/structure/validator/string.go:181.2,181.10 1 26 +github.com/tidepool-org/platform/structure/validator/string.go:184.73,185.20 1 26 +github.com/tidepool-org/platform/structure/validator/string.go:185.20,186.60 1 24 +github.com/tidepool-org/platform/structure/validator/string.go:186.60,188.4 1 14 +github.com/tidepool-org/platform/structure/validator/string.go:190.2,190.10 1 26 +github.com/tidepool-org/platform/structure/validator/string.go:193.78,194.20 1 14 +github.com/tidepool-org/platform/structure/validator/string.go:194.20,195.23 1 12 +github.com/tidepool-org/platform/structure/validator/string.go:195.23,197.4 1 6 +github.com/tidepool-org/platform/structure/validator/string.go:199.2,199.10 1 14 +github.com/tidepool-org/platform/structure/validator/string.go:202.55,205.20 2 8 +github.com/tidepool-org/platform/structure/validator/string.go:205.20,206.62 1 6 +github.com/tidepool-org/platform/structure/validator/string.go:206.62,208.4 1 4 +github.com/tidepool-org/platform/structure/validator/string.go:208.9,210.4 1 2 +github.com/tidepool-org/platform/structure/validator/string.go:213.2,213.37 1 8 +github.com/tidepool-org/platform/structure/validator/string.go:216.43,218.2 1 0 +github.com/tidepool-org/platform/structure/validator/string.go:220.50,222.2 1 0 +github.com/tidepool-org/platform/structure/validator/string.go:224.49,226.2 1 0 +github.com/tidepool-org/platform/structure/validator/string.go:228.42,229.20 1 0 +github.com/tidepool-org/platform/structure/validator/string.go:229.20,231.42 2 0 +github.com/tidepool-org/platform/structure/validator/string.go:231.42,233.4 1 0 +github.com/tidepool-org/platform/structure/validator/string.go:236.2,236.10 1 0 +github.com/tidepool-org/platform/structure/validator/string_array.go:16.77,21.2 1 155 +github.com/tidepool-org/platform/structure/validator/string_array.go:23.54,24.20 1 8 +github.com/tidepool-org/platform/structure/validator/string_array.go:24.20,26.3 1 2 +github.com/tidepool-org/platform/structure/validator/string_array.go:27.2,27.10 1 8 +github.com/tidepool-org/platform/structure/validator/string_array.go:30.57,31.20 1 8 +github.com/tidepool-org/platform/structure/validator/string_array.go:31.20,33.3 1 6 +github.com/tidepool-org/platform/structure/validator/string_array.go:34.2,34.10 1 8 +github.com/tidepool-org/platform/structure/validator/string_array.go:37.53,38.20 1 8 +github.com/tidepool-org/platform/structure/validator/string_array.go:38.20,39.24 1 6 +github.com/tidepool-org/platform/structure/validator/string_array.go:39.24,41.4 1 4 +github.com/tidepool-org/platform/structure/validator/string_array.go:43.2,43.10 1 8 +github.com/tidepool-org/platform/structure/validator/string_array.go:46.56,47.20 1 8 +github.com/tidepool-org/platform/structure/validator/string_array.go:47.20,48.25 1 6 +github.com/tidepool-org/platform/structure/validator/string_array.go:48.25,50.4 1 2 +github.com/tidepool-org/platform/structure/validator/string_array.go:52.2,52.10 1 8 +github.com/tidepool-org/platform/structure/validator/string_array.go:55.70,56.20 1 6 +github.com/tidepool-org/platform/structure/validator/string_array.go:56.20,57.47 1 4 +github.com/tidepool-org/platform/structure/validator/string_array.go:57.47,59.4 1 2 +github.com/tidepool-org/platform/structure/validator/string_array.go:61.2,61.10 1 6 +github.com/tidepool-org/platform/structure/validator/string_array.go:64.73,65.20 1 6 +github.com/tidepool-org/platform/structure/validator/string_array.go:65.20,66.47 1 4 +github.com/tidepool-org/platform/structure/validator/string_array.go:66.47,68.4 1 2 +github.com/tidepool-org/platform/structure/validator/string_array.go:70.2,70.10 1 6 +github.com/tidepool-org/platform/structure/validator/string_array.go:73.71,74.20 1 8 +github.com/tidepool-org/platform/structure/validator/string_array.go:74.20,75.47 1 4 +github.com/tidepool-org/platform/structure/validator/string_array.go:75.47,77.4 1 2 +github.com/tidepool-org/platform/structure/validator/string_array.go:79.2,79.10 1 8 +github.com/tidepool-org/platform/structure/validator/string_array.go:82.80,83.20 1 4 +github.com/tidepool-org/platform/structure/validator/string_array.go:83.20,84.46 1 4 +github.com/tidepool-org/platform/structure/validator/string_array.go:84.46,86.4 1 2 +github.com/tidepool-org/platform/structure/validator/string_array.go:88.2,88.10 1 4 +github.com/tidepool-org/platform/structure/validator/string_array.go:91.74,92.20 1 6 +github.com/tidepool-org/platform/structure/validator/string_array.go:92.20,93.47 1 4 +github.com/tidepool-org/platform/structure/validator/string_array.go:93.47,95.4 1 2 +github.com/tidepool-org/platform/structure/validator/string_array.go:97.2,97.10 1 6 +github.com/tidepool-org/platform/structure/validator/string_array.go:100.83,101.20 1 6 +github.com/tidepool-org/platform/structure/validator/string_array.go:101.20,102.46 1 4 +github.com/tidepool-org/platform/structure/validator/string_array.go:102.46,104.4 1 2 +github.com/tidepool-org/platform/structure/validator/string_array.go:106.2,106.10 1 6 +github.com/tidepool-org/platform/structure/validator/string_array.go:109.91,110.20 1 6 +github.com/tidepool-org/platform/structure/validator/string_array.go:110.20,111.74 1 4 +github.com/tidepool-org/platform/structure/validator/string_array.go:111.74,113.4 1 2 +github.com/tidepool-org/platform/structure/validator/string_array.go:115.2,115.10 1 6 +github.com/tidepool-org/platform/structure/validator/string_array.go:118.90,119.20 1 47 +github.com/tidepool-org/platform/structure/validator/string_array.go:119.20,120.22 1 34 +github.com/tidepool-org/platform/structure/validator/string_array.go:120.22,122.39 2 34 +github.com/tidepool-org/platform/structure/validator/string_array.go:122.39,124.5 1 97 +github.com/tidepool-org/platform/structure/validator/string_array.go:127.2,127.10 1 47 +github.com/tidepool-org/platform/structure/validator/string_array.go:130.60,131.55 1 6 +github.com/tidepool-org/platform/structure/validator/string_array.go:131.55,131.85 1 10 +github.com/tidepool-org/platform/structure/validator/string_array.go:134.80,135.55 1 8 +github.com/tidepool-org/platform/structure/validator/string_array.go:135.55,135.98 1 18 +github.com/tidepool-org/platform/structure/validator/string_array.go:138.86,139.55 1 8 +github.com/tidepool-org/platform/structure/validator/string_array.go:139.55,139.104 1 18 +github.com/tidepool-org/platform/structure/validator/string_array.go:142.84,143.55 1 8 +github.com/tidepool-org/platform/structure/validator/string_array.go:143.55,143.94 1 18 +github.com/tidepool-org/platform/structure/validator/string_array.go:146.87,147.55 1 8 +github.com/tidepool-org/platform/structure/validator/string_array.go:147.55,147.97 1 18 +github.com/tidepool-org/platform/structure/validator/string_array.go:150.105,151.20 1 9 +github.com/tidepool-org/platform/structure/validator/string_array.go:151.20,152.27 1 6 +github.com/tidepool-org/platform/structure/validator/string_array.go:152.27,154.39 2 6 +github.com/tidepool-org/platform/structure/validator/string_array.go:154.39,156.5 1 15 +github.com/tidepool-org/platform/structure/validator/string_array.go:159.2,159.10 1 9 +github.com/tidepool-org/platform/structure/validator/string_array.go:162.58,163.20 1 8 +github.com/tidepool-org/platform/structure/validator/string_array.go:163.20,165.38 2 6 +github.com/tidepool-org/platform/structure/validator/string_array.go:165.38,166.40 1 24 +github.com/tidepool-org/platform/structure/validator/string_array.go:166.40,168.5 1 6 +github.com/tidepool-org/platform/structure/validator/string_array.go:168.10,170.5 1 18 +github.com/tidepool-org/platform/structure/validator/string_array.go:173.2,173.10 1 8 +github.com/tidepool-org/platform/structure/validator/string_array.go:176.93,177.20 1 14 +github.com/tidepool-org/platform/structure/validator/string_array.go:177.20,178.23 1 12 +github.com/tidepool-org/platform/structure/validator/string_array.go:178.23,180.4 1 6 +github.com/tidepool-org/platform/structure/validator/string_array.go:182.2,182.10 1 14 +github.com/tidepool-org/platform/structure/validator/time.go:15.64,20.2 1 93 +github.com/tidepool-org/platform/structure/validator/time.go:22.40,23.20 1 6 +github.com/tidepool-org/platform/structure/validator/time.go:23.20,25.3 1 2 +github.com/tidepool-org/platform/structure/validator/time.go:26.2,26.10 1 6 +github.com/tidepool-org/platform/structure/validator/time.go:29.43,30.20 1 6 +github.com/tidepool-org/platform/structure/validator/time.go:30.20,32.3 1 4 +github.com/tidepool-org/platform/structure/validator/time.go:33.2,33.10 1 6 +github.com/tidepool-org/platform/structure/validator/time.go:36.38,37.20 1 8 +github.com/tidepool-org/platform/structure/validator/time.go:37.20,38.27 1 6 +github.com/tidepool-org/platform/structure/validator/time.go:38.27,40.4 1 4 +github.com/tidepool-org/platform/structure/validator/time.go:42.2,42.10 1 8 +github.com/tidepool-org/platform/structure/validator/time.go:45.41,46.20 1 8 +github.com/tidepool-org/platform/structure/validator/time.go:46.20,47.26 1 6 +github.com/tidepool-org/platform/structure/validator/time.go:47.26,49.4 1 2 +github.com/tidepool-org/platform/structure/validator/time.go:51.2,51.10 1 8 +github.com/tidepool-org/platform/structure/validator/time.go:54.54,55.20 1 6 +github.com/tidepool-org/platform/structure/validator/time.go:55.20,56.31 1 4 +github.com/tidepool-org/platform/structure/validator/time.go:56.31,58.4 1 2 +github.com/tidepool-org/platform/structure/validator/time.go:60.2,60.10 1 6 +github.com/tidepool-org/platform/structure/validator/time.go:63.65,64.20 1 10 +github.com/tidepool-org/platform/structure/validator/time.go:64.20,65.52 1 8 +github.com/tidepool-org/platform/structure/validator/time.go:65.52,67.4 1 4 +github.com/tidepool-org/platform/structure/validator/time.go:69.2,69.10 1 10 +github.com/tidepool-org/platform/structure/validator/time.go:72.55,73.20 1 6 +github.com/tidepool-org/platform/structure/validator/time.go:73.20,74.30 1 4 +github.com/tidepool-org/platform/structure/validator/time.go:74.30,76.4 1 2 +github.com/tidepool-org/platform/structure/validator/time.go:78.2,78.10 1 6 +github.com/tidepool-org/platform/structure/validator/time.go:81.66,82.20 1 10 +github.com/tidepool-org/platform/structure/validator/time.go:82.20,83.50 1 8 +github.com/tidepool-org/platform/structure/validator/time.go:83.50,85.4 1 4 +github.com/tidepool-org/platform/structure/validator/time.go:87.2,87.10 1 10 +github.com/tidepool-org/platform/structure/validator/time.go:90.72,91.20 1 18 +github.com/tidepool-org/platform/structure/validator/time.go:91.20,92.23 1 16 +github.com/tidepool-org/platform/structure/validator/time.go:92.23,94.4 1 8 +github.com/tidepool-org/platform/structure/validator/time.go:96.2,96.10 1 18 +github.com/tidepool-org/platform/structure/validator/validator.go:14.23,16.2 1 1 +github.com/tidepool-org/platform/structure/validator/validator.go:18.56,22.2 1 78 +github.com/tidepool-org/platform/structure/validator/validator.go:24.47,26.2 1 4 +github.com/tidepool-org/platform/structure/validator/validator.go:28.38,30.2 1 2 +github.com/tidepool-org/platform/structure/validator/validator.go:32.47,34.2 1 2 +github.com/tidepool-org/platform/structure/validator/validator.go:36.36,38.2 1 2 +github.com/tidepool-org/platform/structure/validator/validator.go:40.40,42.2 1 2 +github.com/tidepool-org/platform/structure/validator/validator.go:44.37,46.2 1 2 +github.com/tidepool-org/platform/structure/validator/validator.go:48.35,50.2 1 3 +github.com/tidepool-org/platform/structure/validator/validator.go:52.44,54.2 1 16 +github.com/tidepool-org/platform/structure/validator/validator.go:56.71,59.2 2 1 +github.com/tidepool-org/platform/structure/validator/validator.go:61.72,63.2 1 2 +github.com/tidepool-org/platform/structure/validator/validator.go:65.81,67.2 1 2 +github.com/tidepool-org/platform/structure/validator/validator.go:69.69,71.2 1 2 +github.com/tidepool-org/platform/structure/validator/validator.go:73.78,75.2 1 99 +github.com/tidepool-org/platform/structure/validator/validator.go:77.90,79.2 1 2 +github.com/tidepool-org/platform/structure/validator/validator.go:81.77,83.2 1 2 +github.com/tidepool-org/platform/structure/validator/validator.go:85.89,87.2 1 0 +github.com/tidepool-org/platform/structure/validator/validator.go:89.94,91.2 1 2 +github.com/tidepool-org/platform/structure/validator/validator.go:93.83,95.2 1 2 +github.com/tidepool-org/platform/structure/validator/validator.go:97.77,101.2 1 2 +github.com/tidepool-org/platform/structure/validator/validator.go:103.77,107.2 1 5 +github.com/tidepool-org/platform/structure/validator/validator.go:109.68,113.2 1 4 +github.com/tidepool-org/platform/structure/validator/validator.go:115.73,119.2 1 17 diff --git a/vendor/github.com/tidepool-org/platform/time/zone/cover.out b/vendor/github.com/tidepool-org/platform/time/zone/cover.out new file mode 100644 index 000000000..51b512c8e --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/time/zone/cover.out @@ -0,0 +1,34 @@ +mode: atomic +github.com/tidepool-org/platform/time/zone/zone.go:17.23,19.2 1 2 +github.com/tidepool-org/platform/time/zone/zone.go:21.37,23.2 1 3 +github.com/tidepool-org/platform/time/zone/zone.go:25.73,27.2 1 3 +github.com/tidepool-org/platform/time/zone/zone.go:29.39,30.17 1 9 +github.com/tidepool-org/platform/time/zone/zone.go:30.17,32.3 1 3 +github.com/tidepool-org/platform/time/zone/zone.go:32.8,32.103 1 6 +github.com/tidepool-org/platform/time/zone/zone.go:32.103,34.3 1 3 +github.com/tidepool-org/platform/time/zone/zone.go:35.2,35.12 1 3 +github.com/tidepool-org/platform/time/zone/zone.go:38.57,40.2 1 6 +github.com/tidepool-org/platform/time/zone/zone.go:52.13,54.16 2 1 +github.com/tidepool-org/platform/time/zone/zone.go:54.16,55.13 1 0 +github.com/tidepool-org/platform/time/zone/zone.go:57.2,57.25 1 1 +github.com/tidepool-org/platform/time/zone/zone.go:60.70,62.40 2 1 +github.com/tidepool-org/platform/time/zone/zone.go:62.40,64.17 2 3 +github.com/tidepool-org/platform/time/zone/zone.go:64.17,66.4 1 0 +github.com/tidepool-org/platform/time/zone/zone.go:67.3,67.43 1 3 +github.com/tidepool-org/platform/time/zone/zone.go:69.2,70.19 2 1 +github.com/tidepool-org/platform/time/zone/zone.go:73.79,74.21 1 23 +github.com/tidepool-org/platform/time/zone/zone.go:74.21,76.3 1 0 +github.com/tidepool-org/platform/time/zone/zone.go:78.2,79.16 2 23 +github.com/tidepool-org/platform/time/zone/zone.go:79.16,80.25 1 2 +github.com/tidepool-org/platform/time/zone/zone.go:80.25,82.4 1 2 +github.com/tidepool-org/platform/time/zone/zone.go:83.3,83.18 1 0 +github.com/tidepool-org/platform/time/zone/zone.go:86.2,87.37 2 21 +github.com/tidepool-org/platform/time/zone/zone.go:87.37,89.37 2 625 +github.com/tidepool-org/platform/time/zone/zone.go:89.37,90.12 1 8 +github.com/tidepool-org/platform/time/zone/zone.go:93.3,93.23 1 617 +github.com/tidepool-org/platform/time/zone/zone.go:93.23,96.18 3 20 +github.com/tidepool-org/platform/time/zone/zone.go:96.18,98.5 1 0 +github.com/tidepool-org/platform/time/zone/zone.go:99.4,99.44 1 20 +github.com/tidepool-org/platform/time/zone/zone.go:100.9,102.52 2 597 +github.com/tidepool-org/platform/time/zone/zone.go:102.52,104.5 1 597 +github.com/tidepool-org/platform/time/zone/zone.go:108.2,109.19 2 21 diff --git a/vendor/github.com/tidepool-org/platform/time/zone/zone.coverprofile b/vendor/github.com/tidepool-org/platform/time/zone/zone.coverprofile new file mode 100644 index 000000000..51b512c8e --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/time/zone/zone.coverprofile @@ -0,0 +1,34 @@ +mode: atomic +github.com/tidepool-org/platform/time/zone/zone.go:17.23,19.2 1 2 +github.com/tidepool-org/platform/time/zone/zone.go:21.37,23.2 1 3 +github.com/tidepool-org/platform/time/zone/zone.go:25.73,27.2 1 3 +github.com/tidepool-org/platform/time/zone/zone.go:29.39,30.17 1 9 +github.com/tidepool-org/platform/time/zone/zone.go:30.17,32.3 1 3 +github.com/tidepool-org/platform/time/zone/zone.go:32.8,32.103 1 6 +github.com/tidepool-org/platform/time/zone/zone.go:32.103,34.3 1 3 +github.com/tidepool-org/platform/time/zone/zone.go:35.2,35.12 1 3 +github.com/tidepool-org/platform/time/zone/zone.go:38.57,40.2 1 6 +github.com/tidepool-org/platform/time/zone/zone.go:52.13,54.16 2 1 +github.com/tidepool-org/platform/time/zone/zone.go:54.16,55.13 1 0 +github.com/tidepool-org/platform/time/zone/zone.go:57.2,57.25 1 1 +github.com/tidepool-org/platform/time/zone/zone.go:60.70,62.40 2 1 +github.com/tidepool-org/platform/time/zone/zone.go:62.40,64.17 2 3 +github.com/tidepool-org/platform/time/zone/zone.go:64.17,66.4 1 0 +github.com/tidepool-org/platform/time/zone/zone.go:67.3,67.43 1 3 +github.com/tidepool-org/platform/time/zone/zone.go:69.2,70.19 2 1 +github.com/tidepool-org/platform/time/zone/zone.go:73.79,74.21 1 23 +github.com/tidepool-org/platform/time/zone/zone.go:74.21,76.3 1 0 +github.com/tidepool-org/platform/time/zone/zone.go:78.2,79.16 2 23 +github.com/tidepool-org/platform/time/zone/zone.go:79.16,80.25 1 2 +github.com/tidepool-org/platform/time/zone/zone.go:80.25,82.4 1 2 +github.com/tidepool-org/platform/time/zone/zone.go:83.3,83.18 1 0 +github.com/tidepool-org/platform/time/zone/zone.go:86.2,87.37 2 21 +github.com/tidepool-org/platform/time/zone/zone.go:87.37,89.37 2 625 +github.com/tidepool-org/platform/time/zone/zone.go:89.37,90.12 1 8 +github.com/tidepool-org/platform/time/zone/zone.go:93.3,93.23 1 617 +github.com/tidepool-org/platform/time/zone/zone.go:93.23,96.18 3 20 +github.com/tidepool-org/platform/time/zone/zone.go:96.18,98.5 1 0 +github.com/tidepool-org/platform/time/zone/zone.go:99.4,99.44 1 20 +github.com/tidepool-org/platform/time/zone/zone.go:100.9,102.52 2 597 +github.com/tidepool-org/platform/time/zone/zone.go:102.52,104.5 1 597 +github.com/tidepool-org/platform/time/zone/zone.go:108.2,109.19 2 21 diff --git a/vendor/github.com/tidepool-org/platform/user/cover.out b/vendor/github.com/tidepool-org/platform/user/cover.out new file mode 100644 index 000000000..16176967a --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/user/cover.out @@ -0,0 +1,28 @@ +mode: atomic +github.com/tidepool-org/platform/user/errors.go:8.55,10.2 1 23 +github.com/tidepool-org/platform/user/user.go:18.23,22.2 1 23 +github.com/tidepool-org/platform/user/user.go:36.53,44.2 7 12 +github.com/tidepool-org/platform/user/user.go:46.56,51.2 4 18 +github.com/tidepool-org/platform/user/user.go:53.42,54.20 1 4 +github.com/tidepool-org/platform/user/user.go:54.20,55.30 1 3 +github.com/tidepool-org/platform/user/user.go:55.30,56.17 1 2 +github.com/tidepool-org/platform/user/user.go:56.17,58.5 1 1 +github.com/tidepool-org/platform/user/user.go:61.2,61.14 1 3 +github.com/tidepool-org/platform/user/user.go:64.33,65.42 1 0 +github.com/tidepool-org/platform/user/user.go:65.42,67.3 1 0 +github.com/tidepool-org/platform/user/user.go:68.2,68.14 1 0 +github.com/tidepool-org/platform/user/user.go:71.56,72.79 1 6 +github.com/tidepool-org/platform/user/user.go:72.79,77.3 4 2 +github.com/tidepool-org/platform/user/user.go:78.2,78.12 1 6 +github.com/tidepool-org/platform/user/user.go:83.60,84.26 1 3 +github.com/tidepool-org/platform/user/user.go:84.26,85.49 1 2 +github.com/tidepool-org/platform/user/user.go:85.49,87.4 1 0 +github.com/tidepool-org/platform/user/user.go:89.2,89.12 1 3 +github.com/tidepool-org/platform/user/user.go:92.21,94.2 1 49 +github.com/tidepool-org/platform/user/user.go:96.35,98.2 1 7 +github.com/tidepool-org/platform/user/user.go:100.71,102.2 1 23 +github.com/tidepool-org/platform/user/user.go:104.37,105.17 1 37 +github.com/tidepool-org/platform/user/user.go:105.17,107.3 1 4 +github.com/tidepool-org/platform/user/user.go:107.8,107.45 1 33 +github.com/tidepool-org/platform/user/user.go:107.45,109.3 1 16 +github.com/tidepool-org/platform/user/user.go:110.2,110.12 1 17 diff --git a/vendor/github.com/tidepool-org/platform/user/user.coverprofile b/vendor/github.com/tidepool-org/platform/user/user.coverprofile new file mode 100644 index 000000000..a8b506308 --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/user/user.coverprofile @@ -0,0 +1,28 @@ +mode: atomic +github.com/tidepool-org/platform/user/errors.go:8.55,10.2 1 23 +github.com/tidepool-org/platform/user/user.go:18.23,22.2 1 23 +github.com/tidepool-org/platform/user/user.go:36.53,44.2 7 12 +github.com/tidepool-org/platform/user/user.go:46.56,51.2 4 18 +github.com/tidepool-org/platform/user/user.go:53.42,54.20 1 4 +github.com/tidepool-org/platform/user/user.go:54.20,55.30 1 3 +github.com/tidepool-org/platform/user/user.go:55.30,56.17 1 2 +github.com/tidepool-org/platform/user/user.go:56.17,58.5 1 1 +github.com/tidepool-org/platform/user/user.go:61.2,61.14 1 3 +github.com/tidepool-org/platform/user/user.go:64.33,65.42 1 0 +github.com/tidepool-org/platform/user/user.go:65.42,67.3 1 0 +github.com/tidepool-org/platform/user/user.go:68.2,68.14 1 0 +github.com/tidepool-org/platform/user/user.go:71.56,72.79 1 6 +github.com/tidepool-org/platform/user/user.go:72.79,77.3 4 3 +github.com/tidepool-org/platform/user/user.go:78.2,78.12 1 6 +github.com/tidepool-org/platform/user/user.go:83.60,84.26 1 3 +github.com/tidepool-org/platform/user/user.go:84.26,85.49 1 2 +github.com/tidepool-org/platform/user/user.go:85.49,87.4 1 0 +github.com/tidepool-org/platform/user/user.go:89.2,89.12 1 3 +github.com/tidepool-org/platform/user/user.go:92.21,94.2 1 49 +github.com/tidepool-org/platform/user/user.go:96.35,98.2 1 7 +github.com/tidepool-org/platform/user/user.go:100.71,102.2 1 23 +github.com/tidepool-org/platform/user/user.go:104.37,105.17 1 37 +github.com/tidepool-org/platform/user/user.go:105.17,107.3 1 4 +github.com/tidepool-org/platform/user/user.go:107.8,107.45 1 33 +github.com/tidepool-org/platform/user/user.go:107.45,109.3 1 16 +github.com/tidepool-org/platform/user/user.go:110.2,110.12 1 17 diff --git a/vendor/github.com/tidepool-org/platform/user/user.go b/vendor/github.com/tidepool-org/platform/user/user.go index d1d4ee7ac..bd5ea2e92 100644 --- a/vendor/github.com/tidepool-org/platform/user/user.go +++ b/vendor/github.com/tidepool-org/platform/user/user.go @@ -68,7 +68,7 @@ func (u *User) IsPatient() bool { return false } -func (u *User) Sanitize(details request.Details) error { +func (u *User) Sanitize(details request.AuthDetails) error { if details == nil || (!details.IsService() && details.UserID() != *u.UserID) { u.Username = nil u.EmailVerified = nil @@ -80,7 +80,7 @@ func (u *User) Sanitize(details request.Details) error { type UserArray []*User -func (u UserArray) Sanitize(details request.Details) error { +func (u UserArray) Sanitize(details request.AuthDetails) error { for _, datum := range u { if err := datum.Sanitize(details); err != nil { return err diff --git a/vendor/github.com/tidepool-org/platform/version/cover.out b/vendor/github.com/tidepool-org/platform/version/cover.out new file mode 100644 index 000000000..d7c7e6258 --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/version/cover.out @@ -0,0 +1,13 @@ +mode: atomic +github.com/tidepool-org/platform/version/reporter.go:9.88,10.16 1 9 +github.com/tidepool-org/platform/version/reporter.go:10.16,12.3 1 1 +github.com/tidepool-org/platform/version/reporter.go:13.2,13.23 1 8 +github.com/tidepool-org/platform/version/reporter.go:13.23,15.3 1 1 +github.com/tidepool-org/platform/version/reporter.go:16.2,16.22 1 7 +github.com/tidepool-org/platform/version/reporter.go:16.22,18.3 1 1 +github.com/tidepool-org/platform/version/reporter.go:20.2,24.8 1 6 +github.com/tidepool-org/platform/version/reporter.go:33.34,35.2 1 3 +github.com/tidepool-org/platform/version/reporter.go:37.41,39.2 1 2 +github.com/tidepool-org/platform/version/reporter.go:41.40,43.2 1 2 +github.com/tidepool-org/platform/version/reporter.go:45.35,47.2 1 1 +github.com/tidepool-org/platform/version/reporter.go:49.34,51.2 1 1 diff --git a/vendor/github.com/tidepool-org/platform/version/version.coverprofile b/vendor/github.com/tidepool-org/platform/version/version.coverprofile new file mode 100644 index 000000000..d7c7e6258 --- /dev/null +++ b/vendor/github.com/tidepool-org/platform/version/version.coverprofile @@ -0,0 +1,13 @@ +mode: atomic +github.com/tidepool-org/platform/version/reporter.go:9.88,10.16 1 9 +github.com/tidepool-org/platform/version/reporter.go:10.16,12.3 1 1 +github.com/tidepool-org/platform/version/reporter.go:13.2,13.23 1 8 +github.com/tidepool-org/platform/version/reporter.go:13.23,15.3 1 1 +github.com/tidepool-org/platform/version/reporter.go:16.2,16.22 1 7 +github.com/tidepool-org/platform/version/reporter.go:16.22,18.3 1 1 +github.com/tidepool-org/platform/version/reporter.go:20.2,24.8 1 6 +github.com/tidepool-org/platform/version/reporter.go:33.34,35.2 1 3 +github.com/tidepool-org/platform/version/reporter.go:37.41,39.2 1 2 +github.com/tidepool-org/platform/version/reporter.go:41.40,43.2 1 2 +github.com/tidepool-org/platform/version/reporter.go:45.35,47.2 1 1 +github.com/tidepool-org/platform/version/reporter.go:49.34,51.2 1 1 diff --git a/vendor/modules.txt b/vendor/modules.txt index 00f2ab0fb..6c9a381b8 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -164,10 +164,12 @@ github.com/tidepool-org/go-common/clients/status github.com/tidepool-org/go-common/errors github.com/tidepool-org/go-common/events github.com/tidepool-org/go-common/jepson -# github.com/tidepool-org/platform v1.33.1-0.20231013005639-3b2d96d57243 +# github.com/tidepool-org/platform v1.33.1-0.20231102192306-a5ca88faae46 => ../platform ## explicit; go 1.21 github.com/tidepool-org/platform/alerts github.com/tidepool-org/platform/auth +github.com/tidepool-org/platform/auth/client +github.com/tidepool-org/platform/client github.com/tidepool-org/platform/config github.com/tidepool-org/platform/crypto github.com/tidepool-org/platform/data @@ -175,11 +177,14 @@ github.com/tidepool-org/platform/data/blood/glucose github.com/tidepool-org/platform/errors github.com/tidepool-org/platform/id github.com/tidepool-org/platform/log +github.com/tidepool-org/platform/log/null github.com/tidepool-org/platform/metadata github.com/tidepool-org/platform/net github.com/tidepool-org/platform/oauth github.com/tidepool-org/platform/origin github.com/tidepool-org/platform/page +github.com/tidepool-org/platform/permission +github.com/tidepool-org/platform/platform github.com/tidepool-org/platform/pointer github.com/tidepool-org/platform/provider github.com/tidepool-org/platform/request @@ -393,3 +398,4 @@ gopkg.in/jcmturner/gokrb5.v7/types ## explicit gopkg.in/jcmturner/rpc.v1/mstypes gopkg.in/jcmturner/rpc.v1/ndr +# github.com/tidepool-org/platform => ../platform