Skip to content

Commit

Permalink
Merge pull request #119 from ripienaar/misc_consistency
Browse files Browse the repository at this point in the history
consistency and formatting updates
  • Loading branch information
ripienaar authored Aug 6, 2020
2 parents 1c385c8 + 8b0abbd commit 757e1fe
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 37 deletions.
10 changes: 5 additions & 5 deletions api/jetstream/advisory/api_audit.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ func init() {
Subject: {{ .Subject }}
Client:
{{- if .Client.User }}
User: {{ .Client.User }} Account: {{ .Client.Account }}
User: {{ .Client.User }} Account: {{ .Client.Account }}
{{- end }}
Host: {{ HostPort .Client.Host .Client.Port }}
CID: {{ .Client.CID }}
Host: {{ HostPort .Client.Host .Client.Port }}
CID: {{ .Client.CID }}
{{- if .Client.Name }}
Name: {{ .Client.Name }}
Name: {{ .Client.Name }}
{{- end }}
Language: {{ .Client.Language }} {{ .Client.Version }}
Library Version: {{ .Client.Version }} Language: {{ with .Client.Lang }}{{ . }}{{ else }}Unknown{{ end }}
Request:
{{ if .Request }}
Expand Down
10 changes: 5 additions & 5 deletions api/jetstream/advisory/restore_complete.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ func init() {
Bytes: {{ .Bytes | IBytes }}
Client:
{{- if .Client.User }}
User: {{ .Client.User }} Account: {{ .Client.Account }}
User: {{ .Client.User }} Account: {{ .Client.Account }}
{{- end }}
Host: {{ HostPort .Client.Host .Client.Port }}
CID: {{ .Client.CID }}
Host: {{ HostPort .Client.Host .Client.Port }}
CID: {{ .Client.CID }}
{{- if .Client.Name }}
Name: {{ .Client.Name }}
Name: {{ .Client.Name }}
{{- end }}
Language: {{ .Client.Language }} {{ .Client.Version }}
Library Version: {{ .Client.Version }} Language: {{ with .Client.Lang }}{{ . }}{{ else }}Unknown{{ end }}
`)
if err != nil {
panic(err)
Expand Down
10 changes: 5 additions & 5 deletions api/jetstream/advisory/restore_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ func init() {
Stream: {{ .Stream }}
Client:
{{- if .Client.User }}
User: {{ .Client.User }} Account: {{ .Client.Account }}
User: {{ .Client.User }} Account: {{ .Client.Account }}
{{- end }}
Host: {{ HostPort .Client.Host .Client.Port }}
CID: {{ .Client.CID }}
Host: {{ HostPort .Client.Host .Client.Port }}
CID: {{ .Client.CID }}
{{- if .Client.Name }}
Name: {{ .Client.Name }}
Name: {{ .Client.Name }}
{{- end }}
Language: {{ .Client.Language }} {{ .Client.Version }}
Library Version: {{ .Client.Version }} Language: {{ with .Client.Lang }}{{ . }}{{ else }}Unknown{{ end }}
`)
if err != nil {
panic(err)
Expand Down
10 changes: 5 additions & 5 deletions api/jetstream/advisory/snapshot_complete.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ func init() {
End: {{ .End | NanoTime }}
Client:
{{- if .Client.User }}
User: {{ .Client.User }} Account: {{ .Client.Account }}
User: {{ .Client.User }} Account: {{ .Client.Account }}
{{- end }}
Host: {{ HostPort .Client.Host .Client.Port }}
CID: {{ .Client.CID }}
Host: {{ HostPort .Client.Host .Client.Port }}
CID: {{ .Client.CID }}
{{- if .Client.Name }}
Name: {{ .Client.Name }}
Name: {{ .Client.Name }}
{{- end }}
Language: {{ .Client.Language }} {{ .Client.Version }}
Library Version: {{ .Client.Version }} Language: {{ with .Client.Lang }}{{ . }}{{ else }}Unknown{{ end }}
`)
if err != nil {
panic(err)
Expand Down
10 changes: 5 additions & 5 deletions api/jetstream/advisory/snapshot_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ func init() {
Block Size: {{ .BlkSize | IBytes }}
Client:
{{- if .Client.User }}
User: {{ .Client.User }} Account: {{ .Client.Account }}
User: {{ .Client.User }} Account: {{ .Client.Account }}
{{- end }}
Host: {{ HostPort .Client.Host .Client.Port }}
CID: {{ .Client.CID }}
Host: {{ HostPort .Client.Host .Client.Port }}
CID: {{ .Client.CID }}
{{- if .Client.Name }}
Name: {{ .Client.Name }}
Name: {{ .Client.Name }}
{{- end }}
Language: {{ .Client.Language }} {{ .Client.Version }}
Library Version: {{ .Client.Version }} Language: {{ with .Client.Lang }}{{ . }}{{ else }}Unknown{{ end }}
`)
if err != nil {
panic(err)
Expand Down
12 changes: 6 additions & 6 deletions api/server/advisory/client_connect.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,17 @@ func init() {
{{- end }}
Client:
ID: {{ .Client.ID }}
ID: {{ .Client.ID }}
{{- if .Client.User }}
User: {{ .Client.User }}
User: {{ .Client.User }}
{{- end }}
{{- if .Client.Name }}
Name: {{ .Client.Name }}
Name: {{ .Client.Name }}
{{- end }}
Account: {{ .Client.Account }}
Library Version: {{ .Client.Version }} Language: {{ with .Client.Lang }}{{ . }}{{ else }}Unknown{{ end }}
Account: {{ .Client.Account }}
Library Version: {{ .Client.Version }} Language: {{ with .Client.Lang }}{{ . }}{{ else }}Unknown{{ end }}
{{- if .Client.Host }}
Host: {{ .Client.Host }}
Host: {{ .Client.Host }}
{{- end }}`)
if err != nil {
panic(err)
Expand Down
12 changes: 6 additions & 6 deletions api/server/advisory/client_disconnect.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,17 @@ func init() {
{{- end }}
Client:
ID: {{ .Client.ID }}
ID: {{ .Client.ID }}
{{- if .Client.User }}
User: {{ .Client.User }}
User: {{ .Client.User }}
{{- end }}
{{- if .Client.Name }}
Name: {{ .Client.Name }}
Name: {{ .Client.Name }}
{{- end }}
Account: {{ .Client.Account }}
Library Version: {{ .Client.Version }} Language: {{ with .Client.Lang }}{{ . }}{{ else }}Unknown{{ end }}
Account: {{ .Client.Account }}
Library Version: {{ .Client.Version }} Language: {{ with .Client.Lang }}{{ . }}{{ else }}Unknown{{ end }}
{{- if .Client.Host }}
Host: {{ .Client.Host }}
Host: {{ .Client.Host }}
{{- end }}
Stats:
Expand Down

0 comments on commit 757e1fe

Please sign in to comment.