Documentation
¶
Index ¶
- func EnhanceHTTPContextFunc() server.HTTPContextFunc
- func EnhanceSSEContextFunc() server.SSEContextFunc
- func EnhanceStdioContextFunc() server.StdioContextFunc
- func NewSSEServer() *cobra.Command
- func NewStdioServer() *cobra.Command
- func NewStreamable() *cobra.Command
- func WithSkyWalkingAuth(ctx context.Context, username, password string) context.Context
- func WithSkyWalkingURLAndInsecure(ctx context.Context, url string, insecure bool) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnhanceHTTPContextFunc ¶
func EnhanceHTTPContextFunc() server.HTTPContextFunc
EnhanceHTTPContextFunc returns a HTTPContextFunc that enriches the context with SkyWalking settings from the CLI configuration and configured auth.
func EnhanceSSEContextFunc ¶
func EnhanceSSEContextFunc() server.SSEContextFunc
EnhanceSSEContextFunc returns a SSEContextFunc that enriches the context with SkyWalking settings from the CLI configuration and configured auth.
func EnhanceStdioContextFunc ¶
func EnhanceStdioContextFunc() server.StdioContextFunc
EnhanceStdioContextFunc returns a StdioContextFunc that enriches the context with SkyWalking settings from the global configuration.
func NewSSEServer ¶
func NewStdioServer ¶
func NewStreamable ¶
func WithSkyWalkingAuth ¶
WithSkyWalkingAuth adds username and password to the context for basic auth.
func WithSkyWalkingURLAndInsecure ¶
WithSkyWalkingURLAndInsecure adds SkyWalking URL and insecure flag to the context. This ensures all downstream requests will have contextkey.BaseURL{} and contextkey.Insecure{}.
Types ¶
This section is empty.