Documentation ¶
Index ¶
- func Middleware(client ldapi.APIClient, streamingUrl string) func(handler http.Handler) http.Handler
- func WithApi(ctx context.Context, s Api) context.Context
- func WithApiAndSdk(ctx context.Context, client ldapi.APIClient, streamingUrl string) context.Context
- func WithSdk(ctx context.Context, s Sdk) context.Context
- type Api
- type Sdk
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Middleware ¶
func Middleware(client ldapi.APIClient, streamingUrl string) func(handler http.Handler) http.Handler
Middleware puts adapters on to the context for consumption by other things
func WithApiAndSdk ¶ added in v1.9.0
Types ¶
type Api ¶
type Api interface { GetSdkKey(ctx context.Context, projectKey, environmentKey string) (string, error) GetAllFlags(ctx context.Context, projectKey string) ([]ldapi.FeatureFlag, error) GetProjectEnvironments(ctx context.Context, projectKey string, query string, limit *int) ([]ldapi.Environment, error) }
Click to show internal directories.
Click to hide internal directories.