controller

package
v0.0.0-...-e98f407 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2019 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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

List runs the list action.

func (*FeaturesController) Show

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

Show runs the show action.

Jump to

Keyboard shortcuts

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