Documentation ¶
Index ¶
- type Option
- type Service
- func (s *Service) Boolean(ctx context.Context, namespaceKey, flagKey string, ...) (*evaluation.BooleanEvaluationResponse, error)
- func (s *Service) Evaluate(ctx context.Context, namespaceKey, flagKey string, ...) (*evaluation.VariantEvaluationResponse, error)
- func (s *Service) GetFlag(ctx context.Context, namespaceKey, flagKey string) (*flipt.Flag, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Service)
Option is a service option.
func WithAddress ¶
WithAddress sets the address for the remote Flipt gRPC API.
func WithCertificatePath ¶
WithCertificatePath sets the certificate path for the service.
func WithClientTokenProvider ¶
func WithClientTokenProvider(tokenProvider sdk.ClientTokenProvider) Option
WithClientTokenProvider sets the token provider for auth to support client auth needs.
func WithUnaryClientInterceptor ¶
func WithUnaryClientInterceptor(unaryInterceptors ...grpc.UnaryClientInterceptor) Option
WithUnaryClientInterceptor sets the provided unary client interceptors to be applied to the established gRPC client connection.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is a Transport service.
func (*Service) Boolean ¶ added in v0.2.0
func (s *Service) Boolean(ctx context.Context, namespaceKey, flagKey string, evalCtx map[string]interface{}) (*evaluation.BooleanEvaluationResponse, error)
Boolean evaluates a boolean type flag with the given context and namespace/flag key pair.
func (*Service) Evaluate ¶
func (s *Service) Evaluate(ctx context.Context, namespaceKey, flagKey string, evalCtx map[string]interface{}) (*evaluation.VariantEvaluationResponse, error)
Evaluate evaluates a variant type flag with the given context and namespace/flag key pair.
Click to show internal directories.
Click to hide internal directories.