feature_flags

package
v0.0.0-...-c407d37 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const BooleanFeatureFlagForUserBadRequestCode int = 400

BooleanFeatureFlagForUserBadRequestCode is the HTTP code returned for type BooleanFeatureFlagForUserBadRequest

View Source
const BooleanFeatureFlagForUserInternalServerErrorCode int = 500

BooleanFeatureFlagForUserInternalServerErrorCode is the HTTP code returned for type BooleanFeatureFlagForUserInternalServerError

View Source
const BooleanFeatureFlagForUserOKCode int = 200

BooleanFeatureFlagForUserOKCode is the HTTP code returned for type BooleanFeatureFlagForUserOK

View Source
const BooleanFeatureFlagForUserUnauthorizedCode int = 401

BooleanFeatureFlagForUserUnauthorizedCode is the HTTP code returned for type BooleanFeatureFlagForUserUnauthorized

View Source
const VariantFeatureFlagForUserBadRequestCode int = 400

VariantFeatureFlagForUserBadRequestCode is the HTTP code returned for type VariantFeatureFlagForUserBadRequest

View Source
const VariantFeatureFlagForUserInternalServerErrorCode int = 500

VariantFeatureFlagForUserInternalServerErrorCode is the HTTP code returned for type VariantFeatureFlagForUserInternalServerError

View Source
const VariantFeatureFlagForUserOKCode int = 200

VariantFeatureFlagForUserOKCode is the HTTP code returned for type VariantFeatureFlagForUserOK

View Source
const VariantFeatureFlagForUserUnauthorizedCode int = 401

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

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

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

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

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

SetPayload sets the payload to the boolean feature flag for user o k response

func (*BooleanFeatureFlagForUserOK) WithPayload

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

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

func (o *BooleanFeatureFlagForUserURL) Must(u *url.URL, err error) *url.URL

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

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

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

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

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

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

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

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

SetPayload sets the payload to the variant feature flag for user o k response

func (*VariantFeatureFlagForUserOK) WithPayload

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

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

func (o *VariantFeatureFlagForUserURL) Must(u *url.URL, err error) *url.URL

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

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

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

WriteResponse to the client

Jump to

Keyboard shortcuts

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