Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // Commit current build commit set by build script Commit = "0" // BuildTime set by build script in ISO 8601 (UTC) format: YYYY-MM-DDThh:mm:ssTZD (see https://www.w3.org/TR/NOTE-datetime for details) BuildTime = "0" // StartTime in ISO 8601 (UTC) format StartTime = time.Now().UTC().Format("2006-01-02T15:04:05Z") )
Functions ¶
This section is empty.
Types ¶
type FeaturesController ¶
type FeaturesController struct { *goa.Controller // contains filtered or unexported fields }
FeaturesController implements the features resource.
func NewFeaturesController ¶
func NewFeaturesController(service *goa.Service, tokenParser token.Parser, config FeaturesControllerConfig, options ...FeaturesControllerOption) *FeaturesController
NewFeaturesController creates a FeaturesController.
func (*FeaturesController) List ¶
func (c *FeaturesController) List(ctx *app.ListFeaturesContext) error
List runs the list action.
func (*FeaturesController) Show ¶
func (c *FeaturesController) Show(ctx *app.ShowFeaturesContext) error
Show runs the show action.
type FeaturesControllerConfig ¶
type FeaturesControllerConfig interface { featuretoggles.ToggleServiceConfiguration GetFeaturesCacheControl() string GetAuthServiceURL() string }
FeaturesControllerConfig the configuration required for the FeaturesController
type FeaturesControllerOption ¶
type FeaturesControllerOption func(*FeaturesController)
FeaturesControllerOption a function to customize the FeaturesController during its initialization
func WithHTTPClient ¶
func WithHTTPClient(client *http.Client) FeaturesControllerOption
WithHTTPClient configure the FeatureController with a custom HTTP client
func WithTogglesClient ¶
func WithTogglesClient(client featuretoggles.Client) FeaturesControllerOption
WithTogglesClient configure the FeatureController with a custom Toggles client
type StatusConfiguration ¶
type StatusConfiguration interface {
IsDeveloperModeEnabled() bool
}
StatusConfiguration the status configuration
type StatusController ¶
type StatusController struct { *goa.Controller // contains filtered or unexported fields }
StatusController implements the status resource.
func NewStatusController ¶
func NewStatusController(service *goa.Service, config StatusConfiguration) *StatusController
NewStatusController creates a status controller.
func (*StatusController) Show ¶
func (c *StatusController) Show(ctx *app.ShowStatusContext) error
Show runs the show action.