Documentation
¶
Index ¶
- func GetCtxWithScope(ctx context.Context, scope string) context.Context
- func GetCtxWithTraceId(ctx context.Context) context.Context
- func GetScopeFromCtx(ctx context.Context) (string, bool)
- func GetTraceIdFromCtx(ctx context.Context) (string, bool)
- func PrintColoredBanner()
- func SetOsProxy(port uint16) error
- func UnsetOsProxy() error
- type Args
- type Config
- type StringArray
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCtxWithScope ¶
GetCtxWithScope creates a new context with the given scope.
func GetCtxWithTraceId ¶
GetCtxWithTraceId creates a new context with a generated trace ID.
func GetScopeFromCtx ¶
GetScopeFromCtx retrieves the scope from the context.
func GetTraceIdFromCtx ¶
GetTraceIdFromCtx retrieves the trace ID from the context.
func PrintColoredBanner ¶
func PrintColoredBanner()
PrintColoredBanner prints a colored banner with the configuration details.
func SetOsProxy ¶
SetOsProxy sets the system proxy settings on macOS.
func UnsetOsProxy ¶
func UnsetOsProxy() error
UnsetOsProxy unsets the system proxy settings on macOS.
Types ¶
type Args ¶
type Config ¶
type StringArray ¶
type StringArray []string
func (*StringArray) Set ¶
func (arr *StringArray) Set(value string) error
func (*StringArray) String ¶
func (arr *StringArray) String() string
Click to show internal directories.
Click to hide internal directories.