Skip to content

Commit

Permalink
fix tag align
Browse files Browse the repository at this point in the history
Signed-off-by: nyagamunene <[email protected]>
  • Loading branch information
nyagamunene committed Dec 11, 2024
1 parent 3044374 commit 6bf7ca4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions proxy/config/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ import (
const tag = "latest"

type HTTPProxyConfig struct {
RegistryURL string `env:"REGISTRY_URL" envDefault:"localhost:5000"`
Authenticate bool `env:"AUTHENTICATE" envDefault:"false"`
Username string `env:"USERNAME" envDefault:""`
Password string `env:"PASSWORD" envDefault:""`
RegistryURL string `env:"REGISTRY_URL" envDefault:"localhost:5000"`

Check failure on line 17 in proxy/config/http.go

View workflow job for this annotation

GitHub Actions / Lint and Build

tag is not aligned, should be: env:"REGISTRY_URL" envDefault:"localhost:5000" (tagalign)
Authenticate bool `env:"AUTHENTICATE" envDefault:"false"`

Check failure on line 18 in proxy/config/http.go

View workflow job for this annotation

GitHub Actions / Lint and Build

tag is not aligned, should be: env:"AUTHENTICATE" envDefault:"false" (tagalign)
Username string `env:"USERNAME" envDefault:""`

Check failure on line 19 in proxy/config/http.go

View workflow job for this annotation

GitHub Actions / Lint and Build

tag is not aligned, should be: env:"USERNAME" envDefault:"" (tagalign)
Password string `env:"PASSWORD" envDefault:""`

Check failure on line 20 in proxy/config/http.go

View workflow job for this annotation

GitHub Actions / Lint and Build

tag is not aligned, should be: env:"PASSWORD" envDefault:"" (tagalign)
}

func LoadHTTPConfig(opts env.Options) (*HTTPProxyConfig, error) {
Expand Down
8 changes: 4 additions & 4 deletions proxy/config/mqtt.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
)

type MQTTProxyConfig struct {
BrokerURL string `env:"BROKER_URL" envDefault:""`
Password string `env:"PASSWORD" envDefault:""`
PropletID string `env:"PROPLET_ID" envDefault:""`
ChannelID string `env:"CHANNEL_ID" envDefault:""`
BrokerURL string `json:"broker_url" env:"BROKER_URL"`

Check failure on line 8 in proxy/config/mqtt.go

View workflow job for this annotation

GitHub Actions / Lint and Build

tag is not aligned, should be: env:"BROKER_URL" json:"broker_url" (tagalign)
Password string `json:"password" env:"PASSWORD"`

Check failure on line 9 in proxy/config/mqtt.go

View workflow job for this annotation

GitHub Actions / Lint and Build

tag is not aligned, should be: env:"PASSWORD" json:"password" (tagalign)
PropletID string `json:"proplet_id" env:"PROPLET_ID"`

Check failure on line 10 in proxy/config/mqtt.go

View workflow job for this annotation

GitHub Actions / Lint and Build

tag is not aligned, should be: env:"PROPLET_ID" json:"proplet_id" (tagalign)
ChannelID string `json:"channel_id" env:"CHANNEL_ID"`

Check failure on line 11 in proxy/config/mqtt.go

View workflow job for this annotation

GitHub Actions / Lint and Build

tag is not aligned, should be: env:"CHANNEL_ID" json:"channel_id" (tagalign)
}

func LoadMQTTConfig(opts env.Options) (*MQTTProxyConfig, error) {
Expand Down

0 comments on commit 6bf7ca4

Please sign in to comment.