Documentation ¶
Index ¶
- Constants
- Variables
- type Configuration
- type Service
- func (s *Service) EventChannel() <-chan of.Event
- func (s *Service) Init() error
- func (s *Service) ResolveBoolean(ctx context.Context, key string, defaultValue bool, ...) of.BoolResolutionDetail
- func (s *Service) ResolveFloat(ctx context.Context, key string, defaultValue float64, ...) of.FloatResolutionDetail
- func (s *Service) ResolveInt(ctx context.Context, key string, defaultValue int64, ...) of.IntResolutionDetail
- func (s *Service) ResolveObject(ctx context.Context, key string, defaultValue interface{}, ...) of.InterfaceResolutionDetail
- func (s *Service) ResolveString(ctx context.Context, key string, defaultValue string, ...) of.StringResolutionDetail
- func (s *Service) Shutdown()
Constants ¶
View Source
const ( ReasonCached = "CACHED" ClientNotReadyMsg = "client did not yet finish the initialization" )
View Source
const ConnectionError = "connection not made"
Variables ¶
View Source
var ErrClientNotReady = of.NewProviderNotReadyResolutionError(ClientNotReadyMsg)
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service handles the client side interface for the flagd server
func NewService ¶
func (*Service) EventChannel ¶
func (*Service) ResolveBoolean ¶
func (s *Service) ResolveBoolean(ctx context.Context, key string, defaultValue bool, evalCtx map[string]interface{}) of.BoolResolutionDetail
ResolveBoolean handles the flag evaluation response from the flagd ResolveBoolean rpc
func (*Service) ResolveFloat ¶
func (s *Service) ResolveFloat(ctx context.Context, key string, defaultValue float64, evalCtx map[string]interface{}) of.FloatResolutionDetail
ResolveFloat handles the flag evaluation response from the flagd interface ResolveFloat rpc
func (*Service) ResolveInt ¶
func (s *Service) ResolveInt(ctx context.Context, key string, defaultValue int64, evalCtx map[string]interface{}) of.IntResolutionDetail
ResolveInt handles the flag evaluation response from the flagd interface ResolveNumber rpc
func (*Service) ResolveObject ¶
func (s *Service) ResolveObject(ctx context.Context, key string, defaultValue interface{}, evalCtx map[string]interface{}) of.InterfaceResolutionDetail
ResolveObject handles the flag evaluation response from the flagd interface ResolveObject rpc
func (*Service) ResolveString ¶
func (s *Service) ResolveString(ctx context.Context, key string, defaultValue string, evalCtx map[string]interface{}) of.StringResolutionDetail
ResolveString handles the flag evaluation response from the flagd interface ResolveString rpc
Click to show internal directories.
Click to hide internal directories.