diff --git a/config/credentials.go b/config/credentials.go index a0df8d2..6f52fbe 100644 --- a/config/credentials.go +++ b/config/credentials.go @@ -2,7 +2,8 @@ package config // Credentials - type Credentials struct { - User *UserCredentials `yaml:"user,omitempty" validate:"omitempty"` + User *UserCredentials `yaml:"user,omitempty" validate:"omitempty"` + ApiKey *ApiKey `yaml:"api_key,omitempty" validate:"omitempty"` } // UserCredentials - @@ -10,3 +11,8 @@ type UserCredentials struct { Name string `yaml:"name" validate:"required"` Password string `yaml:"password" validate:"required"` } + +type ApiKey struct { + Header string `yaml:"header" validate:"required"` + Key string `yaml:"key" validate:"required"` +}