Documentation
¶
Overview ¶
Package server implements the Gate HTTP server and its lifecycle.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ServerCmd = &cobra.Command{ Use: "server", Short: "run the server", Long: ``, RunE: func(cmd *cobra.Command, args []string) error { ctx := cmd.Context() server := NewServer(ctx, config.GetCurrent()) if err := server.Init(); err != nil { return err } return server.serve() }, }
ServerCmd represents the server command.
Functions ¶
This section is empty.
Types ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package handlers provides HTTP request handlers for the Gate API.
|
Package handlers provides HTTP request handlers for the Gate API. |
|
Package middlewares provides HTTP middleware for the Gate server.
|
Package middlewares provides HTTP middleware for the Gate server. |
Click to show internal directories.
Click to hide internal directories.