swmcp

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 2, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

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 NewSSEServer() *cobra.Command

func NewStdioServer

func NewStdioServer() *cobra.Command

func NewStreamable

func NewStreamable() *cobra.Command

func WithSkyWalkingAuth

func WithSkyWalkingAuth(ctx context.Context, username, password string) context.Context

WithSkyWalkingAuth adds username and password to the context for basic auth.

func WithSkyWalkingURLAndInsecure

func WithSkyWalkingURLAndInsecure(ctx context.Context, url string, insecure bool) context.Context

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL