Documentation ¶
Index ¶
- Constants
- type BooleanFeatureFlagForUser
- type BooleanFeatureFlagForUserBadRequest
- type BooleanFeatureFlagForUserHandler
- type BooleanFeatureFlagForUserHandlerFunc
- type BooleanFeatureFlagForUserInternalServerError
- type BooleanFeatureFlagForUserOK
- func (o *BooleanFeatureFlagForUserOK) SetPayload(payload *internalmessages.FeatureFlagBoolean)
- func (o *BooleanFeatureFlagForUserOK) WithPayload(payload *internalmessages.FeatureFlagBoolean) *BooleanFeatureFlagForUserOK
- func (o *BooleanFeatureFlagForUserOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type BooleanFeatureFlagForUserParams
- type BooleanFeatureFlagForUserURL
- func (o *BooleanFeatureFlagForUserURL) Build() (*url.URL, error)
- func (o *BooleanFeatureFlagForUserURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *BooleanFeatureFlagForUserURL) Must(u *url.URL, err error) *url.URL
- func (o *BooleanFeatureFlagForUserURL) SetBasePath(bp string)
- func (o *BooleanFeatureFlagForUserURL) String() string
- func (o *BooleanFeatureFlagForUserURL) StringFull(scheme, host string) string
- func (o *BooleanFeatureFlagForUserURL) WithBasePath(bp string) *BooleanFeatureFlagForUserURL
- type BooleanFeatureFlagForUserUnauthorized
- type VariantFeatureFlagForUser
- type VariantFeatureFlagForUserBadRequest
- type VariantFeatureFlagForUserHandler
- type VariantFeatureFlagForUserHandlerFunc
- type VariantFeatureFlagForUserInternalServerError
- type VariantFeatureFlagForUserOK
- func (o *VariantFeatureFlagForUserOK) SetPayload(payload *internalmessages.FeatureFlagVariant)
- func (o *VariantFeatureFlagForUserOK) WithPayload(payload *internalmessages.FeatureFlagVariant) *VariantFeatureFlagForUserOK
- func (o *VariantFeatureFlagForUserOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type VariantFeatureFlagForUserParams
- type VariantFeatureFlagForUserURL
- func (o *VariantFeatureFlagForUserURL) Build() (*url.URL, error)
- func (o *VariantFeatureFlagForUserURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *VariantFeatureFlagForUserURL) Must(u *url.URL, err error) *url.URL
- func (o *VariantFeatureFlagForUserURL) SetBasePath(bp string)
- func (o *VariantFeatureFlagForUserURL) String() string
- func (o *VariantFeatureFlagForUserURL) StringFull(scheme, host string) string
- func (o *VariantFeatureFlagForUserURL) WithBasePath(bp string) *VariantFeatureFlagForUserURL
- type VariantFeatureFlagForUserUnauthorized
Constants ¶
const BooleanFeatureFlagForUserBadRequestCode int = 400
BooleanFeatureFlagForUserBadRequestCode is the HTTP code returned for type BooleanFeatureFlagForUserBadRequest
const BooleanFeatureFlagForUserInternalServerErrorCode int = 500
BooleanFeatureFlagForUserInternalServerErrorCode is the HTTP code returned for type BooleanFeatureFlagForUserInternalServerError
const BooleanFeatureFlagForUserOKCode int = 200
BooleanFeatureFlagForUserOKCode is the HTTP code returned for type BooleanFeatureFlagForUserOK
BooleanFeatureFlagForUserUnauthorizedCode is the HTTP code returned for type BooleanFeatureFlagForUserUnauthorized
const VariantFeatureFlagForUserBadRequestCode int = 400
VariantFeatureFlagForUserBadRequestCode is the HTTP code returned for type VariantFeatureFlagForUserBadRequest
const VariantFeatureFlagForUserInternalServerErrorCode int = 500
VariantFeatureFlagForUserInternalServerErrorCode is the HTTP code returned for type VariantFeatureFlagForUserInternalServerError
const VariantFeatureFlagForUserOKCode int = 200
VariantFeatureFlagForUserOKCode is the HTTP code returned for type VariantFeatureFlagForUserOK
VariantFeatureFlagForUserUnauthorizedCode is the HTTP code returned for type VariantFeatureFlagForUserUnauthorized
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BooleanFeatureFlagForUser ¶
type BooleanFeatureFlagForUser struct { Context *middleware.Context Handler BooleanFeatureFlagForUserHandler }
BooleanFeatureFlagForUser swagger:route POST /feature-flags/user-boolean/{key} featureFlags booleanFeatureFlagForUser
Determines if a user has a feature flag enabled ¶
Determines if a user has a feature flag enabled. The flagContext contains context used to determine if this flag applies to the logged in user.
func NewBooleanFeatureFlagForUser ¶
func NewBooleanFeatureFlagForUser(ctx *middleware.Context, handler BooleanFeatureFlagForUserHandler) *BooleanFeatureFlagForUser
NewBooleanFeatureFlagForUser creates a new http.Handler for the boolean feature flag for user operation
func (*BooleanFeatureFlagForUser) ServeHTTP ¶
func (o *BooleanFeatureFlagForUser) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type BooleanFeatureFlagForUserBadRequest ¶
type BooleanFeatureFlagForUserBadRequest struct { }
BooleanFeatureFlagForUserBadRequest invalid request
swagger:response booleanFeatureFlagForUserBadRequest
func NewBooleanFeatureFlagForUserBadRequest ¶
func NewBooleanFeatureFlagForUserBadRequest() *BooleanFeatureFlagForUserBadRequest
NewBooleanFeatureFlagForUserBadRequest creates BooleanFeatureFlagForUserBadRequest with default headers values
func (*BooleanFeatureFlagForUserBadRequest) WriteResponse ¶
func (o *BooleanFeatureFlagForUserBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type BooleanFeatureFlagForUserHandler ¶
type BooleanFeatureFlagForUserHandler interface {
Handle(BooleanFeatureFlagForUserParams) middleware.Responder
}
BooleanFeatureFlagForUserHandler interface for that can handle valid boolean feature flag for user params
type BooleanFeatureFlagForUserHandlerFunc ¶
type BooleanFeatureFlagForUserHandlerFunc func(BooleanFeatureFlagForUserParams) middleware.Responder
BooleanFeatureFlagForUserHandlerFunc turns a function with the right signature into a boolean feature flag for user handler
func (BooleanFeatureFlagForUserHandlerFunc) Handle ¶
func (fn BooleanFeatureFlagForUserHandlerFunc) Handle(params BooleanFeatureFlagForUserParams) middleware.Responder
Handle executing the request and returning a response
type BooleanFeatureFlagForUserInternalServerError ¶
type BooleanFeatureFlagForUserInternalServerError struct { }
BooleanFeatureFlagForUserInternalServerError internal server error
swagger:response booleanFeatureFlagForUserInternalServerError
func NewBooleanFeatureFlagForUserInternalServerError ¶
func NewBooleanFeatureFlagForUserInternalServerError() *BooleanFeatureFlagForUserInternalServerError
NewBooleanFeatureFlagForUserInternalServerError creates BooleanFeatureFlagForUserInternalServerError with default headers values
func (*BooleanFeatureFlagForUserInternalServerError) WriteResponse ¶
func (o *BooleanFeatureFlagForUserInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type BooleanFeatureFlagForUserOK ¶
type BooleanFeatureFlagForUserOK struct { /* In: Body */ Payload *internalmessages.FeatureFlagBoolean `json:"body,omitempty"` }
BooleanFeatureFlagForUserOK Boolean Feature Flag Status
swagger:response booleanFeatureFlagForUserOK
func NewBooleanFeatureFlagForUserOK ¶
func NewBooleanFeatureFlagForUserOK() *BooleanFeatureFlagForUserOK
NewBooleanFeatureFlagForUserOK creates BooleanFeatureFlagForUserOK with default headers values
func (*BooleanFeatureFlagForUserOK) SetPayload ¶
func (o *BooleanFeatureFlagForUserOK) SetPayload(payload *internalmessages.FeatureFlagBoolean)
SetPayload sets the payload to the boolean feature flag for user o k response
func (*BooleanFeatureFlagForUserOK) WithPayload ¶
func (o *BooleanFeatureFlagForUserOK) WithPayload(payload *internalmessages.FeatureFlagBoolean) *BooleanFeatureFlagForUserOK
WithPayload adds the payload to the boolean feature flag for user o k response
func (*BooleanFeatureFlagForUserOK) WriteResponse ¶
func (o *BooleanFeatureFlagForUserOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type BooleanFeatureFlagForUserParams ¶
type BooleanFeatureFlagForUserParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*context for the feature flag request Required: true In: body */ FlagContext map[string]string /*Feature Flag Key Required: true In: path */ Key string }
BooleanFeatureFlagForUserParams contains all the bound params for the boolean feature flag for user operation typically these are obtained from a http.Request
swagger:parameters booleanFeatureFlagForUser
func NewBooleanFeatureFlagForUserParams ¶
func NewBooleanFeatureFlagForUserParams() BooleanFeatureFlagForUserParams
NewBooleanFeatureFlagForUserParams creates a new BooleanFeatureFlagForUserParams object
There are no default values defined in the spec.
func (*BooleanFeatureFlagForUserParams) BindRequest ¶
func (o *BooleanFeatureFlagForUserParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewBooleanFeatureFlagForUserParams() beforehand.
type BooleanFeatureFlagForUserURL ¶
type BooleanFeatureFlagForUserURL struct { Key string // contains filtered or unexported fields }
BooleanFeatureFlagForUserURL generates an URL for the boolean feature flag for user operation
func (*BooleanFeatureFlagForUserURL) Build ¶
func (o *BooleanFeatureFlagForUserURL) Build() (*url.URL, error)
Build a url path and query string
func (*BooleanFeatureFlagForUserURL) BuildFull ¶
func (o *BooleanFeatureFlagForUserURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*BooleanFeatureFlagForUserURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*BooleanFeatureFlagForUserURL) SetBasePath ¶
func (o *BooleanFeatureFlagForUserURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*BooleanFeatureFlagForUserURL) String ¶
func (o *BooleanFeatureFlagForUserURL) String() string
String returns the string representation of the path with query string
func (*BooleanFeatureFlagForUserURL) StringFull ¶
func (o *BooleanFeatureFlagForUserURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*BooleanFeatureFlagForUserURL) WithBasePath ¶
func (o *BooleanFeatureFlagForUserURL) WithBasePath(bp string) *BooleanFeatureFlagForUserURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type BooleanFeatureFlagForUserUnauthorized ¶
type BooleanFeatureFlagForUserUnauthorized struct { }
BooleanFeatureFlagForUserUnauthorized request requires user authentication
swagger:response booleanFeatureFlagForUserUnauthorized
func NewBooleanFeatureFlagForUserUnauthorized ¶
func NewBooleanFeatureFlagForUserUnauthorized() *BooleanFeatureFlagForUserUnauthorized
NewBooleanFeatureFlagForUserUnauthorized creates BooleanFeatureFlagForUserUnauthorized with default headers values
func (*BooleanFeatureFlagForUserUnauthorized) WriteResponse ¶
func (o *BooleanFeatureFlagForUserUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type VariantFeatureFlagForUser ¶
type VariantFeatureFlagForUser struct { Context *middleware.Context Handler VariantFeatureFlagForUserHandler }
VariantFeatureFlagForUser swagger:route POST /feature-flags/user-variant/{key} featureFlags variantFeatureFlagForUser
Determines if a user has a feature flag enabled ¶
Determines if a user has a feature flag enabled. The flagContext contains context used to determine if this flag applies to the logged in user.
func NewVariantFeatureFlagForUser ¶
func NewVariantFeatureFlagForUser(ctx *middleware.Context, handler VariantFeatureFlagForUserHandler) *VariantFeatureFlagForUser
NewVariantFeatureFlagForUser creates a new http.Handler for the variant feature flag for user operation
func (*VariantFeatureFlagForUser) ServeHTTP ¶
func (o *VariantFeatureFlagForUser) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type VariantFeatureFlagForUserBadRequest ¶
type VariantFeatureFlagForUserBadRequest struct { }
VariantFeatureFlagForUserBadRequest invalid request
swagger:response variantFeatureFlagForUserBadRequest
func NewVariantFeatureFlagForUserBadRequest ¶
func NewVariantFeatureFlagForUserBadRequest() *VariantFeatureFlagForUserBadRequest
NewVariantFeatureFlagForUserBadRequest creates VariantFeatureFlagForUserBadRequest with default headers values
func (*VariantFeatureFlagForUserBadRequest) WriteResponse ¶
func (o *VariantFeatureFlagForUserBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type VariantFeatureFlagForUserHandler ¶
type VariantFeatureFlagForUserHandler interface {
Handle(VariantFeatureFlagForUserParams) middleware.Responder
}
VariantFeatureFlagForUserHandler interface for that can handle valid variant feature flag for user params
type VariantFeatureFlagForUserHandlerFunc ¶
type VariantFeatureFlagForUserHandlerFunc func(VariantFeatureFlagForUserParams) middleware.Responder
VariantFeatureFlagForUserHandlerFunc turns a function with the right signature into a variant feature flag for user handler
func (VariantFeatureFlagForUserHandlerFunc) Handle ¶
func (fn VariantFeatureFlagForUserHandlerFunc) Handle(params VariantFeatureFlagForUserParams) middleware.Responder
Handle executing the request and returning a response
type VariantFeatureFlagForUserInternalServerError ¶
type VariantFeatureFlagForUserInternalServerError struct { }
VariantFeatureFlagForUserInternalServerError internal server error
swagger:response variantFeatureFlagForUserInternalServerError
func NewVariantFeatureFlagForUserInternalServerError ¶
func NewVariantFeatureFlagForUserInternalServerError() *VariantFeatureFlagForUserInternalServerError
NewVariantFeatureFlagForUserInternalServerError creates VariantFeatureFlagForUserInternalServerError with default headers values
func (*VariantFeatureFlagForUserInternalServerError) WriteResponse ¶
func (o *VariantFeatureFlagForUserInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type VariantFeatureFlagForUserOK ¶
type VariantFeatureFlagForUserOK struct { /* In: Body */ Payload *internalmessages.FeatureFlagVariant `json:"body,omitempty"` }
VariantFeatureFlagForUserOK Variant Feature Flag Status
swagger:response variantFeatureFlagForUserOK
func NewVariantFeatureFlagForUserOK ¶
func NewVariantFeatureFlagForUserOK() *VariantFeatureFlagForUserOK
NewVariantFeatureFlagForUserOK creates VariantFeatureFlagForUserOK with default headers values
func (*VariantFeatureFlagForUserOK) SetPayload ¶
func (o *VariantFeatureFlagForUserOK) SetPayload(payload *internalmessages.FeatureFlagVariant)
SetPayload sets the payload to the variant feature flag for user o k response
func (*VariantFeatureFlagForUserOK) WithPayload ¶
func (o *VariantFeatureFlagForUserOK) WithPayload(payload *internalmessages.FeatureFlagVariant) *VariantFeatureFlagForUserOK
WithPayload adds the payload to the variant feature flag for user o k response
func (*VariantFeatureFlagForUserOK) WriteResponse ¶
func (o *VariantFeatureFlagForUserOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type VariantFeatureFlagForUserParams ¶
type VariantFeatureFlagForUserParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*context for the feature flag request Required: true In: body */ FlagContext map[string]string /*Feature Flag Key Required: true In: path */ Key string }
VariantFeatureFlagForUserParams contains all the bound params for the variant feature flag for user operation typically these are obtained from a http.Request
swagger:parameters variantFeatureFlagForUser
func NewVariantFeatureFlagForUserParams ¶
func NewVariantFeatureFlagForUserParams() VariantFeatureFlagForUserParams
NewVariantFeatureFlagForUserParams creates a new VariantFeatureFlagForUserParams object
There are no default values defined in the spec.
func (*VariantFeatureFlagForUserParams) BindRequest ¶
func (o *VariantFeatureFlagForUserParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewVariantFeatureFlagForUserParams() beforehand.
type VariantFeatureFlagForUserURL ¶
type VariantFeatureFlagForUserURL struct { Key string // contains filtered or unexported fields }
VariantFeatureFlagForUserURL generates an URL for the variant feature flag for user operation
func (*VariantFeatureFlagForUserURL) Build ¶
func (o *VariantFeatureFlagForUserURL) Build() (*url.URL, error)
Build a url path and query string
func (*VariantFeatureFlagForUserURL) BuildFull ¶
func (o *VariantFeatureFlagForUserURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*VariantFeatureFlagForUserURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*VariantFeatureFlagForUserURL) SetBasePath ¶
func (o *VariantFeatureFlagForUserURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*VariantFeatureFlagForUserURL) String ¶
func (o *VariantFeatureFlagForUserURL) String() string
String returns the string representation of the path with query string
func (*VariantFeatureFlagForUserURL) StringFull ¶
func (o *VariantFeatureFlagForUserURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*VariantFeatureFlagForUserURL) WithBasePath ¶
func (o *VariantFeatureFlagForUserURL) WithBasePath(bp string) *VariantFeatureFlagForUserURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type VariantFeatureFlagForUserUnauthorized ¶
type VariantFeatureFlagForUserUnauthorized struct { }
VariantFeatureFlagForUserUnauthorized request requires user authentication
swagger:response variantFeatureFlagForUserUnauthorized
func NewVariantFeatureFlagForUserUnauthorized ¶
func NewVariantFeatureFlagForUserUnauthorized() *VariantFeatureFlagForUserUnauthorized
NewVariantFeatureFlagForUserUnauthorized creates VariantFeatureFlagForUserUnauthorized with default headers values
func (*VariantFeatureFlagForUserUnauthorized) WriteResponse ¶
func (o *VariantFeatureFlagForUserUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
Source Files ¶
- boolean_feature_flag_for_user.go
- boolean_feature_flag_for_user_parameters.go
- boolean_feature_flag_for_user_responses.go
- boolean_feature_flag_for_user_urlbuilder.go
- variant_feature_flag_for_user.go
- variant_feature_flag_for_user_parameters.go
- variant_feature_flag_for_user_responses.go
- variant_feature_flag_for_user_urlbuilder.go