Skip to content

Commit

Permalink
chore: rename server options for lint
Browse files Browse the repository at this point in the history
  • Loading branch information
pandatix committed Jan 6, 2025
1 parent 619cbc5 commit 236c3d3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cmd/chall-manager/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ func run(c *cli.Context) error {
defer cancel()

// Launch API server
srv := server.NewServer(server.ServerOptions{
srv := server.NewServer(server.Options{
Port: port,
Swagger: sw,
})
Expand Down
10 changes: 5 additions & 5 deletions server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,21 @@ import (

// Server is a helper to manager an API Server.
type Server struct {
ServerOptions
Options

lns *Listeners
}

// ServerOptions to configure it once for all.
type ServerOptions struct {
// Options to configure it once for all.
type Options struct {
Port int
Swagger bool
}

// NewServer returns a fresh API server.
func NewServer(opts ServerOptions) *Server {
func NewServer(opts Options) *Server {
return &Server{
ServerOptions: opts,
Options: opts,
}
}

Expand Down

0 comments on commit 236c3d3

Please sign in to comment.