client

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2025 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FabricSDKLoggerName                      = "fabric-sdk-go"
	AzureSDKLoggingEnvVar                    = "AZURE_SDK_GO_LOGGING"
	AzureSDKLoggingAll                       = "all"
	FabricSDKLoggingEnvVar                   = "FABRIC_SDK_GO_LOGGING"
	FabricSDKLoggingIncludeBodyEnvVar        = "FABRIC_SDK_GO_LOGGING_INCLUDE_BODY"
	FabricSDKLoggingAllowedHeadersEnvVar     = "FABRIC_SDK_GO_LOGGING_ALLOWED_HEADERS"
	FabricSDKLoggingAllowedQueryParamsEnvVar = "FABRIC_SDK_GO_LOGGING_ALLOWED_QUERY_PARAMS"
)

Variables

This section is empty.

Functions

func ConfigureLoggingOptions

func ConfigureLoggingOptions(ctx context.Context, logLevel hclog.Level) (*policy.LogOptions, error)

ConfigureLoggingOptions configures the logging options for the Fabric SDK based on the environment variables.

func GetLoggingAllowedHeadersOption

func GetLoggingAllowedHeadersOption(ctx context.Context) ([]string, error)

GetLoggingAllowedHeadersOption determines which HTTP headers should be included in logs.

func GetLoggingAllowedQueryParamsOption

func GetLoggingAllowedQueryParamsOption(ctx context.Context) ([]string, error)

func GetLoggingIncludeBodyOption

func GetLoggingIncludeBodyOption(ctx context.Context) (bool, error)

GetLoggingIncludeBodyOption determines if request/response bodies should be included in logs.

func NewFabricSDKLoggerSubsystem

func NewFabricSDKLoggerSubsystem(ctx context.Context) (context.Context, hclog.Level, error)

NewFabricSDKLoggerSubsystem initializes the logger subsystem for the Fabric SDK.

Types

type ProviderWithFabricClient

type ProviderWithFabricClient interface {
	provider.Provider
	ConfigureCreateClient(createClient func(ctx context.Context, cfg *pconfig.ProviderConfig) (*fabric.Client, error))
	ConfigureAffirmProviderConfig(validateConfig func(cfg *pconfig.ProviderConfig))
}

Jump to

Keyboard shortcuts

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