Skip to content

Commit 439f719

Browse files
committed
your-commit-message
1 parent 644cb14 commit 439f719

4 files changed

Lines changed: 5 additions & 42 deletions

File tree

Dockerfile.httpd

Lines changed: 0 additions & 37 deletions
This file was deleted.

cmd/flashduty-mcp-server/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,15 @@ var (
7373
Short: "Start HTTP server",
7474
Long: `Start a streamable HTTP server.`,
7575
RunE: func(cmd *cobra.Command, args []string) error {
76-
httpServerConfig := flashduty.HttpServerConfig{
76+
httpServerConfig := flashduty.HTTPServerConfig{
7777
Version: version,
7878
Commit: commit,
7979
Date: date,
8080
BaseURL: viper.GetString("base_url"),
8181
Port: viper.GetString("port"),
8282
LogFilePath: viper.GetString("log-file"),
8383
}
84-
return flashduty.RunHttpServer(httpServerConfig)
84+
return flashduty.RunHTTPServer(httpServerConfig)
8585
},
8686
}
8787
)

internal/flashduty/context.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func getClient(ctx context.Context, defaultCfg FlashdutyConfig, version string)
5454
}
5555

5656
if cfg.APPKey == "" {
57-
return ctx, nil, fmt.Errorf("Flashduty APP key is not configured")
57+
return ctx, nil, fmt.Errorf("flashduty app key is not configured")
5858
}
5959

6060
// Use APP key as cache key, assuming one key corresponds to one client configuration.

internal/flashduty/server.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ func RunStdioServer(cfg StdioServerConfig) error {
200200
return nil
201201
}
202202

203-
type HttpServerConfig struct {
203+
type HTTPServerConfig struct {
204204
// Version of the server
205205
Version string
206206
// Commit of the server
@@ -262,7 +262,7 @@ func httpContextFunc(ctx context.Context, r *http.Request, defaultBaseURL string
262262
return ContextWithConfig(ctx, cfg)
263263
}
264264

265-
func RunHttpServer(cfg HttpServerConfig) error {
265+
func RunHTTPServer(cfg HTTPServerConfig) error {
266266
// Setup logging
267267
logrusLogger := logrus.New()
268268
if cfg.LogFilePath != "" {

0 commit comments

Comments
 (0)